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 ++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'update_count_trx_po_product.ktr') 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 - - -- cgit v1.2.3