summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-09-15 17:14:22 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-09-15 17:14:22 +0700
commit4c305c1ac192d5610dedbc90723281dd09bc0a97 (patch)
tree265ff470d6a216c141c738ec4f2a4176407bf402
parentada4b39703d079a92da5c6ad96ad715df13b67de (diff)
<hafid> fix validasi refund
-rw-r--r--indoteknik_custom/models/refund_sale_order.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py
index 51d42514..55128080 100644
--- a/indoteknik_custom/models/refund_sale_order.py
+++ b/indoteknik_custom/models/refund_sale_order.py
@@ -56,7 +56,6 @@ class RefundSaleOrder(models.Model):
refund_type = fields.Selection([
('barang_kosong_sebagian', 'Refund Barang Kosong Sebagian'),
- ('barang_kosong_indent', 'Refund Barang Kosong Jika ada Indent'),
('barang_kosong', 'Refund Barang Kosong Full'),
('uang', 'Refund Lebih Bayar'),
('retur_half', 'Refund Retur Sebagian'),
@@ -845,7 +844,7 @@ class RefundSaleOrder(models.Model):
# Normalisasi
refund_type_label = refund_type_label.upper()
- if refund.refund_type in ['barang_kosong', 'barang_kosong_sebagian', 'barang_kosong_indent']:
+ if refund.refund_type in ['barang_kosong', 'barang_kosong_sebagian']:
refund_type_label = "REFUND BARANG KOSONG"
elif refund.refund_type in ['retur_half', 'retur']:
refund_type_label = "REFUND RETUR BARANG"