Discussions
item price multiplier by quantitiy and by time
Hello,
we are calculating item prices by quantity and by time duration.
E.g. like a camping site:
50 m² for 7 days for 10 EUR per each m² and ech day.
The mathematics will be
50 m² x 7 days * 10 EUR = 3500 EUR
Currently the invoice positions only allow 1 multiplication factor (as far as we understand):
quantity x price per unit.
What is the correct way for creating the order lines via API to reflect the Multiplication correctly?
Do we have to use the mass quantity for quantity field and multiply our unit price x time duration quantity and use this result as the price per unit?
I expect that the invoice recipient will do some consistency checks:
- is quantity x price = position total?
- is ordered qty = invoiced qty?
- is ordered price per unit = invoiced priced per unit?
if he is checking all 3 of it, we might get the invoice rejected as the price per unit on the order differs to price per unit on the invoice - even when the total per invoice position matches the order position total.
What is best practice in this case?
Thanks,
Thomas