diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-03 14:11:01 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-03 14:11:01 +0700 |
| commit | 769ce2949ad4a3f03e0a05c6298d7299bc5b0d67 (patch) | |
| tree | a6a2a30cc843fd116e8ebebc7e0d3548aa83db41 /indoteknik_api/controllers/api_v1 | |
| parent | 59806fddc84133717fc78b2a50a09d7638a8e79b (diff) | |
Fix get voucher API logic
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/voucher.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/voucher.py b/indoteknik_api/controllers/api_v1/voucher.py index 6dbf8c32..f82e1aef 100644 --- a/indoteknik_api/controllers/api_v1/voucher.py +++ b/indoteknik_api/controllers/api_v1/voucher.py @@ -43,7 +43,7 @@ class Voucher(controller.Controller): quantity = product['quantity'] manufacture_id = product['manufacture']['id'] or False - if len(manufacture_ids) == 0 or manufacture_id in manufacture_ids: + if len(manufacture_ids) == 0 or (not product['has_flashsale'] and manufacture_id in manufacture_ids): has_match_manufacture = True if product['has_flashsale']: |
