summaryrefslogtreecommitdiff
path: root/import_product_product.ktr
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-10-01 16:30:39 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-10-01 16:30:39 +0700
commit46742d881f0b2fabfbaaf5e823cea113625dbfa3 (patch)
tree7903d83dd925f0d8ddf35907cc66aac757ac3e7a /import_product_product.ktr
parentdf8c2cfc3f6fb704bf885180658677d43ec1d1dd (diff)
remake again pricelist
Diffstat (limited to 'import_product_product.ktr')
-rw-r--r--import_product_product.ktr178
1 files changed, 89 insertions, 89 deletions
diff --git a/import_product_product.ktr b/import_product_product.ktr
index 8ab3062..c5dbfc6 100644
--- a/import_product_product.ktr
+++ b/import_product_product.ktr
@@ -545,94 +545,6 @@
</hop>
</order>
<step>
- <name>dw Insert / update product</name>
- <type>InsertUpdate</type>
- <description/>
- <distribute>Y</distribute>
- <custom_distribution/>
- <copies>1</copies>
- <partitioning>
- <method>none</method>
- <schema_name/>
- </partitioning>
- <connection>dw bi indoteknik (localhost)</connection>
- <commit>100</commit>
- <update_bypassed>N</update_bypassed>
- <lookup>
- <schema>public</schema>
- <table>product</table>
- <key>
- <name>product_id</name>
- <field>product_id</field>
- <condition>=</condition>
- <name2/>
- </key>
- <value>
- <name>product_id</name>
- <rename>product_id</rename>
- <update>N</update>
- </value>
- <value>
- <name>template_id</name>
- <rename>template_id</rename>
- <update>Y</update>
- </value>
- <value>
- <name>name</name>
- <rename>name</rename>
- <update>Y</update>
- </value>
- <value>
- <name>active</name>
- <rename>active</rename>
- <update>Y</update>
- </value>
- <value>
- <name>brand_id</name>
- <rename>brand_id</rename>
- <update>Y</update>
- </value>
- <value>
- <name>item_code</name>
- <rename>item_code</rename>
- <update>Y</update>
- </value>
- <value>
- <name>parent_category</name>
- <rename>parent_category</rename>
- <update>Y</update>
- </value>
- <value>
- <name>image</name>
- <rename>image</rename>
- <update>Y</update>
- </value>
- <value>
- <name>description</name>
- <rename>description</rename>
- <update>Y</update>
- </value>
- <value>
- <name>weight</name>
- <rename>weight</rename>
- <update>Y</update>
- </value>
- </lookup>
- <attributes/>
- <cluster_schema/>
- <remotesteps>
- <input>
- </input>
- <output>
- </output>
- </remotesteps>
- <GUI>
- <xloc>448</xloc>
- <yloc>128</yloc>
- <draw>Y</draw>
- </GUI>
- </step>
- <step>
<name>Table input</name>
<type>TableInput</type>
<description/>
@@ -654,7 +566,7 @@ pt.website_description as description,
pt.weight
from product_product pp
join product_template pt on pt.id = pp.product_tmpl_id
-where pp.write_date >= (now() - '5 days'::interval)</sql>
+--where pp.write_date >= (now() - '5 days'::interval)</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
@@ -907,6 +819,94 @@ where pp.write_date >= (now() - '5 days'::interval)</sql>
<draw>Y</draw>
</GUI>
</step>
+ <step>
+ <name>dw Insert / update product</name>
+ <type>InsertUpdate</type>
+ <description/>
+ <distribute>Y</distribute>
+ <custom_distribution/>
+ <copies>1</copies>
+ <partitioning>
+ <method>none</method>
+ <schema_name/>
+ </partitioning>
+ <connection>dw bi indoteknik (localhost)</connection>
+ <commit>100</commit>
+ <update_bypassed>N</update_bypassed>
+ <lookup>
+ <schema>public</schema>
+ <table>product</table>
+ <key>
+ <name>product_id</name>
+ <field>product_id</field>
+ <condition>=</condition>
+ <name2/>
+ </key>
+ <value>
+ <name>product_id</name>
+ <rename>product_id</rename>
+ <update>N</update>
+ </value>
+ <value>
+ <name>template_id</name>
+ <rename>template_id</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>name</name>
+ <rename>name</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>active</name>
+ <rename>active</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>brand_id</name>
+ <rename>brand_id</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>item_code</name>
+ <rename>item_code</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>parent_category</name>
+ <rename>parent_category</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>image</name>
+ <rename>image</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>description</name>
+ <rename>description</rename>
+ <update>Y</update>
+ </value>
+ <value>
+ <name>weight</name>
+ <rename>weight</rename>
+ <update>Y</update>
+ </value>
+ </lookup>
+ <attributes/>
+ <cluster_schema/>
+ <remotesteps>
+ <input>
+ </input>
+ <output>
+ </output>
+ </remotesteps>
+ <GUI>
+ <xloc>448</xloc>
+ <yloc>128</yloc>
+ <draw>Y</draw>
+ </GUI>
+ </step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>