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_pricelist.ktr | 203 +++++++++++++++++++++++++------------------- 1 file changed, 115 insertions(+), 88 deletions(-) (limited to 'insert_update_pricelist.ktr') diff --git a/insert_update_pricelist.ktr b/insert_update_pricelist.ktr index fd58764..435b4f5 100644 --- a/insert_update_pricelist.ktr +++ b/insert_update_pricelist.ktr @@ -491,7 +491,7 @@ localhost POSTGRESQL Native - indoteknik_20230821 + indoteknik_20230912 5432 odoo Encrypted 2be98afc86aa7f2e4cb79ce10d196a0d5 @@ -889,6 +889,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 + +
+ + + + + + + + + + 864 + 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 + +
+ + + + + + + + + + 992 + 272 + Y + +
Merge join MergeJoin @@ -967,7 +1053,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 @@ -1090,6 +1180,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 + @@ -1761,92 +1874,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 - -
- - - - - - - - - - 864 - 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 - -
- - - - - - - - - - 992 - 272 - Y - -
-- cgit v1.2.3