domino: fix wrong attribute name in synchronization code
This commit is contained in:
parent
3712d7d747
commit
933e8c7fc5
|
@ -54,7 +54,7 @@ def synchronize_domino(publisher):
|
|||
payment_invoice = Invoice.get_on_index(external_id, 'external_id', ignore_errors=True)
|
||||
if payment_invoice:
|
||||
continue
|
||||
if invoice.reste_du == Decimal(0) or invoice.amount < Decimal(0):
|
||||
if invoice.reste_du == Decimal(0) or invoice.reste_du < Decimal(0):
|
||||
continue
|
||||
payment_invoice = Invoice()
|
||||
payment_invoice.user_id = user.id
|
||||
|
|
Reference in New Issue