diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-10-15 05:06:48 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-10-15 05:06:48 +0000 |
| commit | 3da1a2e1c00235621e46af0db9b06fceaaa176b0 (patch) | |
| tree | c4e4b0c39bfe1e7543b3ee88e6aa01c52f5acada /indoteknik_api/controllers/api_v1 | |
| parent | 387fe06b8d8d212172a1ef0a61ad2657f618ec1b (diff) | |
| parent | 0b5623adc1c6d6f5ef7a4d68f42bcf2f524107c1 (diff) | |
Merged in iman/request-renca-stock (pull request #242)
<iman> update code ambil data stock mandatory ke stock awailable
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/product.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py index e779e623..8fe48932 100644 --- a/indoteknik_api/controllers/api_v1/product.py +++ b/indoteknik_api/controllers/api_v1/product.py @@ -73,7 +73,10 @@ class Product(controller.Controller): total_adem = qty_altama if qty_available > 0: - qty = qty_available + total_adem + total_excell + qty = qty_available + sla_date = '1 Hari' + elif qty_available > 0 and qty_altama > 0: + qty = qty_available sla_date = '1 Hari' elif qty_altama > 0 or qty_vendor > 0: qty = total_adem if qty_altama > 0 else total_excell |
