Skip to Content
Menu
This question has been flagged

  I want to modify my POS sale detail report, as here in saudi arabia the VAT which is currently 5%, will be changing to 15% from july 1st 2020, for that , I need to apply a condition in POS sale detail report that, 

if the date range is from January 1 2020 -   June 30 2020, the report should calculate the VAT as 5%, 

if the date range is July 1 2020 onwards, the report should calculate the VAT as 15%,

kindly tell me how to do the coding from xml view...

Avatar
Discard
Best Answer

This should not be done in a report nor in POS. You should create new taxes and assign these new taxes as default taxes to your products as per July 1 2020. Then you will have to adjust your VAT reports based on the VAT transition regulations. The handling of the Swiss VAT change in 2018 should give you the idea: https://www.odoo.com/documentation/user/13.0/accounting/fiscal_localizations/localizations/switzerland.html#updated-vat-for-january-2018

Avatar
Discard
Author

I have modified the report manually applied 5% and calculated in the views which does not have any link to product, so might be this will not work for me

IMHO then it is time to do it properly because your approach is against all reasonable business logic. Anyway, if you want to learn about conditionals, please read the QWeb documentation: https://www.odoo.com/documentation/12.0/reference/qweb.html

Related Posts Replies Views Activity
1
May 20
2438
2
Feb 24
3174
2
Jan 19
2581
2
Apr 18
2510
0
Nov 17
2880