From edd327be5966f69e36ffa8013fe3b3f94ed0d14f Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 13 Sep 2023 15:56:35 +0700 Subject: add price tiering from 1 to 5 --- insert_update_tier2.ktr | 246 +++++++++++++++++++++++++++++------------------- 1 file changed, 148 insertions(+), 98 deletions(-) (limited to 'insert_update_tier2.ktr') diff --git a/insert_update_tier2.ktr b/insert_update_tier2.ktr index b2ebea1..e2bc45e 100644 --- a/insert_update_tier2.ktr +++ b/insert_update_tier2.ktr @@ -491,7 +491,7 @@ localhost POSTGRESQL Native - indoteknik_20230821 + indoteknik_20230912 5432 odoo Encrypted 2be98afc86aa7f2e4cb79ce10d196a0d5 @@ -894,6 +894,92 @@ Y + + Insert / update 2 + InsertUpdate + + Y + + 1 + + none + + + erp indoteknik local + 100 + N + + public + product_template
+ + template_id + id + = + + + + solr_flag + solr_flag + Y + +
+ + + + + + + + + + 896 + 272 + Y + +
+ + Insert / update 3 + InsertUpdate + + Y + + 1 + + none + + + erp indoteknik local + 100 + N + + public + product_product
+ + product_id + id + = + + + + solr_flag + solr_flag + Y + +
+ + + + + + + + + + 1024 + 272 + Y + +
Merge join MergeJoin @@ -972,7 +1058,11 @@ dw bi indoteknik - select product_id, price_before_disc, disc_web_tier1, disc_tier2, disc_tier3, template_id from mv_pricelist_compute order by product_id + select pc.product_id, p.template_id, price_before_disc, disc_tier1, +disc_tier2, disc_tier3, disc_tier4, disc_tier5 +from v_pricelist_compute pc +join product p on p.product_id = pc.product_id +order by product_id 0 N @@ -1003,6 +1093,29 @@ Asia/Bangkok N + + Integer + normal + template_id + 9 + 0 + price compute + template_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + BigNumber normal @@ -1029,11 +1142,11 @@ BigNumber normal - disc_web_tier1 + disc_tier1 -1 -1 price compute - disc_web_tier1 + disc_tier1 ######0.0###################;-######0.0################### . @@ -1096,16 +1209,39 @@ N - Integer + BigNumber normal - template_id - 9 - 0 + disc_tier4 + -1 + -1 price compute - template_id - ####0;-####0 + disc_tier4 + ######0.0###################;-######0.0################### . - , + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + disc_tier5 + -1 + -1 + price compute + disc_tier5 + ######0.0###################;-######0.0################### + . + none N @@ -1145,7 +1281,7 @@ erp indoteknik local - select * from product_pricelist_item where pricelist_id = 4 order by product_id + select * from product_pricelist_item where pricelist_id = 15037 order by product_id 0 N @@ -1789,92 +1925,6 @@ Y - - Insert / update 2 - InsertUpdate - - Y - - 1 - - none - - - erp indoteknik local - 100 - N - - public - product_template
- - template_id - id - = - - - - solr_flag - solr_flag - Y - -
- - - - - - - - - - 896 - 272 - Y - -
- - Insert / update 3 - InsertUpdate - - Y - - 1 - - none - - - erp indoteknik local - 100 - N - - public - product_product
- - product_id - id - = - - - - solr_flag - solr_flag - Y - -
- - - - - - - - - - 1024 - 272 - Y - -
-- cgit v1.2.3