From db137681fedf653e02f593884d2cbc270af752d5 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 29 Jul 2024 14:39:42 +0700 Subject: fix error solr --- indoteknik_custom/models/solr/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3