diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-08-10 11:03:14 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-08-10 11:03:14 +0700 |
| commit | 257d3e45888dc3e3a760d6bb088ad8ca3d0fc4f0 (patch) | |
| tree | 2cf545916b7b3bd315fc23c1bd4ef2674b6e730e | |
| parent | e53c92d65688724f57e7c1093b3ecbc1437f4b38 (diff) | |
add missing field for product
| -rw-r--r-- | import_product_product.ktr | 258 |
1 files changed, 188 insertions, 70 deletions
diff --git a/import_product_product.ktr b/import_product_product.ktr index 3659814..4e7f9c0 100644 --- a/import_product_product.ktr +++ b/import_product_product.ktr @@ -430,7 +430,7 @@ <created_date>2023/08/09 16:13:00.056</created_date> <modified_user>-</modified_user> <modified_date>2023/08/09 16:13:00.056</modified_date> - <key_for_session_key/> + <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> <is_key_private>N</is_key_private> </info> <notepads> @@ -545,6 +545,94 @@ </hop> </order> <step> + <name>Insert / update</name> + <type>InsertUpdate</type> + <description/> + <distribute>Y</distribute> + <custom_distribution/> + <copies>1</copies> + <partitioning> + <method>none</method> + <schema_name/> + </partitioning> + <connection>dw bi indoteknik</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/> @@ -557,7 +645,13 @@ </partitioning> <connection>erp indoteknik production</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 +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 + where id in(select ppcptr.product_public_category_id from product_public_category_product_template_rel ppcptr + where ppcptr.product_template_id = pt.id limit 1)))) as parent_category, +(select store_fname from ir_attachment ia where ia.res_model='product.template' and res_field='image_1920' and ia.res_id=pt.id) as image, +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> @@ -706,6 +800,98 @@ where pp.write_date >= (now() - '5 days'::interval)</sql> <date_format_timezone>Asia/Bangkok</date_format_timezone> <lenient_string_to_number>N</lenient_string_to_number> </value-meta> + <value-meta> + <type>String</type> + <storagetype>normal</storagetype> + <name>parent_category</name> + <length>2147483647</length> + <precision>-1</precision> + <origin>Table input</origin> + <comments>parent_category</comments> + <conversion_Mask/> + <decimal_symbol>.</decimal_symbol> + <grouping_symbol>,</grouping_symbol> + <currency_symbol/> + <trim_type>none</trim_type> + <case_insensitive>N</case_insensitive> + <collator_disabled>Y</collator_disabled> + <collator_strength>0</collator_strength> + <sort_descending>N</sort_descending> + <output_padding>N</output_padding> + <date_format_lenient>N</date_format_lenient> + <date_format_locale>en_US</date_format_locale> + <date_format_timezone>Asia/Bangkok</date_format_timezone> + <lenient_string_to_number>N</lenient_string_to_number> + </value-meta> + <value-meta> + <type>String</type> + <storagetype>normal</storagetype> + <name>image</name> + <length>2147483647</length> + <precision>-1</precision> + <origin>Table input</origin> + <comments>image</comments> + <conversion_Mask/> + <decimal_symbol>.</decimal_symbol> + <grouping_symbol>,</grouping_symbol> + <currency_symbol/> + <trim_type>none</trim_type> + <case_insensitive>N</case_insensitive> + <collator_disabled>Y</collator_disabled> + <collator_strength>0</collator_strength> + <sort_descending>N</sort_descending> + <output_padding>N</output_padding> + <date_format_lenient>N</date_format_lenient> + <date_format_locale>en_US</date_format_locale> + <date_format_timezone>Asia/Bangkok</date_format_timezone> + <lenient_string_to_number>N</lenient_string_to_number> + </value-meta> + <value-meta> + <type>String</type> + <storagetype>normal</storagetype> + <name>description</name> + <length>2147483647</length> + <precision>-1</precision> + <origin>Table input</origin> + <comments>description</comments> + <conversion_Mask/> + <decimal_symbol>.</decimal_symbol> + <grouping_symbol>,</grouping_symbol> + <currency_symbol/> + <trim_type>none</trim_type> + <case_insensitive>N</case_insensitive> + <collator_disabled>Y</collator_disabled> + <collator_strength>0</collator_strength> + <sort_descending>N</sort_descending> + <output_padding>N</output_padding> + <date_format_lenient>N</date_format_lenient> + <date_format_locale>en_US</date_format_locale> + <date_format_timezone>Asia/Bangkok</date_format_timezone> + <lenient_string_to_number>N</lenient_string_to_number> + </value-meta> + <value-meta> + <type>BigNumber</type> + <storagetype>normal</storagetype> + <name>weight</name> + <length>-1</length> + <precision>-1</precision> + <origin>Table input</origin> + <comments>weight</comments> + <conversion_Mask>######0.0###################;-######0.0###################</conversion_Mask> + <decimal_symbol>.</decimal_symbol> + <grouping_symbol/> + <currency_symbol/> + <trim_type>none</trim_type> + <case_insensitive>N</case_insensitive> + <collator_disabled>Y</collator_disabled> + <collator_strength>0</collator_strength> + <sort_descending>N</sort_descending> + <output_padding>N</output_padding> + <date_format_lenient>N</date_format_lenient> + <date_format_locale>en_US</date_format_locale> + <date_format_timezone>Asia/Bangkok</date_format_timezone> + <lenient_string_to_number>N</lenient_string_to_number> + </value-meta> </row-meta> <attributes/> <cluster_schema/> @@ -721,74 +907,6 @@ where pp.write_date >= (now() - '5 days'::interval)</sql> <draw>Y</draw> </GUI> </step> - <step> - <name>Insert / update</name> - <type>InsertUpdate</type> - <description/> - <distribute>Y</distribute> - <custom_distribution/> - <copies>1</copies> - <partitioning> - <method>none</method> - <schema_name/> - </partitioning> - <connection>dw bi indoteknik</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> - </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> |
