~camptocamp/account-invoicing/correct_payment_term_balance_mdh

« back to all changes in this revision

Viewing changes to payment_term_rounding/account.py

  • Committer: Matthieu Dietrich
  • Date: 2014-07-24 09:51:47 UTC
  • Revision ID: matthieu.dietrich@camptocamp.com-20140724095147-ubuyoqdi8qs63ipb
[FIX] return the value if the line value is 'balance'

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                amt = float_round(amt, precision_rounding=line.amount_round)
65
65
            return float_round(amt, precision_digits=prec)
66
66
        elif line.value == 'balance':
67
 
            amt = float_round(remaining_amount,  precision_digits=prec)
 
67
            return float_round(remaining_amount,  precision_digits=prec)
68
68
        return None
69
69
 
70
70