summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-08 11:23:16 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-08 11:23:16 +0700
commit224efc1e6b32d61a6dc21df8ce5014bd8e0bb22b (patch)
treec8d9429c4f855f95c422c58273b2e04fe6d64589
parentf4f550e9597a7dc9765ff46fc6af0ebb8fae6888 (diff)
back to
-rw-r--r--indoteknik_custom/models/solr/promotion_program_line.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/indoteknik_custom/models/solr/promotion_program_line.py b/indoteknik_custom/models/solr/promotion_program_line.py
index f3f890e4..73504c48 100644
--- a/indoteknik_custom/models/solr/promotion_program_line.py
+++ b/indoteknik_custom/models/solr/promotion_program_line.py
@@ -37,9 +37,6 @@ class PromotionProgramLine(models.Model):
promotion_type = rec._res_promotion_type()
- # Set sequence_i to None if it was 0
- sequence_i = None if rec.sequence == 0 else rec.sequence
-
document.update({
'id': rec.id,
'program_id_i': rec.program_id.id or 0,
@@ -50,7 +47,7 @@ class PromotionProgramLine(models.Model):
'package_limit_user_i': rec.package_limit_user,
'package_limit_trx_i': rec.package_limit_trx,
'price_f': rec.price,
- 'sequence_i': sequence_i,
+ 'sequence_i': rec.sequence,
'product_ids': [x.product_id.id for x in rec.product_ids],
'products_s': json.dumps(products),
'free_product_ids': [x.product_id.id for x in rec.free_product_ids],