summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/refund_sale_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py
index 9b14243b..51d42514 100644
--- a/indoteknik_custom/models/refund_sale_order.py
+++ b/indoteknik_custom/models/refund_sale_order.py
@@ -300,7 +300,7 @@ class RefundSaleOrder(models.Model):
amount_refund = vals.get('amount_refund', 0.0)
can_refund = sisa_uang_masuk - total_invoice
- if can_refund > amount_refund or can_refund == 0.0:
+ if amount_refund > can_refund or can_refund == 0.0:
raise ValidationError(
_("Maksimal refund yang bisa dilakukan adalah sebesar %s. "
"Silakan sesuaikan jumlah refund.") % (can_refund)