summaryrefslogtreecommitdiff
path: root/update_count_trx_po_product.ktr
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-08-23 16:43:30 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-08-23 16:43:30 +0700
commit644d994308d095e36c41dbf9f9834abbdecf49fe (patch)
tree4ad3a89d34cbd45d74e3c27e1323f71623c5c056 /update_count_trx_po_product.ktr
parent1babee964cab4f789488fe5b17b3db22b25dc80e (diff)
remove interval 365 days
Diffstat (limited to 'update_count_trx_po_product.ktr')
-rw-r--r--update_count_trx_po_product.ktr78
1 files changed, 39 insertions, 39 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
@@ -499,6 +499,44 @@
</hop>
</order>
<step>
+ <name>Execute SQL script</name>
+ <type>ExecSQL</type>
+ <description/>
+ <distribute>Y</distribute>
+ <custom_distribution/>
+ <copies>1</copies>
+ <partitioning>
+ <method>none</method>
+ <schema_name/>
+ </partitioning>
+ <connection>dw bi indoteknik</connection>
+ <execute_each_row>N</execute_each_row>
+ <single_statement>N</single_statement>
+ <replace_variables>N</replace_variables>
+ <quoteString>N</quoteString>
+ <sql>update purchase_pricelist_dw set count_trx_po = 0;</sql>
+ <set_params>N</set_params>
+ <insert_field/>
+ <update_field/>
+ <delete_field/>
+ <read_field/>
+ <arguments>
+ </arguments>
+ <attributes/>
+ <cluster_schema/>
+ <remotesteps>
+ <input>
+ </input>
+ <output>
+ </output>
+ </remotesteps>
+ <GUI>
+ <xloc>112</xloc>
+ <yloc>128</yloc>
+ <draw>Y</draw>
+ </GUI>
+ </step>
+ <step>
<name>Table input</name>
<type>TableInput</type>
<description/>
@@ -511,7 +549,7 @@
</partitioning>
<connection>dw bi indoteknik</connection>
<sql>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</sql>
<limit>0</limit>
<lookup/>
@@ -655,44 +693,6 @@ group by pod.product_id, pod.partner_id</sql>
<draw>Y</draw>
</GUI>
</step>
- <step>
- <name>Execute SQL script</name>
- <type>ExecSQL</type>
- <description/>
- <distribute>Y</distribute>
- <custom_distribution/>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <connection>dw bi indoteknik</connection>
- <execute_each_row>N</execute_each_row>
- <single_statement>N</single_statement>
- <replace_variables>N</replace_variables>
- <quoteString>N</quoteString>
- <sql>update purchase_pricelist_dw set count_trx_po = 0;</sql>
- <set_params>N</set_params>
- <insert_field/>
- <update_field/>
- <delete_field/>
- <read_field/>
- <arguments>
- </arguments>
- <attributes/>
- <cluster_schema/>
- <remotesteps>
- <input>
- </input>
- <output>
- </output>
- </remotesteps>
- <GUI>
- <xloc>112</xloc>
- <yloc>128</yloc>
- <draw>Y</draw>
- </GUI>
- </step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>