From c81677fee0cbc4e2f1764dbdec4cd2518df5c68d Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 15 Mar 2023 09:34:08 +0700 Subject: fix import adempiere to data warehouse --- import_adempiere_to_data_warehouse.ktr | 1035 +++++++++++++++----------------- 1 file changed, 497 insertions(+), 538 deletions(-) diff --git a/import_adempiere_to_data_warehouse.ktr b/import_adempiere_to_data_warehouse.ktr index 70dde11..8261b27 100644 --- a/import_adempiere_to_data_warehouse.ktr +++ b/import_adempiere_to_data_warehouse.ktr @@ -610,8 +610,8 @@ - insert update adempiere dw indoteknik - InsertUpdate + Merge join + MergeJoin Y @@ -620,75 +620,15 @@ none - dw bi indoteknik - 100 - N - - public - total_omzet_by_invoice_adempiere
- - invoice - invoice - = - - - - product - product - = - - - - customer - customer - Y - - - invoice_date - invoice_date - Y - - - price_subtotal - price_subtotal - Y - - - invoice - invoice - N - - - quantity - quantity - Y - - - product - product - N - - - brand - brand - Y - - - salesperson - salesperson - Y - - - value - value - Y - - - bp_odoo_name - odoo_partner_name - Y - -
+ LEFT OUTER + adem + odoo + + value + + + odoo_ref_number + @@ -698,11 +638,45 @@ - 1088 + 768 400 Y
+ + Merge join 2 + MergeJoin + + Y + + 1 + + none + + + LEFT OUTER + data trx adem + bp altama + + customer + + + name + + + + + + + + + + + 656 + 144 + Y + + Microsoft Excel input ExcelInput @@ -1115,7 +1089,7 @@ - data trx adempiere + Select values SelectValues Y @@ -1127,36 +1101,34 @@ - Business Partner - customer + customer - Date Ordered - invoice_date + invoice_date - Line Amt - price_subtotal + price_subtotal - Order - invoice + invoice - Ordered Qty - quantity + quantity - Product - product + product - Product Brand - brand + brand - Sales Name - salesperson + salesperson + + + name + + + value N @@ -1169,14 +1141,14 @@ - 416 - 80 + 768 + 144 Y - Table input - TableInput + Select values 2 + SelectValues Y @@ -1185,130 +1157,177 @@ none - erp indoteknik production - select id, name, reference_number from res_partner where reference_number is not null - 0 - - N - N - N - N - - - Integer - normal - id - 9 - 0 - Table input - id - ####0;-####0 - . - , - - none - N - Y - 0 - N - N - N - en_US - Asia/Bangkok - N - - - String - normal + + + customer + + + + invoice_date + + + + price_subtotal + + + + invoice + + + + quantity + + + + product + + + + brand + + + + salesperson + + + name - 2147483647 - -1 - Table input - name - - . - , - - none - N - Y - 0 - N - N - N - en_US - Asia/Bangkok - N - - - String - normal - reference_number - 2147483647 - -1 - Table input - reference_number - - . - , - - none - N - Y - 0 - N - N - N - en_US - Asia/Bangkok - N - - - - - - - - - - - - 352 - 400 - Y - - - - master data bp odoo - SelectValues - - Y - - 1 - - none - - - - - id - odoo_partner_id + - name - odoo_partner_name + value + - reference_number - odoo_ref_number + odoo_partner_name + N - id - id - Integer - 9 - 0 + customer + customer + String + -2 + -2 + + false + + + false + + + + + + + + invoice_date + invoice_date + Date + -2 + -2 + + false + + + false + + + + + + + + price_subtotal + price_subtotal + Number + -2 + -2 + + false + + + false + + + + + + + + invoice + invoice + String + -2 + -2 + + false + + + false + + + + + + + + quantity + quantity + Number + -2 + -2 + + false + + + false + + + + + + + + product + product + String + -2 + -2 + + false + + + false + + + + + + + + brand + brand + String + -2 + -2 + + false + + + false + + + + + + + + salesperson + salesperson + String + -2 + -2 false @@ -1338,8 +1357,8 @@ - reference_number - reference_number + value + value String 2147483647 -2 @@ -1354,6 +1373,23 @@ + + odoo_partner_name + odoo_partner_name + String + -2 + -2 + + false + + + false + + + + + + @@ -1364,14 +1400,14 @@ - 512 + 912 400 Y - Merge join - MergeJoin + Table input + TableInput Y @@ -1380,15 +1416,85 @@ none - LEFT OUTER - adem - odoo - - value - - - odoo_ref_number - + erp indoteknik production + select id, name, reference_number from res_partner where reference_number is not null + 0 + + N + N + N + N + + + Integer + normal + id + 9 + 0 + Table input + id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + name + 2147483647 + -1 + Table input + name + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + reference_number + 2147483647 + -1 + Table input + reference_number + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + @@ -1398,7 +1504,7 @@ - 768 + 352 400 Y @@ -1485,8 +1591,8 @@ - table bp altama - SelectValues + adem + SortRows Y @@ -1495,50 +1601,22 @@ none + %%java.io.tmpdir%% + out + 1000000 + + N + + N - - name - - value - + Y + N + N + 0 + N - N - - name - name - String - 2147483647 - -2 - - false - - - false - - - - - - - - value - value - String - 2147483647 - -2 - - false - - - false - - - - - - @@ -1549,13 +1627,13 @@ - 416 - 192 + 768 + 256 Y - data trx adem + bp altama SortRows Y @@ -1574,7 +1652,7 @@ N - customer + name Y N N @@ -1592,12 +1670,12 @@ 544 - 80 + 192 Y - bp altama + data trx adem SortRows Y @@ -1616,7 +1694,7 @@ N - name + customer Y N N @@ -1634,13 +1712,13 @@ 544 - 192 + 80 Y - Merge join 2 - MergeJoin + data trx adempiere + SelectValues Y @@ -1649,15 +1727,41 @@ none - INNER - data trx adem - bp altama - - customer - - - name - + + + Business Partner + customer + + + Date Ordered + invoice_date + + + Line Amt + price_subtotal + + + Order + invoice + + + Ordered Qty + quantity + + + Product + product + + + Product Brand + brand + + + Sales Name + salesperson + + N + @@ -1667,14 +1771,14 @@ - 656 - 144 + 416 + 80 Y - Select values - SelectValues + insert update adempiere dw indoteknik + InsertUpdate Y @@ -1683,49 +1787,75 @@ none - - + dw bi indoteknik + 100 + N + + public + total_omzet_by_invoice_adempiere
+ + invoice + invoice + = + + + + product + product + = + + + customer - -
- + customer + Y + + invoice_date - - - + invoice_date + Y + + price_subtotal - - - + price_subtotal + Y + + invoice - - - + invoice + N + + quantity - - - + quantity + Y + + product - - - + product + N + + brand - - - + brand + Y + + salesperson - - - - name - - - + salesperson + Y + + value - - - N -
+ value + Y + + + bp_odoo_name + odoo_partner_name + Y + + @@ -1735,14 +1865,14 @@ - 768 - 144 + 1088 + 400 Y
- adem - SortRows + master data bp odoo + SelectValues Y @@ -1751,22 +1881,42 @@ none - %%java.io.tmpdir%% - out - 1000000 - - N - - N - - value - Y - N - N - 0 - N - + N + + name + odoo_partner_name + String + 2147483647 + -2 + + false + + + false + + + + + + + + reference_number + odoo_ref_number + String + 2147483647 + -2 + + false + + + false + + + + + + @@ -1777,8 +1927,8 @@ - 768 - 256 + 512 + 400 Y @@ -1825,7 +1975,7 @@ - Select values 2 + table bp altama SelectValues Y @@ -1836,187 +1986,13 @@ - - customer - - - - invoice_date - - - - price_subtotal - - - - invoice - - - - quantity - - - - product - - - - brand - - - - salesperson - - name - value - - - - odoo_partner_name - N - - customer - customer - String - -2 - -2 - - false - - - false - - - - - - - - invoice_date - invoice_date - Date - -2 - -2 - - false - - - false - - - - - - - - price_subtotal - price_subtotal - Number - -2 - -2 - - false - - - false - - - - - - - - invoice - invoice - String - -2 - -2 - - false - - - false - - - - - - - - quantity - quantity - Number - -2 - -2 - - false - - - false - - - - - - - - product - product - String - -2 - -2 - - false - - - false - - - - - - - - brand - brand - String - -2 - -2 - - false - - - false - - - - - - - - salesperson - salesperson - String - -2 - -2 - - false - - - false - - - - - - name name @@ -2051,23 +2027,6 @@ - - odoo_partner_name - odoo_partner_name - String - -2 - -2 - - false - - - false - - - - - - @@ -2078,8 +2037,8 @@ - 912 - 400 + 416 + 192 Y -- cgit v1.2.3