FacturaScripts

BusinessDocumentFormTools extends BusinessDocumentFormTools

Class created by Core/Base/PluginManager

Table of Contents

$commissionTools CommissionTools
$taxZones \FacturaScripts\Dinamic\Model\ImpuestoZona[]
$recargo bool
$siniva bool
recalculateForm() Calculate document totals from form data and returns the new total and document lines. string
recalculateFormLine() BusinessDocumentLine
recalculateFormLineTaxZones() mixed
__construct() mixed
getSubtotals() Returns subtotals by tax. array
recalculate() Recalculates document totals. mixed
clearTotals() mixed
loadRegimenIva() mixed
loadTaxZones() mixed
recalculateLine() mixed
recalculateLineTax() string

Properties

Methods

getSubtotals()

Returns subtotals by tax.

public getSubtotals( $lines : \FacturaScripts\Core\Model\Base\BusinessDocumentLine[] , $discounts : array ) : array
Parameters
$lines : \FacturaScripts\Core\Model\Base\BusinessDocumentLine[]
$discounts : array
Return values
array

loadRegimenIva()

protected loadRegimenIva( $reg : string ) : mixed
Parameters
$reg : string
Return values
mixed

Search results