Hello,
I'm calling the ATUM API to create a new purchase order, passing an array of product_ids and quantities for the line items.
Woo-commerce is configured with 'Yes, I will enter prices inclusive of tax', so all prices (including purchase prices) have been entered with VAT included.
Unfortunately the items in the resulting Purchase Order appear with the cost price including VAT. ATUM then adds an extra column with VAT, so the resulting totals are incorrect. The correct behaviour would be to split the cost price into the ex VAT and VAT components and put these in the correct columns. ATUM can do this in other places, as it behaves correctly when using the 'Set purchase price' button.
Can the API please be fixed to handle Tax properly?
I'm happy to provide more details and examples if needed.