Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4844 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
черв. 21
4467
4
жовт. 16
4579
0
лип. 15
4340
0
лип. 15
3807
Customer Statements Вирішено
5
вер. 25
1060