summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-10-16 03:40:23 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-10-16 03:40:23 +0000
commit4a39d6c548faeb0bc0046f679c90da4091776074 (patch)
treed291a078602e0e56d838c0d55d8618638e5269c0 /indoteknik_api/controllers/api_v1
parent0f11923903736a7ccbfc6df815103f890d55d7e9 (diff)
parent0e00a82659579fa0fdfe1f51687b3568cd62a955 (diff)
Merged in iman/request-renca-stock (pull request #243)
<iman> back to original code
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index 8fe48932..9673b3ef 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -73,11 +73,7 @@ class Product(controller.Controller):
total_adem = qty_altama
if qty_available > 0:
- qty = qty_available
- sla_date = '1 Hari'
- elif qty_available > 0 and qty_altama > 0:
- qty = qty_available
- sla_date = '1 Hari'
+ qty = qty_available + total_adem + total_excell
elif qty_altama > 0 or qty_vendor > 0:
qty = total_adem if qty_altama > 0 else total_excell
sla_date = '2-4 Hari'