summaryrefslogtreecommitdiff
path: root/import_product_product.ktr
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-09-18 13:32:00 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-09-18 13:32:00 +0700
commit76a5f56f324986a18ced12d01214670fdc18663e (patch)
tree77d73102aa001cdc78c2424db76509c9c58290e7 /import_product_product.ktr
parent9828160c003af8915fd837f2ae4d3271387ea8e3 (diff)
refactor again
Diffstat (limited to 'import_product_product.ktr')
-rw-r--r--import_product_product.ktr93
1 files changed, 9 insertions, 84 deletions
diff --git a/import_product_product.ktr b/import_product_product.ktr
index 640a1a5..17c48ef 100644
--- a/import_product_product.ktr
+++ b/import_product_product.ktr
@@ -436,14 +436,14 @@
<notepads>
</notepads>
<connection>
- <name>dw bi indoteknik</name>
- <server>192.168.23.5</server>
+ <name>dw bi indoteknik (localhost)</name>
+ <server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>dw_bi_indoteknik</database>
<port>5432</port>
<username>odoo</username>
- <password>Encrypted 2be98afc86aa7f2e4cb79ce10d196a0d5</password>
+ <password>Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
@@ -474,11 +474,11 @@
</attribute>
<attribute>
<code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
- <attribute>Y</attribute>
+ <attribute>N</attribute>
</attribute>
<attribute>
<code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
- <attribute>Y</attribute>
+ <attribute>N</attribute>
</attribute>
<attribute>
<code>USE_POOLING</code>
@@ -487,8 +487,8 @@
</attributes>
</connection>
<connection>
- <name>erp indoteknik production</name>
- <server>34.101.171.249</server>
+ <name>erp indoteknik production (localhost)</name>
+ <server>localhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>erp_indoteknik</database>
@@ -500,41 +500,9 @@
<index_tablespace/>
<attributes>
<attribute>
- <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
- <attribute>N</attribute>
- </attribute>
- <attribute>
- <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
- <attribute>N</attribute>
- </attribute>
- <attribute>
- <code>IS_CLUSTERED</code>
- <attribute>N</attribute>
- </attribute>
- <attribute>
<code>PORT_NUMBER</code>
<attribute>5432</attribute>
</attribute>
- <attribute>
- <code>PRESERVE_RESERVED_WORD_CASE</code>
- <attribute>Y</attribute>
- </attribute>
- <attribute>
- <code>QUOTE_ALL_FIELDS</code>
- <attribute>N</attribute>
- </attribute>
- <attribute>
- <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
- <attribute>Y</attribute>
- </attribute>
- <attribute>
- <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
- <attribute>Y</attribute>
- </attribute>
- <attribute>
- <code>USE_POOLING</code>
- <attribute>N</attribute>
- </attribute>
</attributes>
</connection>
<order>
@@ -543,51 +511,8 @@
<to>Insert / update</to>
<enabled>Y</enabled>
</hop>
- <hop>
- <from>Insert / update</from>
- <to>Execute SQL script</to>
- <enabled>N</enabled>
- </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>refresh materialized view mv_growth_existing_customer;</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>576</xloc>
- <yloc>128</yloc>
- <draw>Y</draw>
- </GUI>
- </step>
- <step>
<name>Insert / update</name>
<type>InsertUpdate</type>
<description/>
@@ -598,7 +523,7 @@
<method>none</method>
<schema_name/>
</partitioning>
- <connection>dw bi indoteknik</connection>
+ <connection>dw bi indoteknik (localhost)</connection>
<commit>100</commit>
<update_bypassed>N</update_bypassed>
<lookup>
@@ -686,7 +611,7 @@
<method>none</method>
<schema_name/>
</partitioning>
- <connection>erp indoteknik production</connection>
+ <connection>erp indoteknik production (localhost)</connection>
<sql>select pp.id as product_id, pt.id as template_id, pt.name, pp.active, pt.x_manufacture as brand_id,
case when pp.default_code is null then pt.default_code else pp.default_code end as item_code,
(select name from product_public_category ppc where id in((select replace(left(parent_path, 2), '/', '')::int from product_public_category