Commit f8893415 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_accounting: match real invoice

parent 93513a3f
...@@ -49,6 +49,9 @@ for line, account_type_list in account_type_dict.iteritems(): ...@@ -49,6 +49,9 @@ for line, account_type_list in account_type_dict.iteritems():
break break
def roundLine(resource, get_method, set_method, exchange_ratio): def roundLine(resource, get_method, set_method, exchange_ratio):
if resource == 'currency_module/EUR':
precision = 2
else:
precision = context.getQuantityPrecisionFromResource(resource) precision = context.getQuantityPrecisionFromResource(resource)
total_quantity = 0.0 total_quantity = 0.0
for line in line_list: for line in line_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment