Hi!
While you were all standing in the sun all day waiting for midnight fireworks, I managed to convince my online store and MYOB to co-operate on importing a sales order. On the whole, the process was successful, although the amount of trial-and-error does not speak well of the documentation.
There is one minor issue that I would like to solve. My sales orders can have upwards of 100 items. Most of them are perfect, but some grow a small discount (plus or minus a percent or part thereof) which I presume relates to rounding of GST. If I enter the same item in a sale manually with the same numbers, I do not get a discount, and I am guessing that this is because the GST is calculated internally.
My online store records only the line total and the quantity. This is, obviously, hokey, - it should record the price, tax and other stuff, but it was written by PHP programmers, evidently with no input from accountants.
MYOB seems to require the following:
- 'Inc-tax Total' (which I have)
- 'Quantity' (which I have)
- 'Inc-tax Price' (derived from 'Inc-tax Total' /'Quantity'; always computes to whole cents)
- 'Price' (which is ex-tax) (derived from 'Inc-tax Price' x 10 / 11; can be a repeating fraction)
- 'Total' (which is ex-tax) (derived from 'Price' x 'Quantity' where price is rounded to whole cents)
- 'GST Amount' (derived from 'Inc-tax Total' - 'Total')
My test case is one particular product where the inc-tax price is $0.31. And owing to the magic of my product, people buy them in sets of eleven.
Eleven of these things cost 11 x 0.31 = 3.41. GST on 3.41 is 31 cents.
The import data looks like this (transposed for your reading convenience)
Date | 31/12/2016 |
Card ID | PP |
Item Number | Blue Thing |
Inc-Tax Total | 3.41 |
Quantity | 11 |
Tax Rate | 0.909091 |
Inc-Tax Price | 0.31 |
Price | 0.28 |
Total | 3.10 |
GST Amount | 0.31 |
Tax Code | GST |
Delivery Status | A |
Inclusive | X |
Terms - Payment is Due | 1 |
- Discount Days | 0 |
- Balance Due Days | 0 |
- % Discount | 0 |
- % Monthly Charge | 0 |
Tax rate is an extra field that shows the rate used to compute the derived figures, and it is somewhat like 10/11. It does not match anything in the import interface and appears to be harmless.
Importing this data set results in a line with price, total and tax as expected, and a discount of -0.65% in the item's discount field. If I create a new sale with the same price and quantity, I get a seemingly identical document without the discount. In both cases, the GST is calculated at 31 cents according to the "History" function.
My question is - what data to I have to present to the import interface to get a correctly calculated transaction with no discount?
Thank you for your help.
Russ.