From c55f17416265b328c6a04d203c0fc49d00f08473 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 30 Mar 2023 11:11:48 +0700 Subject: bug fix discount solr --- indoteknik_custom/models/apache_solr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py index 63b332a5..ff31e487 100644 --- a/indoteknik_custom/models/apache_solr.py +++ b/indoteknik_custom/models/apache_solr.py @@ -32,12 +32,12 @@ class ApacheSolr(models.Model): if price_excl_after_disc == 0: price_excl = variant._get_website_price_exclude_tax() price_excl_after_disc = variant._get_website_price_after_disc_and_tax() - discount = variant._get_website_disc() + discount = variant._get_website_disc(0) tax = variant._get_website_tax() elif variant._get_website_price_after_disc_and_tax() < price_excl_after_disc: price_excl_after_disc = variant._get_website_price_after_disc_and_tax() price_excl = variant._get_website_price_exclude_tax() - discount = variant._get_website_disc() + discount = variant._get_website_disc(0) tax = variant._get_website_tax() else: price_excl_after_disc = price_excl_after_disc @@ -48,7 +48,7 @@ class ApacheSolr(models.Model): variants_code += variant.default_code or ''+', ' else: price_excl = template.product_variant_id._get_website_price_exclude_tax() - discount = template.product_variant_id._get_website_price_after_disc_and_tax() + discount = template.product_variant_id._get_website_disc(0) price_excl_after_disc = template.product_variant_id._get_website_price_after_disc_and_tax() tax = template.product_variant_id._get_website_tax() -- cgit v1.2.3