diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-10-24 04:35:43 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-10-24 04:35:43 +0000 |
| commit | f8cb18e7f859792f0862ec8d08a74a67fbba95bc (patch) | |
| tree | e240aab8c57085156073153264db722cb4b628e1 | |
| parent | 276b0cd8de9997bc63a38df27f97b0920afb9430 (diff) | |
| parent | 64fcfa3daf65c8f5699544ce73d7ec930fa124af (diff) | |
Merged in refund_system (pull request #452)
push
| -rw-r--r-- | indoteknik_custom/models/refund_sale_order.py | 2 |
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 475f0355..e6547a88 100644 --- a/indoteknik_custom/models/refund_sale_order.py +++ b/indoteknik_custom/models/refund_sale_order.py @@ -754,7 +754,7 @@ class RefundSaleOrder(models.Model): for so in self.sale_order_ids: for line in so.order_line: barang_kurang = line.product_uom_qty - line.qty_delivered - if line.qty_delivered == 0 or barang_kurang >= 0: + if line.qty_delivered == 0 or barang_kurang > 0: line_vals.append((0, 0, { 'product_id': line.product_id.id, 'quantity': barang_kurang, |
