İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3622 Görünümler

  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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 20
3558
2
Şub 24
4340
2
Oca 19
3532
2
Nis 18
3376
0
Kas 17
3892