mk_goods (required if mk_goods_flags is not used)
Purpose: Used to create an inventory (i.e. the $goodsList argument) to the add_transaction function.
Please note! If you are implementing sales with Euros, use the function mk_goods_flags instead since using this method can result in round off problems. With mk_goods_flags you are able to send the price with VAT.
Example PHP code
mk_goods($qty, $artno, $title, $price, $vat, $discount)
Input Data:
| Required | Variable | Type | Description |
|---|---|---|---|
| required | qty | integer | Quantity |
| required if title is not used | artno | string | Article number |
| required if artno is not used | title | string | Article title |
| required | price | integer | The article’s price, excluding VAT. Given in ören or cents |
| required | vat | integer/float | VAT in percent |
| discount | integer/float | Discount in percent |
Return Value:
The goodsList argument for the add_transaction, reserve_amount and activate_reservation function.


Subscribe to our RSS feed for technical updates