summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-07-29 14:39:42 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-07-29 14:39:42 +0700
commitdb137681fedf653e02f593884d2cbc270af752d5 (patch)
tree1fb47052b3b602526c92fd0f4d7985265cc464a7
parent9f283edb1d4809d1d7152e437a714de2ab6e54c8 (diff)
fix error solr
-rw-r--r--indoteknik_custom/models/solr/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py
index 8130b50e..892e7334 100644
--- a/indoteknik_custom/models/solr/product_template.py
+++ b/indoteknik_custom/models/solr/product_template.py
@@ -101,7 +101,7 @@ class ProductTemplate(models.Model):
"qty_sold_f": template.qty_sold,
"voucher_pastihemat" : {
"min_purchase" : voucher.min_purchase_amount or 0,
- "discount_type" : voucher.discount_typeor or '',
+ "discount_type" : voucher.discount_type or '',
"discount_amount" : voucher.discount_amount or 0,
"max_discount" : voucher.max_discount_amount or 0
}