addQuantityValue macro
Use this macro to add a quantity value to the UserArea. A quantity value has a Name, a Value and a unit. The data type “quantity” is implied.
addQuantity(string name, string value, string unit)
This table shows the arguments:
| Argument | Description |
|---|---|
| Name | The element name the field needs to get in the BOD or BDE XML |
| Value | The value of the field; the quantity value must be converted to string |
| Currency | The unit in which the amount is represented |
Example:
addQuantityValue("StockQuantity",
str$(total.stock), "pcs")