diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-18 15:41:41 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-18 15:41:41 +0700 |
| commit | 862e7b97028104e69ab500bf354a7c1b85854e4a (patch) | |
| tree | 542e873a56980cde2fabc847e13fb1eb3d8f2b18 /indoteknik_custom/models | |
| parent | 34c6611b059cf6ea79bb78e359b973719848f09b (diff) | |
<iman> update code avoid error
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/website_user_cart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index 494f32f3..44393cf1 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -65,7 +65,7 @@ class WebsiteUserCart(models.Model): if stock_quant: res['is_in_bu'] = True res['on_hand_qty'] = sum(stock_quant.mapped('quantity')) - res['available_quantity'] = stock_quant.available_quantity + res['available_quantity'] = sum(stock_quant.mapped('available_quantity')) else: res['is_in_bu'] = False res['on_hand_qty'] = 0 |
