summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-09-15 17:08:09 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-09-15 17:08:09 +0700
commitada4b39703d079a92da5c6ad96ad715df13b67de (patch)
tree8cc57970ded07b2e8bfd09b225df2e0fd2b572e2
parent1ca068669ba7e255e8a69d981aba513dcfeedd40 (diff)
<hafid> fix validasi refund
-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)