diff --git a/magentoerpconnect/sale.py b/magentoerpconnect/sale.py index 7161e7e2a..55236d251 100644 --- a/magentoerpconnect/sale.py +++ b/magentoerpconnect/sale.py @@ -375,7 +375,7 @@ def _rule_authorized(self, record, method): def _rule_paid(self, record, method): """ Import the order only if it has received a payment """ - if not record.get('payment', {}).get('amount_paid'): + if (record.get('payment', {}).get('amount_paid') or 0) <= 0: raise OrderImportRuleRetry('The order has not been paid.\n' 'The import will be retried later.')