コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3634 ビュー

  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...

アバター
破棄
最善の回答

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

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
1
5月 20
3570
2
2月 24
4343
2
1月 19
3534
2
4月 18
3376
0
11月 17
3893