From 9453ae1a61603f78d48232cf09edc3d0d687018a Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 22 Sep 2023 08:01:38 +0700 Subject: add date 1 year validation --- calculate_price_after_disc.ktr | 415 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 415 insertions(+) (limited to 'calculate_price_after_disc.ktr') diff --git a/calculate_price_after_disc.ktr b/calculate_price_after_disc.ktr index c3b3c2e..80046e5 100644 --- a/calculate_price_after_disc.ktr +++ b/calculate_price_after_disc.ktr @@ -629,6 +629,7 @@ coalesce((select end as purchase_price from purchase_pricelist_dw ppd where ppd.product_id = p.product_id + and (system_last_update >= (now() - '365 days'::interval) or human_last_update >= (now() - '365 days'::interval)) order by ppd.count_trx_po desc, ppd.count_trx_po_vendor desc limit 1 ),0) as purchase_price, @@ -919,6 +920,75 @@ left join brand b on b.id = p.brand_id Asia/Bangkok N + + BigNumber + normal + markup_std6 + -1 + -1 + Table input + markup_std6 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_std7 + -1 + -1 + Table input + markup_std7 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_std8 + -1 + -1 + Table input + markup_std8 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + BigNumber normal @@ -1034,6 +1104,75 @@ left join brand b on b.id = p.brand_id Asia/Bangkok N + + BigNumber + normal + markup_group6 + -1 + -1 + Table input + markup_group6 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_group7 + -1 + -1 + Table input + markup_group7 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_group8 + -1 + -1 + Table input + markup_group8 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + BigNumber normal @@ -1149,6 +1288,75 @@ left join brand b on b.id = p.brand_id Asia/Bangkok N + + BigNumber + normal + markup_tier2_6 + -1 + -1 + Table input + markup_tier2_6 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier2_7 + -1 + -1 + Table input + markup_tier2_7 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier2_8 + -1 + -1 + Table input + markup_tier2_8 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + BigNumber normal @@ -1264,6 +1472,75 @@ left join brand b on b.id = p.brand_id Asia/Bangkok N + + BigNumber + normal + markup_tier3_6 + -1 + -1 + Table input + markup_tier3_6 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier3_7 + -1 + -1 + Table input + markup_tier3_7 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier3_8 + -1 + -1 + Table input + markup_tier3_8 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + BigNumber normal @@ -1379,6 +1656,75 @@ left join brand b on b.id = p.brand_id Asia/Bangkok N + + BigNumber + normal + markup_tier4_6 + -1 + -1 + Table input + markup_tier4_6 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier4_7 + -1 + -1 + Table input + markup_tier4_7 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier4_8 + -1 + -1 + Table input + markup_tier4_8 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + BigNumber normal @@ -1494,6 +1840,75 @@ left join brand b on b.id = p.brand_id Asia/Bangkok N + + BigNumber + normal + markup_tier5_6 + -1 + -1 + Table input + markup_tier5_6 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier5_7 + -1 + -1 + Table input + markup_tier5_7 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + markup_tier5_8 + -1 + -1 + Table input + markup_tier5_8 + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + -- cgit v1.2.3