PurchasesLineHTML
in package
Uses
CommonLineHTML
Description of PurchasesLineHTML
Tags
Table of Contents
- $columnView : string
- $num : int
- $numlines : int
- $regimeniva : string
- $deletedLines : array<string|int, mixed>
- $mods : array<string|int, PurchasesLineModInterface>
- $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
- codimpuesto() : string
- descripcion() : string
- dtopor() : string
- dtopor2() : string
- excepcioniva() : string
- genericBool() : string
- getFastLine() : PurchaseDocumentLine|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, PurchasesLineModInterface>
$mods
= []
$stocks
private
static array<string|int, mixed>
$stocks
= []
$variants
private
static array<string|int, mixed>
$variants
= []
Methods
addMod()
public
static addMod(PurchasesLineModInterface $mod) : mixed
Parameters
- $mod : PurchasesLineModInterface
Return values
mixed —apply()
public
static apply(PurchaseDocument &$model, array<string|int, PurchaseDocumentLine> &$lines, array<string|int, mixed> $formData) : mixed
Parameters
- $model : PurchaseDocument
- $lines : array<string|int, PurchaseDocumentLine>
- $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, PurchaseDocumentLine> $lines, PurchaseDocument $model) : array<string|int, mixed>
Parameters
- $lines : array<string|int, PurchaseDocumentLine>
- $model : PurchaseDocument
Return values
array<string|int, mixed> —render()
public
static render(array<string|int, PurchaseDocumentLine> $lines, PurchaseDocument $model) : string
Parameters
- $lines : array<string|int, PurchaseDocumentLine>
- $model : PurchaseDocument
Return values
string —renderLine()
public
static renderLine(Translator $i18n, PurchaseDocumentLine $line, PurchaseDocument $model) : string
Parameters
- $i18n : Translator
- $line : PurchaseDocumentLine
- $model : PurchaseDocument
Return values
string —applyToLine()
private
static applyToLine(array<string|int, mixed> $formData, PurchaseDocumentLine &$line, string $id) : mixed
Parameters
- $formData : array<string|int, mixed>
- $line : PurchaseDocumentLine
- $id : string
Return values
mixed —cantidad()
private
static cantidad(Translator $i18n, string $idlinea, PurchaseDocumentLine $line, PurchaseDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : PurchaseDocumentLine
- $model : PurchaseDocument
- $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 —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(PurchaseDocument $model, array<string|int, mixed> $formData) : PurchaseDocumentLine|null
Parameters
- $model : PurchaseDocument
- $formData : array<string|int, mixed>
Return values
PurchaseDocumentLine|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, PurchaseDocumentLine $line, PurchaseDocument $model, string $jsFunc) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : PurchaseDocumentLine
- $model : PurchaseDocument
- $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, PurchaseDocumentLine $line, PurchaseDocument $model, string $field) : string|null
Parameters
- $i18n : Translator
- $idlinea : string
- $line : PurchaseDocumentLine
- $model : PurchaseDocument
- $field : string
Return values
string|null —renderLineModal()
private
static renderLineModal(Translator $i18n, PurchaseDocumentLine $line, string $idlinea, PurchaseDocument $model) : string
Parameters
- $i18n : Translator
- $line : PurchaseDocumentLine
- $idlinea : string
- $model : PurchaseDocument
Return values
string —renderNewFields()
private
static renderNewFields(Translator $i18n, string $idlinea, PurchaseDocumentLine $line, PurchaseDocument $model) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : PurchaseDocumentLine
- $model : PurchaseDocument
Return values
string —renderNewModalFields()
private
static renderNewModalFields(Translator $i18n, string $idlinea, PurchaseDocumentLine $line, PurchaseDocument $model) : string
Parameters
- $i18n : Translator
- $idlinea : string
- $line : PurchaseDocumentLine
- $model : PurchaseDocument
Return values
string —renderNewTitles()
private
static renderNewTitles(Translator $i18n, PurchaseDocument $model) : string
Parameters
- $i18n : Translator
- $model : PurchaseDocument
Return values
string —renderTitle()
private
static renderTitle(Translator $i18n, PurchaseDocument $model, string $field) : string|null
Parameters
- $i18n : Translator
- $model : PurchaseDocument
- $field : string
Return values
string|null —renderTitles()
private
static renderTitles(Translator $i18n, PurchaseDocument $model) : string
Parameters
- $i18n : Translator
- $model : PurchaseDocument
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