=== modified file 'account/account.py' --- account/account.py 2009-09-01 08:58:30 +0000 +++ account/account.py 2009-09-07 07:53:38 +0000 @@ -53,11 +53,11 @@ result = [] for line in pt.line_ids: if line.value == 'fixed': - amt = round(line.value_amount, 2) + amt = round(line.value_amount, int(config['price_accuracy'])) elif line.value == 'procent': - amt = round(value * line.value_amount, 2) + amt = round(value * line.value_amount, int(config['price_accuracy'])) elif line.value == 'balance': - amt = round(amount, 2) + amt = round(amount, int(config['price_accuracy'])) if amt: next_date = mx.DateTime.strptime(date_ref, '%Y-%m-%d') + RelativeDateTime(days=line.days) if line.days2 < 0: @@ -1380,9 +1380,9 @@ total = 0.0 for r in res: if r.get('balance',False): - r['amount'] = round(r['balance'] * quantity, 2) - total + r['amount'] = round(r['balance'] * quantity, int(config['price_accuracy'])) - total else: - r['amount'] = round(r['amount'] * quantity, 2) + r['amount'] = round(r['amount'] * quantity, int(config['price_accuracy'])) total += r['amount'] return res