summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-08-29 14:29:26 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-08-29 14:29:26 +0700
commit1b2d9c35be0e48e4aadc8d6e2578fd623ad7d03a (patch)
tree0e853637fd101b9d9f755b3c655f0e7636815671
parent18e3b9d7abe9210c74b321fda489a049795774a2 (diff)
fix bug voucher
-rw-r--r--indoteknik_custom/models/voucher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/voucher.py b/indoteknik_custom/models/voucher.py
index f7305999..37c97338 100644
--- a/indoteknik_custom/models/voucher.py
+++ b/indoteknik_custom/models/voucher.py
@@ -146,7 +146,7 @@ class Voucher(models.Model):
def calc_discount_amount(self, total):
result = { 'all': 0, 'brand': {} }
- if self.apply_type == 'all':
+ if self.apply_type in ['all', 'shipping']:
if total['all'] < self.min_purchase_amount:
return result