跳至內容
選單
此問題已被標幟
1 回覆
4849 瀏覽次數

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
6月 21
4470
4
10月 16
4582
0
7月 15
4343
0
7月 15
3808
1
9月 25
83