From c78165d60db8756628c6ffa4aabb300592f0848a Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 11 Jul 2024 14:51:16 +0700 Subject: add column partner group --- import_partner.ktr | 7 +- import_partner_one_time.ktr | 253 +++++++++++++++++++++++++++++++++++++++++++- run_single_ktr.sh | 2 +- 3 files changed, 259 insertions(+), 3 deletions(-) diff --git a/import_partner.ktr b/import_partner.ktr index aafb115..f1a1c19 100644 --- a/import_partner.ktr +++ b/import_partner.ktr @@ -642,6 +642,11 @@ pareto_status Y + + group_partner_id + group_partner_id + Y + @@ -670,7 +675,7 @@ erp indoteknik production (localhost) select id, name, display_name, active, email, industry_id, state_id, kota_id, -kecamatan_id, kelurahan_id, is_potential, parent_id, email, phone, mobile, pareto_status +kecamatan_id, kelurahan_id, is_potential, parent_id, email, phone, mobile, pareto_status, group_partner_id from res_partner where write_date >= (now() - '5 days'::interval) 0 diff --git a/import_partner_one_time.ktr b/import_partner_one_time.ktr index 7cfe0e2..c0804e7 100644 --- a/import_partner_one_time.ktr +++ b/import_partner_one_time.ktr @@ -544,6 +544,11 @@ Insert / update Y + + Table input 2 + Insert / update 2 + Y + Insert / update @@ -643,6 +648,11 @@ pareto_status Y + + group_partner_id + group_partner_id + Y + @@ -671,7 +681,7 @@ erp indoteknik production (localhost) select id, name, display_name, active, email, industry_id, state_id, kota_id, -kecamatan_id, kelurahan_id, is_potential, parent_id, email, phone, mobile, pareto_status +kecamatan_id, kelurahan_id, is_potential, parent_id, email, phone, mobile, pareto_status, group_partner_id from res_partner --where write_date >= (now() - '5 days'::interval) 0 @@ -695,6 +705,247 @@ from res_partner Y + + Table input 2 + TableInput + + Y + + 1 + + none + + + erp indoteknik production (localhost) + select * from group_partner + 0 + + N + N + N + N + + + Integer + normal + id + 9 + 0 + Table input 2 + id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + name + 2147483647 + -1 + Table input 2 + name + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + create_uid + 9 + 0 + Table input 2 + create_uid + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Timestamp + normal + create_date + 6 + -1 + Table input 2 + create_date + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + write_uid + 9 + 0 + Table input 2 + write_uid + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Timestamp + normal + write_date + 6 + -1 + Table input 2 + write_date + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + + + + + + + + + + 176 + 240 + Y + + + + Insert / update 2 + InsertUpdate + + Y + + 1 + + none + + + dw bi indoteknik (localhost) + 100 + N + + public + group_partner
+ + id + id + = + + + + id + id + N + + + name + name + Y + + + create_uid + create_uid + Y + + + create_date + create_date + Y + + + write_uid + write_uid + Y + + + write_date + write_date + Y + +
+ + + + + + + + + + 368 + 240 + Y + +
diff --git a/run_single_ktr.sh b/run_single_ktr.sh index f4ce359..02b06cd 100644 --- a/run_single_ktr.sh +++ b/run_single_ktr.sh @@ -1 +1 @@ -sh /home/stephan/data-integration/pan.sh -level="Debug" -file="/home/stephan/transformation-job-bi/import_account_move_onetime.ktr" > "/home/stephan/transformation-job-bi/log/run_single_ktr.log" +sh /home/stephan/data-integration/pan.sh -level="Debug" -file="/home/stephan/transformation-job-bi/import_partner_one_time.ktr" > "/home/stephan/transformation-job-bi/log/run_single_ktr.log" -- cgit v1.2.3