From 57b5844479d269a0a940f9bd4a1d28bef0cbb060 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 25 Aug 2023 15:54:45 +0700 Subject: temporary remove new concept of purchase pricelist and sales pricelist --- import_purchase_order.ktr | 330 +++++++++++++++++++++++++++++++++------------- 1 file changed, 235 insertions(+), 95 deletions(-) (limited to 'import_purchase_order.ktr') diff --git a/import_purchase_order.ktr b/import_purchase_order.ktr index afb9963..ee85cad 100644 --- a/import_purchase_order.ktr +++ b/import_purchase_order.ktr @@ -430,7 +430,7 @@ 2023/08/18 10:27:05.868 - 2023/08/18 10:27:05.868 - + H4sIAAAAAAAAAAMAAAAAAAAAAAA= N @@ -544,6 +544,119 @@ Y + + Insert / update + InsertUpdate + + Y + + 1 + + none + + + dw bi indoteknik + 100 + N + + public + purchase_order_dw
+ + line_id + line_id + = + + + + po_date + po_date + Y + + + line_date + line_date + Y + + + documentno + documentno + Y + + + state + state + Y + + + partner_id + partner_id + Y + + + vendor + vendor + Y + + + product_id + product_id + Y + + + qty + qty + Y + + + price_unit + price_unit + Y + + + price_subtotal + price_subtotal + Y + + + line_id + line_id + N + + + year_month + year_month + Y + + + year_date + year_date + Y + + + month_date + month_date + Y + + + day_date + day_date + Y + +
+ + + + + + + + + + 432 + 96 + Y + +
Table input TableInput @@ -558,7 +671,12 @@ erp indoteknik production select po.write_date as po_date, pol.write_date as line_date, po.name as documentno, po.state, po.partner_id, rp.name as vendor, pol.product_id, pol.product_uom_qty as qty, -pol.price_unit, pol.price_subtotal, pol.id as line_id +pol.price_unit, pol.price_subtotal, pol.id as line_id, +to_char(pol.write_date::timestamp with time zone, 'YYYY-MM'::text) AS year_month, +to_char(pol.write_date::timestamp with time zone, 'YYYY'::text) as year_date, +to_char(pol.write_date::timestamp with time zone, 'MM'::text) as month_date, +to_char(pol.write_date::timestamp with time zone, 'DD'::text) as day_date, +get_quarter(to_char(pol.write_date::timestamp with time zone, 'MM'::text)) from purchase_order po join res_partner rp on rp.id = po.partner_id join purchase_order_line pol on pol.order_id = po.id @@ -823,6 +941,121 @@ where pol.write_date >= (now() - '5 days'::interval) Asia/Bangkok N + + String + normal + year_month + 2147483647 + -1 + Table input + year_month + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + year_date + 2147483647 + -1 + Table input + year_date + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + month_date + 2147483647 + -1 + Table input + month_date + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + day_date + 2147483647 + -1 + Table input + day_date + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + get_quarter + 2147483647 + -1 + Table input + get_quarter + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + @@ -838,99 +1071,6 @@ where pol.write_date >= (now() - '5 days'::interval) Y - - Insert / update - InsertUpdate - - Y - - 1 - - none - - - dw bi indoteknik - 100 - N - - public - purchase_order_dw
- - line_id - line_id - = - - - - po_date - po_date - Y - - - line_date - line_date - Y - - - documentno - documentno - Y - - - state - state - Y - - - partner_id - partner_id - Y - - - vendor - vendor - Y - - - product_id - product_id - Y - - - qty - qty - Y - - - price_unit - price_unit - Y - - - price_subtotal - price_subtotal - Y - - - line_id - line_id - N - -
- - - - - - - - - - 432 - 96 - Y - -
-- cgit v1.2.3