diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-07-08 04:23:45 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-07-08 04:23:45 +0000 |
| commit | 219a2b4f7be2c88dab0d46f6a56a42e4e3d118f2 (patch) | |
| tree | ab3a7558b923231bf836067426b2859e5704f1f6 | |
| parent | 3da4b60ea121b5f08bb066267773c992c1e1dd21 (diff) | |
| parent | 224efc1e6b32d61a6dc21df8ce5014bd8e0bb22b (diff) | |
Merged in feature/iman_sequence (pull request #157)
back to
| -rw-r--r-- | indoteknik_custom/models/solr/promotion_program_line.py | 5 |
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], |
