SalesLineHTML
in package
Uses
CommonLineHTML
Description of SalesLineHTML
Tags
Table of Contents
- $columnView : string
- $num : int
- $numlines : int
- $regimeniva : string
- $deletedLines : array<string|int, mixed>
- $mods : array<string|int, SalesLineModInterface>
- $stocks : array<string|int, mixed>
- $variants : array<string|int, mixed>
- addMod() : mixed
- apply() : mixed
- assets() : mixed
- getDeletedLines() : array<string|int, mixed>
- map() : array<string|int, mixed>
- render() : string
- renderLine() : string
- applyToLine() : mixed
- cantidad() : string
- cantidadRestante() : string
- cantidadStock() : string
- codimpuesto() : string
- descripcion() : string
- dtopor() : string
- dtopor2() : string
- excepcioniva() : string
- genericBool() : string
- getFastLine() : SalesDocumentLine|null
- irpf() : string
- lineTotal() : string
- loadProducts() : void
- precio() : string
- recargo() : string
- referencia() : string
- renderExpandButton() : string
- renderField() : string|null
- renderLineModal() : string
- renderNewFields() : string
- renderNewModalFields() : string
- renderNewTitles() : string
- renderTitle() : string|null
- renderTitles() : string
- subtotalValue() : float
- suplido() : string
- titleActionsButton() : string
- titleCantidad() : string
- titleCodimpuesto() : string
- titleDescripcion() : string
- titleDtopor() : string
- titlePrecio() : string
- titleReferencia() : string
- titleTotal() : string
Properties
$columnView
protected
static string
$columnView
$num
protected
static int
$num
= 0
$numlines
protected
static int
$numlines
= 0
$regimeniva
protected
static string
$regimeniva
$deletedLines
private
static array<string|int, mixed>
$deletedLines
= []
$mods
private
static array<string|int, SalesLineModInterface>
$mods
= []
$stocks
private
static array<string|int, mixed>
$stocks
= []
$variants
private
static array<string|int, mixed>
$variants
= []
Methods
addMod()
public
static addMod(SalesLineModInterface $mod) : mixed
Parameters
- $mod : SalesLineModInterface
Return values
mixed —apply()
public
static apply(SalesDocument &$model, array<string|int, SalesDocumentLine> &$lines, array<string|int, mixed> $formData) : mixed
Parameters
- $model : SalesDocument
- $lines : array<string|int, SalesDocumentLine>
- $formData : array<string|int, mixed>
Return values
mixed —assets()
public
static assets() : mixed
Return values
mixed —getDeletedLines()
public
static getDeletedLines() : array<string|int, mixed>
Return values
array<string|int, mixed> —map()
public
static map(array<string|int, SalesDocumentLine> $lines, SalesDocument $model) : array<string|int, mixed>
Parameters
- $lines : array<string|int, SalesDocumentLine>
- $model : SalesDocument
Return values
array<string|int, mixed> —render()
public
static render(array<string|int, SalesDocumentLine> $lines, SalesDocument $model) : string
Parameters
- $lines : array<string|int, SalesDocumentLine>
- $model : SalesDocument
Return values
string —renderLine()
public
static renderLine(Translator $i18n, SalesDocumentLine $line, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $line : SalesDocumentLine
- $model : SalesDocument
Return values
string —applyToLine()
private
static applyToLine(array<string|int, mixed> $formData, SalesDocumentLine &$line, string $id) : mixed
Parameters
- $formData : array<string|int, mixed>
- $line : SalesDocumentLine
- $id : string
Return values
mixed —cantidad()
private
static cantidad(Translator $i18n, string $idlinea, SalesDocumentLine $line, SalesDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : SalesDocumentLine
- $model : SalesDocument
- $jsFunc : string
Return values
string —cantidadRestante()
private
static cantidadRestante(Translator $i18n, BusinessDocumentLine $line, TransformerDocument $model) : string
Parameters
- $i18n : Translator
- $line : BusinessDocumentLine
- $model : TransformerDocument
Return values
string —cantidadStock()
private
static cantidadStock(Translator $i18n, SalesDocumentLine $line, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $line : SalesDocumentLine
- $model : SalesDocument
Return values
string —codimpuesto()
private
static codimpuesto(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $jsFunc : string
Return values
string —descripcion()
private
static descripcion(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
Return values
string —dtopor()
private
static dtopor(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $jsFunc : string
Return values
string —dtopor2()
private
static dtopor2(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $field, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $field : string
- $jsFunc : string
Return values
string —excepcioniva()
private
static excepcioniva(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $field, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $field : string
- $jsFunc : string
Return values
string —genericBool()
private
static genericBool(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $field, string $label) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $field : string
- $label : string
Return values
string —getFastLine()
private
static getFastLine(SalesDocument $model, array<string|int, mixed> $formData) : SalesDocumentLine|null
Parameters
- $model : SalesDocument
- $formData : array<string|int, mixed>
Return values
SalesDocumentLine|null —irpf()
private
static irpf(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $jsFunc : string
Return values
string —lineTotal()
private
static lineTotal(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $jsSubtotal, string $jsNeto) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $jsSubtotal : string
- $jsNeto : string
Return values
string —loadProducts()
private
static loadProducts(array<string|int, mixed> $lines, BusinessDocument $model) : void
Parameters
- $lines : array<string|int, mixed>
- $model : BusinessDocument
Return values
void —precio()
private
static precio(Translator $i18n, string $idlinea, SalesDocumentLine $line, SalesDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : SalesDocumentLine
- $model : SalesDocument
- $jsFunc : string
Return values
string —recargo()
private
static recargo(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $jsFunc : string
Return values
string —referencia()
private
static referencia(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
Return values
string —renderExpandButton()
private
static renderExpandButton(Translator $i18n, string $idlinea, TransformerDocument $model, string $jsName) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $model : TransformerDocument
- $jsName : string
Return values
string —renderField()
private
static renderField(Translator $i18n, string $idlinea, SalesDocumentLine $line, SalesDocument $model, string $field) : string|null
Parameters
- $i18n : Translator
- $idlinea : string
- $line : SalesDocumentLine
- $model : SalesDocument
- $field : string
Return values
string|null —renderLineModal()
private
static renderLineModal(Translator $i18n, SalesDocumentLine $line, string $idlinea, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $line : SalesDocumentLine
- $idlinea : string
- $model : SalesDocument
Return values
string —renderNewFields()
private
static renderNewFields(Translator $i18n, string $idlinea, SalesDocumentLine $line, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : SalesDocumentLine
- $model : SalesDocument
Return values
string —renderNewModalFields()
private
static renderNewModalFields(Translator $i18n, string $idlinea, SalesDocumentLine $line, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : SalesDocumentLine
- $model : SalesDocument
Return values
string —renderNewTitles()
private
static renderNewTitles(Translator $i18n, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $model : SalesDocument
Return values
string —renderTitle()
private
static renderTitle(Translator $i18n, SalesDocument $model, string $field) : string|null
Parameters
- $i18n : Translator
- $model : SalesDocument
- $field : string
Return values
string|null —renderTitles()
private
static renderTitles(Translator $i18n, SalesDocument $model) : string
Parameters
- $i18n : Translator
- $model : SalesDocument
Return values
string —subtotalValue()
private
static subtotalValue(BusinessDocumentLine $line, TransformerDocument $model) : float
Parameters
- $line : BusinessDocumentLine
- $model : TransformerDocument
Return values
float —suplido()
private
static suplido(Translator $i18n, string $idlinea, BusinessDocumentLine $line, TransformerDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : BusinessDocumentLine
- $model : TransformerDocument
- $jsFunc : string
Return values
string —titleActionsButton()
private
static titleActionsButton(TransformerDocument $model) : string
Parameters
- $model : TransformerDocument
Return values
string —titleCantidad()
private
static titleCantidad(Translator $i18n) : string
Parameters
- $i18n : Translator
Return values
string —titleCodimpuesto()
private
static titleCodimpuesto(Translator $i18n) : string
Parameters
- $i18n : Translator
Return values
string —titleDescripcion()
private
static titleDescripcion(Translator $i18n) : string
Parameters
- $i18n : Translator
Return values
string —titleDtopor()
private
static titleDtopor(Translator $i18n) : string
Parameters
- $i18n : Translator
Return values
string —titlePrecio()
private
static titlePrecio(Translator $i18n) : string
Parameters
- $i18n : Translator
Return values
string —titleReferencia()
private
static titleReferencia(Translator $i18n) : string
Parameters
- $i18n : Translator
Return values
string —titleTotal()
private
static titleTotal(Translator $i18n) : string
Parameters
- $i18n : Translator