Zymba Documentation
ZeyOS.ObjectTransaction
Text
object @ZeyOS.ObjectTransaction(@ZeyOS.Object) {
construct(?int $id) {}
book(): bool {}
calculateTaxes(): object {}
calculateTotals(): object {}
canCancel(): bool {}
cancel(): bool {}
canClose(): bool {}
close(): bool {}
fromEinvoice(string $document): object {}
fromXML(string $xml): object {}
getBalance(): float {}
getItems(): object {}
isBilling(): bool {}
isProcurement(): bool {}
isProduction(): bool {}
process(object $fields, object $serials): bool {}
setItems(object $items): $this {}
toEinvoice(object $extra): string {}
toXML(string $format, string $context, object $extra): string {}
}
Prototype
Methods
CODE
$this.calculateTaxes(): object
Returns
| Type | Value |
|---|---|
object | [[taxrate: ..., totalnet: ..., totalgross: ..., tax: ...], ...] |
CODE
$this.calculateTotals(): object
Returns
| Type | Value |
|---|---|
object | [discount: ..., netamount: ..., tax:: ..., costs: ..., weight: ...] |