تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4447 أدوات العرض

When the government changes the VAT percent from a certain date:

- Can some python code in a tax record lookup the date and then return the correct VAT percent?

- Can taxes be updated when the I10n module is updated, or can the module update only the template taxes?

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

(1) I was able to set Tax Type = Python Code:

import datetime
time_of_change = datetime.date(2015,1,1)
today = datetime.date.today()
if today < time_of_change:
    result = price_unit * 0.14
else:
    result = price_unit * 0.15

(2) I found the community model account_chart_update for v7.0 that updates taxes++ based on the templates.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 21
4136
4
أكتوبر 16
4178
0
يوليو 15
4092
0
يوليو 15
3565
0
يوليو 25
63