Skip to main content

Zymba Documentation

ZeyOS.ObjectTransaction​

object @ZeyOS.ObjectTransaction(@ZeyOS.Object) {
construct(?int $id) {}
book(): bool {}
calculateTaxes(): object {}
calculateTotals(): object {}
cancel(): bool {}
close(): bool {}
fromXML(string $xml): object {}
getBalance(): float {}
getItems(): object {}
process(object $fields, object $serials): bool {}
setItems(object $items): $this {}
toXML(string $format, string $context, object $extra): string {}
}

Prototype​

ZeyOS.Object

Methods​

$this.construct(?int $id): void
Parameters​
NameTypeValueDefault
id?intnew
$this.book(): bool
Returns​
TypeValue
bool
$this.calculateTaxes(): object
Returns​
TypeValue
object[[taxrate: ..., totalnet: ..., totalgross: ..., tax: ...], ...]
$this.calculateTotals(): object
Returns​
TypeValue
object[discount: ..., netamount: ..., tax:: ..., costs: ..., weight: ...]
$this.cancel(): bool
Returns​
TypeValue
bool
$this.close(): bool
Returns​
TypeValue
bool
$this.fromXML(string $xml): object
Parameters​
NameTypeValueDefault
xmlstring""
Returns​
TypeValue
object
$this.getBalance(): float
Returns​
TypeValue
float
$this.getItems(): object
Returns​
TypeValue
object
$this.process(object $fields, object $serials): bool
Parameters​
NameTypeValueDefault
fieldsobject[name: value, ...][]
serialsobject[serialnum, ...][]
Returns​
TypeValue
bool
$this.setItems(object $items): this
Parameters​
NameTypeValueDefault
itemsobject[]
Returns​
TypeValue
$this
$this.toXML(string $format, string $context, object $extra): string
Parameters​
NameTypeValueDefault
formatstring"CII"
contextstring""
extraobject[name: value, ...][]
Returns​
TypeValue
string