summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-09-25 06:45:40 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-09-25 06:45:40 +0000
commit3490d35ff0af285e7089295e1f01ca4495f37288 (patch)
tree9b9f77c6fcb524b61548b38cb6d0d265b9a80e08
parent75a09b95bfb2bc93d81030c4cc1a0ffda6b6899f (diff)
parent07502e1f93e166abea766c8b4b50ed2e94639df8 (diff)
Merged in refund_system (pull request #435)
<hafid> refund
-rw-r--r--indoteknik_custom/models/refund_sale_order.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py
index eca781e2..2a6a9d9b 100644
--- a/indoteknik_custom/models/refund_sale_order.py
+++ b/indoteknik_custom/models/refund_sale_order.py
@@ -306,6 +306,7 @@ class RefundSaleOrder(models.Model):
misc = self.env['account.move'].search([
('ref', 'ilike', invoices.mapped('name')[0]),
+ ('ref', 'not ilike', 'reklas'),
('journal_id', '=', 13),
('state', '=', 'posted'),
])
@@ -547,6 +548,7 @@ class RefundSaleOrder(models.Model):
invoice_name = invoice_ids.mapped('name')[0]
misc = self.env['account.move'].search([
('ref', 'ilike', invoice_name),
+ ('ref', 'not ilike', 'reklas'),
('journal_id', '=', 13),
('state', '=', 'posted'),
])
@@ -605,6 +607,7 @@ class RefundSaleOrder(models.Model):
])
misc = self.env['account.move'].search([
('ref', 'ilike', all_invoices.mapped('name')[0]),
+ ('ref', 'not ilike', 'reklas'),
('journal_id', '=', 13),
('state', '=', 'posted'),
])