Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4570 Zobrazení

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?

Avatar
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 21
4288
4
říj 16
4322
0
čvc 15
4174
0
čvc 15
3651
2
srp 25
1120