summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_template.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-06-02 09:23:07 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-06-02 09:23:07 +0700
commit2bc522f12795bbd649d28fbc6f127df2ebac34ee (patch)
tree0dfebb75f458c738f63593313b0e19e917e85860 /indoteknik_custom/models/product_template.py
parent1a0b0cb4a740d831f69ea29943cfa0aed8e31fac (diff)
parent484b0e613d0d021faa11c619087baf36e4eacd09 (diff)
<hafid> fix email to Putra & Darren in pengajuan Tempo
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
-rwxr-xr-xindoteknik_custom/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index 3bb54f44..2c07824a 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -1146,7 +1146,7 @@ class ProductProduct(models.Model):
def _get_qty_free_bandengan(self):
for product in self:
- qty_free = product.qty_onhand_bandengan - product.qty_outgoing_bandengan
+ qty_free = product.qty_onhand_bandengan - product.qty_outgoing_bandengan - product.qty_outgoing_mo_bandengan
product.qty_free_bandengan = qty_free
def _get_max_qty_reordering_rule(self):