diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-04 14:09:46 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-04 14:09:46 +0700 |
| commit | 339c3f00bc33fae434c8394885b71471b281d7c7 (patch) | |
| tree | 0936c4878807cab4a124a4ab7665e22ec0454ab4 /indoteknik_api/controllers/api_v1 | |
| parent | 99782534a66b3db276bb2c973e75b976a22ba864 (diff) | |
Fix get voucher API
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 0ecdd20d..3a2c798e 100644 --- a/indoteknik_api/controllers/api_v1/voucher.py +++ b/indoteknik_api/controllers/api_v1/voucher.py @@ -44,7 +44,7 @@ class Voucher(controller.Controller): quantity = product['quantity'] manufacture_id = product['manufacture']['id'] or False - if len(manufacture_ids) == 0 or (not product['has_flashsale'] and manufacture_id in manufacture_ids): + if len(manufacture_ids) == 0 or manufacture_id in manufacture_ids: has_match_manufacture = True if product['has_flashsale']: |
