CalculatorModInterface
in
use CalculatorModClass instead
Table of Contents
Methods
- apply() : bool
- calculate() : bool
- calculateLine() : bool
- clear() : bool
- getSubtotals() : bool
Methods
apply()
public
apply(BusinessDocument &$doc, array<string|int, mixed> &$lines) : bool
Parameters
- $doc : BusinessDocument
- $lines : array<string|int, mixed>
Return values
boolcalculate()
public
calculate(BusinessDocument &$doc, array<string|int, mixed> &$lines) : bool
Parameters
- $doc : BusinessDocument
- $lines : array<string|int, mixed>
Return values
boolcalculateLine()
public
calculateLine(BusinessDocument $doc, BusinessDocumentLine &$line) : bool
Parameters
- $doc : BusinessDocument
- $line : BusinessDocumentLine
Return values
boolclear()
public
clear(BusinessDocument &$doc, array<string|int, mixed> &$lines) : bool
Parameters
- $doc : BusinessDocument
- $lines : array<string|int, mixed>
Return values
boolgetSubtotals()
public
getSubtotals(array<string|int, mixed> &$subtotals, BusinessDocument $doc, array<string|int, mixed> $lines) : bool
Parameters
- $subtotals : array<string|int, mixed>
- $doc : BusinessDocument
- $lines : array<string|int, mixed>