Skip to content

Commit

Permalink
[FIX] Bad condition
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpeiffer committed Jan 20, 2015
1 parent 91d74cf commit 2bc3bc9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def _prepare_payment_line(self, payment, line):
today = datetime.now().strftime(DEFAULT_SERVER_DATE_FORMAT)
if move_line.invoice and move_line.invoice.discount_due_date:
invoice = move_line.invoice
if invoice.discount_due_date >= today and \
invoice.amount_total == line.amount_residual:
if invoice.discount_due_date >= today:
discount = invoice.amount_total - \
invoice.discount_amount
res.update({'amount_currency': invoice.discount_amount,
Expand Down

0 comments on commit 2bc3bc9

Please sign in to comment.