İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4799 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

(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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 21
4450
4
Eki 16
4518
0
Tem 15
4321
0
Tem 15
3765
0
Eyl 25
79