Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4449 Widoki

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?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 21
4139
4
paź 16
4179
0
lip 15
4096
0
lip 15
3568
3
lip 25
234