FacturaScripts

BusinessDocumentTools

A set of tools to recalculate business documents.

Table of Contents

$taxZones \FacturaScripts\Dinamic\Model\ImpuestoZona[]
$recargo bool
$siniva bool
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
Tags
deprecated

since 2022

Return values
array

loadRegimenIva()

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

Search results