FacturaScripts

Calculator
in package

Tags
collaborator

Daniel Fernández Giménez contacto@danielfg.es

Table of Contents

Properties

$mods  : array<string|int, CalculatorModClass>
$stopAllFromSubtotals  : mixed

Methods

addMod()  : void
calculate()  : bool
calculateLine()  : bool
getSubtotals()  : array<string|int, mixed>
accumulate()  : array<string|int, mixed>
apply()  : bool
clear()  : bool
save()  : bool

Properties

$stopAllFromSubtotals

private static mixed $stopAllFromSubtotals = false

Methods

addMod()

public static addMod(mixed $mod) : void
Parameters
$mod : mixed

calculate()

public static calculate(BusinessDocument $doc, array<string|int, mixed> &$lines, bool $save) : bool
Parameters
$doc : BusinessDocument
$lines : array<string|int, mixed>
$save : bool
Return values
bool

accumulate()

private static accumulate(array<string|int, mixed> $subtotals, BusinessDocument $doc, array<string|int, mixed> $lines) : array<string|int, mixed>
Parameters
$subtotals : array<string|int, mixed>
$doc : BusinessDocument
$lines : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results