From 644d994308d095e36c41dbf9f9834abbdecf49fe Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 23 Aug 2023 16:43:30 +0700 Subject: remove interval 365 days --- update_count_trx_po_product.ktr | 78 ++++++++++++++++++++--------------------- update_count_trx_po_vendor.ktr | 4 +-- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/update_count_trx_po_product.ktr b/update_count_trx_po_product.ktr index 6c53494..c9839aa 100644 --- a/update_count_trx_po_product.ktr +++ b/update_count_trx_po_product.ktr @@ -498,6 +498,44 @@ Y + + Execute SQL script + ExecSQL + + Y + + 1 + + none + + + dw bi indoteknik + N + N + N + N + update purchase_pricelist_dw set count_trx_po = 0; + N + + + + + + + + + + + + + + + + 112 + 128 + Y + + Table input TableInput @@ -511,7 +549,7 @@ dw bi indoteknik select pod.product_id, pod.partner_id, count(pod.documentno) as counter from purchase_order_dw pod -where pod.state = 'done' and pod.po_date >= (now() - '365 days'::interval) +where pod.state = 'done' group by pod.product_id, pod.partner_id 0 @@ -655,44 +693,6 @@ group by pod.product_id, pod.partner_id Y - - Execute SQL script - ExecSQL - - Y - - 1 - - none - - - dw bi indoteknik - N - N - N - N - update purchase_pricelist_dw set count_trx_po = 0; - N - - - - - - - - - - - - - - - - 112 - 128 - Y - - diff --git a/update_count_trx_po_vendor.ktr b/update_count_trx_po_vendor.ktr index 9191fea..ab116d9 100644 --- a/update_count_trx_po_vendor.ktr +++ b/update_count_trx_po_vendor.ktr @@ -430,7 +430,7 @@ 2023/08/21 13:18:06.915 - 2023/08/21 13:18:06.915 - + H4sIAAAAAAAAAAMAAAAAAAAAAAA= N @@ -549,7 +549,7 @@ dw bi indoteknik select pod.partner_id, count(pod.documentno) as counter from purchase_order_dw pod -where pod.state = 'done' and pod.po_date >= (now() - '365 days'::interval) +where pod.state = 'done' group by pod.partner_id 0 -- cgit v1.2.3