diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-08-04 07:18:19 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-08-04 07:18:19 +0000 |
| commit | 2421dad6c88900949bc2891bc25006ffa838dd78 (patch) | |
| tree | 70e396dc08c26e77a94fbbe22edf07e96df88927 /indoteknik_api/controllers/api_v1/voucher.py | |
| parent | 0a334d22de6cad94db8a501eca210450f91cde74 (diff) | |
| parent | ae7bed568731a6fda0156f2b170ba1bad84624be (diff) | |
Merged in development (pull request #85)
Development
Diffstat (limited to 'indoteknik_api/controllers/api_v1/voucher.py')
| -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']: |
