summaryrefslogtreecommitdiff
path: root/indoteknik_api
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-24 18:53:56 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-24 18:53:56 +0700
commit7a2361f0e6fbc4d3bcadd4f6c360f2337049f3cc (patch)
treed025fb60c4531a1cc41ae412b79dedd7118d25db /indoteknik_api
parentb7658e977fb0697345fe34f88e6d0c312dc9bf4b (diff)
(andri) fix
Diffstat (limited to 'indoteknik_api')
-rw-r--r--indoteknik_api/controllers/api_v1/product.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/api_v1/product.py b/indoteknik_api/controllers/api_v1/product.py
index 0eba92b4..2f546078 100644
--- a/indoteknik_api/controllers/api_v1/product.py
+++ b/indoteknik_api/controllers/api_v1/product.py
@@ -252,6 +252,8 @@ class Product(controller.Controller):
[('id', '=', id)], limit=1)
qty_available = product.qty_free_bandengan
+ if qty_available < 1:
+ qty_available = 0
data = {
'qty': qty_available,