summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-07-24 04:11:27 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-07-24 04:11:27 +0000
commit2eb021706cb2fc4b6dd3e0cb2f8f9fb97d39b213 (patch)
tree49a5f13d5582629c059c0a2f8c8fe80b5bbb836e
parent170c458eefac4cd331bc7d1d4d8434074c6f829a (diff)
parent8720938222472b6e4f217229881067d5b0b126c0 (diff)
Merged in pengajuan_pum (pull request #359)
<hafid> editable field
-rw-r--r--indoteknik_custom/models/refund_sale_order.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py
index e3a0146d..11bfd07f 100644
--- a/indoteknik_custom/models/refund_sale_order.py
+++ b/indoteknik_custom/models/refund_sale_order.py
@@ -433,14 +433,6 @@ class RefundSaleOrder(models.Model):
pengurangan = rec.total_invoice + rec.ongkir
refund = rec.uang_masuk - pengurangan
rec.amount_refund = refund if refund > 0 else 0.0
-
- if rec.uang_masuk and rec.uang_masuk <= pengurangan:
- return {
- 'warning': {
- 'title': 'Uang Masuk Kurang',
- 'message': 'Uang masuk harus lebih besar dari total invoice + ongkir untuk dapat melakukan refund.'
- }
- }
@api.model
def default_get(self, fields_list):