Jump to content

VAT Calculation on UK Invoice


 Share

Recommended Posts

Hello,

I have successfully created an Invoice from my retail website using the API Calls.

However, although the invoice looks 100% correct on the image, the VAT Breakdown does not appear correctly.

When I manually EDIT this invoice and "Make No Changes, Just SAVE" - it then corrects the VAT Breakdown.

For UK, I see we cannot post the Tax Analysis to force the breakdown and, as I can see, all correct fields are being posted (Note, the invoice image is correct - Just the VAT Breakdown is incorrect).

Please see attached images BEFORE (Straight after API creation) and AFTER (Straight after an "EDIT / SAVE, no changes).

Appreciate any help or pointers.

Thanks

Andrew

Invoice_Before_Edit.png

Invoice_After_Edit.png

Link to comment
Share on other sites

Hi Mark,

Thanks for the reply.

Please see the request body attached.

For info, I already had compared the before/after responses via GET and the only significant difference I could see was the tax_analysis group which does show the correction as expected..

Based on that, I thought I'd try and pass that tax_analysis directly as part of the body but it responds that it is not allowed for UK instance.

Hope this helps,

Thanks

Andrew

 

TEST_INV.TXT

Edited by Andrew Keeling
Slight Adjustment to attachment
Link to comment
Share on other sites

Thanks for the request info Andrew.

It looks as if there is a problem with the unit_price_includes_tax attribute and it is seeing the total amount as the net amount. Once the invoice is edited, the net values are re-calculated to show the correct value in the breakdown.

If you know the tax amount before you send the request, one option would be for you to set the correct net amount, tax_amount and total_amount for the item line and set the unit_price_includes_tax to false. It's not necessary to set the invoice net, tax and total either as it is calculated from the line items.

I'll log the issue with the unit_price_includes_tax calc and will update you as soon as I know the outcome.

Regards

Mark

  • Like 1
Link to comment
Share on other sites

Hi Mark,

Thanks, I did try as you suggest with the value and attribute set to false.

My only problem with that is the application I am populating the data from calculates the VAT in a slightly different way to how SAGE does it in that scenario and I get a different VAT result.

So I really need a field on the unit_price_includes_tax calc please.

Many thanks

Andrew

Link to comment
Share on other sites

Hi Andrew

I've logged this with our engineering squad with an internal (sage) reference of  AC-5814.

The issue is only with the UI displaying the VAT breakdown. The Vat amounts that appear on the VAT return are correctly accounted for.

I'll be in touch as soon as we have an update for you.

Regards

Mark

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...