diff --git a/db/ddlutils/oracle/views/C_INVOICE_HEADER_V.sql b/db/ddlutils/oracle/views/C_INVOICE_HEADER_V.sql index 25f6d1f35b..4a2e9de8a3 100644 --- a/db/ddlutils/oracle/views/C_INVOICE_HEADER_V.sql +++ b/db/ddlutils/oracle/views/C_INVOICE_HEADER_V.sql @@ -330,7 +330,9 @@ AS ubp.updated AS bpartner_updated, ubp.updatedby AS bpartner_updatedby, ubp.url AS bpartner_url, - ubp.value AS bpartner_value + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description FROM c_invoice i JOIN c_doctype dt ON i.c_doctype_id = dt.c_doctype_id @@ -356,5 +358,7 @@ AS ON i.salesrep_id = u.ad_user_id LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency cur + ON i.c_currency_id = cur.c_currency_id ; diff --git a/db/ddlutils/oracle/views/C_INVOICE_HEADER_VT.sql b/db/ddlutils/oracle/views/C_INVOICE_HEADER_VT.sql index c936b84d63..cda9c8a8ce 100644 --- a/db/ddlutils/oracle/views/C_INVOICE_HEADER_VT.sql +++ b/db/ddlutils/oracle/views/C_INVOICE_HEADER_VT.sql @@ -330,7 +330,9 @@ AS ubp.updated AS bpartner_updated, ubp.updatedby AS bpartner_updatedby, ubp.url AS bpartner_url, - ubp.value AS bpartner_value + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description FROM c_invoice i JOIN c_doctype_trl dt ON i.c_doctype_id = dt.c_doctype_id @@ -365,5 +367,8 @@ AS ON i.salesrep_id = u.ad_user_id LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency_trl cur + ON i.c_currency_id = cur.c_currency_id + AND dt.ad_language = cur.ad_language ; diff --git a/db/ddlutils/oracle/views/C_ORDER_HEADER_V.sql b/db/ddlutils/oracle/views/C_ORDER_HEADER_V.sql index 5c9f31800a..765a1b5f9b 100644 --- a/db/ddlutils/oracle/views/C_ORDER_HEADER_V.sql +++ b/db/ddlutils/oracle/views/C_ORDER_HEADER_V.sql @@ -473,7 +473,9 @@ AS bbpc.supervisor_id AS bill_user_supervisor_id, bbpc.updated AS bill_user_updated, bbpc.updatedby AS bill_user_updatedby, - bbpc.value AS bill_user_value + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description FROM c_order o JOIN c_doctype dt ON o.c_doctype_id = dt.c_doctype_id @@ -507,5 +509,7 @@ AS ON o.bill_location_id = bbpl.c_bpartner_location_id LEFT JOIN ad_user bbpc ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency cur + ON o.c_currency_id = cur.c_currency_id ; diff --git a/db/ddlutils/oracle/views/C_ORDER_HEADER_VT.sql b/db/ddlutils/oracle/views/C_ORDER_HEADER_VT.sql index 0b4903949b..b5b269d0a6 100644 --- a/db/ddlutils/oracle/views/C_ORDER_HEADER_VT.sql +++ b/db/ddlutils/oracle/views/C_ORDER_HEADER_VT.sql @@ -473,7 +473,9 @@ AS bbpc.supervisor_id AS bill_user_supervisor_id, bbpc.updated AS bill_user_updated, bbpc.updatedby AS bill_user_updatedby, - bbpc.value AS bill_user_value + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description FROM c_order o JOIN c_doctype_trl dt ON o.c_doctype_id = dt.c_doctype_id @@ -516,5 +518,8 @@ AS ON o.bill_location_id = bbpl.c_bpartner_location_id LEFT JOIN ad_user bbpc ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency_trl cur + ON o.c_currency_id = cur.c_currency_id + AND dt.ad_language = cur.ad_language ; diff --git a/db/ddlutils/oracle/views/M_PACKAGELINES_AVAIL_V.sql b/db/ddlutils/oracle/views/M_PACKAGELINES_AVAIL_V.sql new file mode 100644 index 0000000000..0e985a84ed --- /dev/null +++ b/db/ddlutils/oracle/views/M_PACKAGELINES_AVAIL_V.sql @@ -0,0 +1,30 @@ +CREATE OR REPLACE VIEW m_packagelines_avail_v AS + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line, iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 ) AS qty, iol.m_product_id, p.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + JOIN ad_clientinfo ci ON ci.ad_client_id = iol.ad_client_id + WHERE p.ispicklistprintdetails = 'N' AND iol.m_product_id <> COALESCE(ci.m_productfreight_id, 0 ) AND (iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 )) <> 0 +UNION + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line + pbom.line / 100 AS line, iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 ) AS qty, pbom.m_productbom_id AS m_product_id, p2.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN m_product_bom pbom ON p.m_product_id = pbom.m_product_id + JOIN m_product p2 ON pbom.m_productbom_id = p2.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + WHERE p.isbom = 'Y' AND p.isverified = 'Y' AND p.ispicklistprintdetails = 'Y' AND (iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 )) <> 0 + ORDER BY 1, 2, 3, 5; \ No newline at end of file diff --git a/db/ddlutils/postgresql/views/C_INVOICE_HEADER_V.sql b/db/ddlutils/postgresql/views/C_INVOICE_HEADER_V.sql index 3e0c6f81db..37ef28209d 100644 --- a/db/ddlutils/postgresql/views/C_INVOICE_HEADER_V.sql +++ b/db/ddlutils/postgresql/views/C_INVOICE_HEADER_V.sql @@ -1,4 +1,4 @@ -DROP VIEW c_invoice_header_v; +DROP VIEW c_invoice_header_v; CREATE OR REPLACE VIEW c_invoice_header_v AS SELECT i.ad_client_id, @@ -328,7 +328,9 @@ SELECT i.ad_client_id, ubp.updated AS bpartner_updated, ubp.updatedby AS bpartner_updatedby, ubp.url AS bpartner_url, - ubp.value AS bpartner_value + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description FROM c_invoice i JOIN c_doctype dt ON i.c_doctype_id = dt.c_doctype_id @@ -354,4 +356,6 @@ FROM c_invoice i ON i.salesrep_id = u.ad_user_id LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency cur + ON i.c_currency_id = cur.c_currency_id ; diff --git a/db/ddlutils/postgresql/views/C_INVOICE_HEADER_VT.sql b/db/ddlutils/postgresql/views/C_INVOICE_HEADER_VT.sql index a5a6b64d05..f653b0994e 100644 --- a/db/ddlutils/postgresql/views/C_INVOICE_HEADER_VT.sql +++ b/db/ddlutils/postgresql/views/C_INVOICE_HEADER_VT.sql @@ -1,4 +1,4 @@ -DROP VIEW c_invoice_header_vt; +DROP VIEW c_invoice_header_vt; CREATE OR REPLACE VIEW c_invoice_header_vt AS SELECT i.ad_client_id, @@ -328,7 +328,9 @@ SELECT i.ad_client_id, ubp.updated AS bpartner_updated, ubp.updatedby AS bpartner_updatedby, ubp.url AS bpartner_url, - ubp.value AS bpartner_value + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description FROM c_invoice i JOIN c_doctype_trl dt ON i.c_doctype_id = dt.c_doctype_id @@ -360,4 +362,6 @@ FROM c_invoice i ON i.salesrep_id = u.ad_user_id LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency_trl cur + ON i.c_currency_id = cur.c_currency_id AND dt.ad_language = cur.ad_language ; diff --git a/db/ddlutils/postgresql/views/C_ORDER_HEADER_V.sql b/db/ddlutils/postgresql/views/C_ORDER_HEADER_V.sql index e248d32002..3fd6f12243 100644 --- a/db/ddlutils/postgresql/views/C_ORDER_HEADER_V.sql +++ b/db/ddlutils/postgresql/views/C_ORDER_HEADER_V.sql @@ -1,4 +1,4 @@ -DROP VIEW c_order_header_v; +DROP VIEW c_order_header_v; CREATE OR REPLACE VIEW c_order_header_v AS SELECT o.ad_client_id, @@ -471,7 +471,9 @@ SELECT o.ad_client_id, bbpc.supervisor_id AS bill_user_supervisor_id, bbpc.updated AS bill_user_updated, bbpc.updatedby AS bill_user_updatedby, - bbpc.value AS bill_user_value + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description FROM c_order o JOIN c_doctype dt ON o.c_doctype_id = dt.c_doctype_id @@ -505,4 +507,6 @@ FROM c_order o ON o.bill_location_id = bbpl.c_bpartner_location_id LEFT JOIN ad_user bbpc ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency cur + ON o.c_currency_id = cur.c_currency_id ; diff --git a/db/ddlutils/postgresql/views/C_ORDER_HEADER_VT.sql b/db/ddlutils/postgresql/views/C_ORDER_HEADER_VT.sql index 192d119d65..b32dbf40f7 100644 --- a/db/ddlutils/postgresql/views/C_ORDER_HEADER_VT.sql +++ b/db/ddlutils/postgresql/views/C_ORDER_HEADER_VT.sql @@ -1,4 +1,4 @@ -DROP VIEW c_order_header_vt; +DROP VIEW c_order_header_vt; CREATE OR REPLACE VIEW c_order_header_vt AS SELECT o.ad_client_id, @@ -471,7 +471,9 @@ SELECT o.ad_client_id, bbpc.supervisor_id AS bill_user_supervisor_id, bbpc.updated AS bill_user_updated, bbpc.updatedby AS bill_user_updatedby, - bbpc.value AS bill_user_value + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description FROM c_order o JOIN c_doctype_trl dt ON o.c_doctype_id = dt.c_doctype_id @@ -511,4 +513,6 @@ FROM c_order o ON o.bill_location_id = bbpl.c_bpartner_location_id LEFT JOIN ad_user bbpc ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency_trl cur + ON o.c_currency_id = cur.c_currency_id AND dt.ad_language = cur.ad_language ; diff --git a/db/ddlutils/postgresql/views/M_PACKAGELINES_AVAIL_V.sql b/db/ddlutils/postgresql/views/M_PACKAGELINES_AVAIL_V.sql new file mode 100644 index 0000000000..0e985a84ed --- /dev/null +++ b/db/ddlutils/postgresql/views/M_PACKAGELINES_AVAIL_V.sql @@ -0,0 +1,30 @@ +CREATE OR REPLACE VIEW m_packagelines_avail_v AS + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line, iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 ) AS qty, iol.m_product_id, p.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + JOIN ad_clientinfo ci ON ci.ad_client_id = iol.ad_client_id + WHERE p.ispicklistprintdetails = 'N' AND iol.m_product_id <> COALESCE(ci.m_productfreight_id, 0 ) AND (iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 )) <> 0 +UNION + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line + pbom.line / 100 AS line, iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 ) AS qty, pbom.m_productbom_id AS m_product_id, p2.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN m_product_bom pbom ON p.m_product_id = pbom.m_product_id + JOIN m_product p2 ON pbom.m_productbom_id = p2.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + WHERE p.isbom = 'Y' AND p.isverified = 'Y' AND p.ispicklistprintdetails = 'Y' AND (iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 )) <> 0 + ORDER BY 1, 2, 3, 5; \ No newline at end of file diff --git a/migration/360lts-i1.0a/postgresql/950_IDEMPIERE-234.sql b/migration/360lts-i1.0a/postgresql/950_IDEMPIERE-234.sql index f0ef9dc170..0d1d28ab59 100644 --- a/migration/360lts-i1.0a/postgresql/950_IDEMPIERE-234.sql +++ b/migration/360lts-i1.0a/postgresql/950_IDEMPIERE-234.sql @@ -1,3 +1,4 @@ +DROP VIEW AD_TAB_V; CREATE OR REPLACE VIEW AD_TAB_V (AD_TAB_ID, AD_WINDOW_ID, AD_TABLE_ID, NAME, DESCRIPTION, HELP, SEQNO, ISSINGLEROW, HASTREE, ISINFOTAB, @@ -22,6 +23,7 @@ FROM AD_Tab t WHERE t.IsActive='Y' AND tbl.IsActive='Y'; +DROP VIEW AD_TAB_VT; CREATE OR REPLACE VIEW AD_TAB_VT (AD_LANGUAGE, AD_TAB_ID, AD_WINDOW_ID, AD_TABLE_ID, NAME, DESCRIPTION, HELP, SEQNO, ISSINGLEROW, HASTREE, @@ -47,6 +49,7 @@ FROM AD_Tab t WHERE t.IsActive='Y' AND tbl.IsActive='Y'; +DROP VIEW AD_WINDOW_VT; CREATE OR REPLACE VIEW AD_WINDOW_VT (AD_LANGUAGE, AD_WINDOW_ID, NAME, DESCRIPTION, HELP, WINDOWTYPE, AD_COLOR_ID, AD_IMAGE_ID, ISACTIVE, WINWIDTH, diff --git a/migration/i1.0a-release/oracle/201304041108_IDEMPIERE-788.sql b/migration/i1.0a-release/oracle/201304041108_IDEMPIERE-788.sql new file mode 100644 index 0000000000..a6db08e124 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304041108_IDEMPIERE-788.sql @@ -0,0 +1,113 @@ +-- Apr 4, 2013 10:56:47 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Switch Time Zone',200159,'D','8539c2e0-cd62-4370-9ae2-0feec520d6ef','SwitchTimeZone','Y',TO_DATE('2013-04-04 10:56:46','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 10:56:46','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 10:56:47 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200159 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 10:57:12 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Monday',200160,'D','9f4120cb-22aa-4f16-9e86-1a27cb66b820','Monday','Y',TO_DATE('2013-04-04 10:57:11','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 10:57:11','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 10:57:12 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200160 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:02:30 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Tuesday',200161,'D','8acbe969-a354-4772-89ce-9ba0ead46a2b','Tuesday','Y',TO_DATE('2013-04-04 11:02:29','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:02:29','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:02:30 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200161 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:02:50 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Wednesday',200162,'D','209709d6-bb75-4a20-8e69-e5e93d95ef7f','Wednesday','Y',TO_DATE('2013-04-04 11:02:50','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:02:50','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:02:50 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200162 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:03:14 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Thursday',200163,'D','11fcd2a1-9512-4517-8d20-aa3bfc0b198f','Thursday','Y',TO_DATE('2013-04-04 11:03:13','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:03:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:03:14 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200163 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:03:35 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Friday',200164,'D','2024cad8-556d-481e-8aae-ed4681187f87','Friday','Y',TO_DATE('2013-04-04 11:03:34','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:03:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:03:35 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200164 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:03:58 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Saturday',200165,'D','bab8bdc5-a283-4173-9385-9dc2de4044ae','Saturday','Y',TO_DATE('2013-04-04 11:03:57','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:03:57','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:03:58 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200165 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:04:16 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Sunday',200166,'D','a586e26e-9daf-4aff-8a53-973bd95817ce','Sunday','Y',TO_DATE('2013-04-04 11:04:16','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:04:16','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:04:16 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200166 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:04:39 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','5 Days',200167,'D','7b5a1228-284b-47c1-a3c0-bb1899b8cd60','5Days','Y',TO_DATE('2013-04-04 11:04:38','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:04:38','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:04:39 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200167 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:04:59 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Events Analysis',200168,'D','730ed6ed-ba76-4b8c-8d13-7ab27f8ad603','EventsAnalysis','Y',TO_DATE('2013-04-04 11:04:58','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:04:58','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:04:59 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200168 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:05:27 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','First Day of Week',200169,'D','98506145-5a38-4cf2-bde0-11cbff6a4ced','FirstDayofWeek','Y',TO_DATE('2013-04-04 11:05:26','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-04-04 11:05:26','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:05:27 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200169 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +SELECT register_migration_script('201304041108_IDEMPIERE-788.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304091604_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304091604_IDEMPIERE-794.sql new file mode 100644 index 0000000000..a5f1aaacf4 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304091604_IDEMPIERE-794.sql @@ -0,0 +1,1368 @@ +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Element SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', PrintName='AD_User_C_BPartner_ID',Updated=TO_DATE('2013-04-04 11:54:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200425 +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Column SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200425 +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL, AD_Element_ID=200425 WHERE UPPER(ColumnName)='AD_USER_C_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200425 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200425 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200425) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200425) +; + +-- Apr 4, 2013 11:54:43 AM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_BPartner_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 11:54:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210163 +; + +-- Apr 4, 2013 11:58:20 AM COT +UPDATE AD_Element SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', PrintName='AD_User_C_Greeting_ID',Updated=TO_DATE('2013-04-04 11:58:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200427 +; + +-- Apr 4, 2013 11:58:20 AM COT +UPDATE AD_Column SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200427 +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL, AD_Element_ID=200427 WHERE UPPER(ColumnName)='AD_USER_C_GREETING_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200427 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200427 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_Field SET Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200427) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200427) +; + +-- Apr 4, 2013 12:03:13 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 12:03:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210164 +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', PrintName='C_BPartner_PO_PriceList_ID',Updated=TO_DATE('2013-04-04 12:08:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200385 +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200385 +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL, AD_Element_ID=200385 WHERE UPPER(ColumnName)='C_BPARTNER_PO_PRICELIST_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200385 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200385 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Field SET Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200385) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200385) +; + +-- Apr 4, 2013 12:09:04 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 12:09:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210162 +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Element SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', PrintName='SalesRep_AD_Org_ID',Updated=TO_DATE('2013-04-04 12:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200458 +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Column SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200458 +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200458 WHERE UPPER(ColumnName)='SALESREP_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200458 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_InfoColumn SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200458 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Field SET Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200458) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_PrintFormatItem SET PrintName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200458) +; + +-- Apr 4, 2013 12:14:05 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 12:14:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210166 +; + +-- Apr 4, 2013 12:16:09 PM COT +UPDATE AD_Element SET ColumnName='SalesRep_C_BP_Location_ID',Updated=TO_DATE('2013-04-04 12:16:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200462 +; + +-- Apr 4, 2013 12:16:09 PM COT +UPDATE AD_Column SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL WHERE AD_Element_ID=200462 +; + +-- Apr 4, 2013 12:16:10 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL, AD_Element_ID=200462 WHERE UPPER(ColumnName)='SALESREP_C_BP_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 12:16:10 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL WHERE AD_Element_ID=200462 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:16:10 PM COT +UPDATE AD_InfoColumn SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL WHERE AD_Element_ID=200462 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:16:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='SalesRep_C_BP_Location_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 12:16:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210167 +; + +-- Apr 4, 2013 2:28:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:28:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=201273 +; + +-- Apr 4, 2013 2:29:42 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:29:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210165 +; + +-- Apr 4, 2013 2:30:50 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:30:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210168 +; + +-- Apr 4, 2013 2:33:07 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:33:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210171 +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Element SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', PrintName='C_Invoice_AD_Org_ID',Updated=TO_DATE('2013-04-04 14:35:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200544 +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Column SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200544 +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200544 WHERE UPPER(ColumnName)='C_INVOICE_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200544 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200544 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Field SET Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200544) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200544) +; + +-- Apr 4, 2013 2:35:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:35:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210169 +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Element SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', PrintName='C_Payment_C_Charge_ID',Updated=TO_DATE('2013-04-04 14:36:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200564 +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Column SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200564 +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL, AD_Element_ID=200564 WHERE UPPER(ColumnName)='C_PAYMENT_C_CHARGE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200564 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200564 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Field SET Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200564) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200564) +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Element SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', PrintName='C_Payment_C_Invoice_ID',Updated=TO_DATE('2013-04-04 14:38:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200566 +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Column SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200566 +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL, AD_Element_ID=200566 WHERE UPPER(ColumnName)='C_PAYMENT_C_INVOICE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200566 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200566 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Field SET Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200566) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200566) +; + +-- Apr 4, 2013 2:39:28 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210176 +; + +-- Apr 4, 2013 2:40:07 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:40:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210175 +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Element SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', PrintName='C_PaymentTerm_AD_Org_ID',Updated=TO_DATE('2013-04-04 14:43:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200558 +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Column SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200558 +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200558 WHERE UPPER(ColumnName)='C_PAYMENTTERM_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200558 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200558 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Field SET Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200558) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200558) +; + +-- Apr 4, 2013 2:43:59 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:43:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210174 +; + +-- Apr 4, 2013 2:44:41 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:44:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210172 +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Element SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', PrintName='AD_User_AD_OrgTrx_ID',Updated=TO_DATE('2013-04-04 14:53:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200423 +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Column SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200423 +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL, AD_Element_ID=200423 WHERE UPPER(ColumnName)='AD_USER_AD_ORGTRX_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200423 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200423 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Field SET Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200423) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200423) +; + +-- Apr 4, 2013 2:53:30 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:53:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210182 +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Element SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', PrintName='AD_User_AD_Org_ID',Updated=TO_DATE('2013-04-04 14:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200422 +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Column SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200422 +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200422 WHERE UPPER(ColumnName)='AD_USER_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200422 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200422 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Field SET Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200422) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:55:04 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200422) +; + +-- Apr 4, 2013 2:55:33 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 14:55:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210181 +; + +-- Apr 4, 2013 3:21:57 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='BPartner_Parent_ID', Name='BPartner_Parent_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 15:21:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210177 +; + +-- Apr 4, 2013 3:21:57 PM COT +UPDATE AD_Field SET Name='BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=210177 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_BP_Group_ID', Name='C_BPartner_C_BP_Group_ID', PrintName='C_BPartner_C_BP_Group_ID',Updated=TO_DATE('2013-04-04 15:33:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200349 +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Column SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=210178 +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL, AD_Element_ID=200349 WHERE UPPER(ColumnName)='C_BP_GROUP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200349 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200349 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Field SET Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200349) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BP_Group_ID', Name='C_BP_Group_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200349) +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', PrintName='C_BPartner_C_Dunning_ID',Updated=TO_DATE('2013-04-04 15:38:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200978 +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200978 +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL, AD_Element_ID=200978 WHERE UPPER(ColumnName)='C_BPartner_C_Dunning_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200978 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200978 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200978) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200978) +; + +-- Apr 4, 2013 3:39:45 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 15:39:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210179 +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Element SET Name='C_BPartner_InvoiceSchedule_ID', PrintName='C_BPartner_InvoiceSchedule_ID',Updated=TO_DATE('2013-04-04 15:42:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200980 +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Column SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200980 +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Process_Para SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL, AD_Element_ID=200980 WHERE UPPER(ColumnName)='BP_C_INVOICESCHEDULE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Process_Para SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200980 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_InfoColumn SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200980 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Field SET Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200980) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_InvoiceSchedule_ID', Name='C_BPartner_InvoiceSchedule_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200980) +; + +-- Apr 4, 2013 3:42:31 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_InvoiceSchedule_ID', Name='C_BPartner_InvoiceSchedule_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 15:42:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210180 +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', PrintName='C_BPartner_SalesRep_ID',Updated=TO_DATE('2013-04-04 15:46:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200389 +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200389 +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL, AD_Element_ID=200389 WHERE UPPER(ColumnName)='C_BPARTNER_SALESREP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200389 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200389 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Field SET Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200389) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200389) +; + +-- Apr 4, 2013 3:47:31 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 15:47:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=203538 +; + +-- Apr 4, 2013 3:47:31 PM COT +UPDATE AD_Field SET Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=203538 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:55:36 PM COT +UPDATE AD_Column SET AD_Element_ID=200348, ColumnName='c_bpartner_bpartner_parent_id', Description=NULL, Help=NULL, Name='c_bpartner_bpartner_parent_id',Updated=TO_DATE('2013-04-04 15:55:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210177 +; + +-- Apr 4, 2013 3:55:36 PM COT +UPDATE AD_Field SET Name='c_bpartner_bpartner_parent_id', Description=NULL, Help=NULL WHERE AD_Column_ID=210177 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', PrintName='C_BPartner_BPartner_Parent_ID',Updated=TO_DATE('2013-04-04 15:56:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200348 +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200348 +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL, AD_Element_ID=200348 WHERE UPPER(ColumnName)='C_BPARTNER_BPARTNER_PARENT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200348 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200348 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Field SET Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200348) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200348) +; + +-- Apr 4, 2013 3:59:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-04 15:59:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210178 +; + +-- Apr 4, 2013 4:06:17 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200351, ColumnName='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL, Name='C_BPartner_InvoiceSchedule_ID',Updated=TO_DATE('2013-04-04 16:06:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210180 +; + +-- Apr 4, 2013 4:08:47 PM COT +UPDATE AD_Column SET AD_Element_ID=200389, ColumnName='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL, Name='C_BPartner_SalesRep_ID',Updated=TO_DATE('2013-04-04 16:08:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=203538 +; + +-- Apr 4, 2013 4:12:32 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:12:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205741 +; + +-- Apr 4, 2013 4:15:01 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:15:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205915 +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Element SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', PrintName='AD_User_Supervisor_ID',Updated=TO_DATE('2013-04-04 16:19:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200439 +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Column SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200439 +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL, AD_Element_ID=200439 WHERE UPPER(ColumnName)='AD_USER_SUPERVISOR_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200439 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200439 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Field SET Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200439) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200439) +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', PrintName='C_BPartner_AD_OrgBP_ID',Updated=TO_DATE('2013-04-04 16:24:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200346 +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200346 +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL, AD_Element_ID=200346 WHERE UPPER(ColumnName)='C_BPARTNER_AD_ORGBP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200346 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200346 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Field SET Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200346) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200346) +; + +-- Apr 4, 2013 4:26:14 PM COT +UPDATE AD_Column SET AD_Element_ID=200346, ColumnName='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL, Name='C_BPartner_AD_OrgBP_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:26:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205820 +; + +-- Apr 4, 2013 4:26:14 PM COT +UPDATE AD_Field SET Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205820 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:26:38 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-04 16:26:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205820 +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Element SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', PrintName='AD_User_C_BPartner_Location_ID',Updated=TO_DATE('2013-04-04 16:30:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200426 +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Column SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200426 +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL, AD_Element_ID=200426 WHERE UPPER(ColumnName)='AD_USER_C_BPARTNER_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200426 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200426 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200426) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200426) +; + +-- Apr 4, 2013 4:30:37 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:30:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205916 +; + +-- Apr 4, 2013 4:36:29 PM COT +UPDATE AD_Column SET AD_Element_ID=200347, ColumnName='c_bpartner_ad_org_id', Description=NULL, Help=NULL, Name='c_bpartner_ad_org_id', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205821 +; + +-- Apr 4, 2013 4:36:29 PM COT +UPDATE AD_Field SET Name='c_bpartner_ad_org_id', Description=NULL, Help=NULL WHERE AD_Column_ID=205821 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', PrintName='C_BPartner_AD_Org_ID',Updated=TO_DATE('2013-04-04 16:37:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200347 +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200347 +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200347 WHERE UPPER(ColumnName)='C_BPARTNER_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200347 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200347 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Field SET Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200347) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200347) +; + +-- Apr 4, 2013 4:37:51 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID',Updated=TO_DATE('2013-04-04 16:37:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205821 +; + +-- Apr 4, 2013 4:39:28 PM COT +UPDATE AD_Column SET AD_Element_ID=200348, ColumnName='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL, Name='C_BPartner_BPartner_Parent_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205822 +; + +-- Apr 4, 2013 4:39:28 PM COT +UPDATE AD_Field SET Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205822 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:39:45 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-04 16:39:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205822 +; + +-- Apr 4, 2013 4:43:38 PM COT +UPDATE AD_Column SET AD_Element_ID=200349, ColumnName='C_BPartner_C_BP_Group_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_BP_Group_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:43:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205823 +; + +-- Apr 4, 2013 4:43:38 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205823 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:45:03 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-04 16:45:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205823 +; + +-- Apr 4, 2013 4:49:01 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-04 16:49:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205824 +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', PrintName='C_BPartner_C_Greeting_ID',Updated=TO_DATE('2013-04-04 17:09:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200350 +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200350 +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL, AD_Element_ID=200350 WHERE UPPER(ColumnName)='C_BPARTNER_C_GREETING_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200350 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200350 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200350) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200350) +; + +-- Apr 4, 2013 5:10:14 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200350, ColumnName='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_Greeting_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 17:10:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205825 +; + +-- Apr 4, 2013 5:10:14 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205825 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:13:00 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200351, ColumnName='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL, Name='C_BPartner_InvoiceSchedule_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 17:13:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205826 +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', PrintName='C_BPartner_C_PaymentTerm_ID',Updated=TO_DATE('2013-04-04 17:22:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200352 +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200352 +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL, AD_Element_ID=200352 WHERE UPPER(ColumnName)='C_BPARTNER_C_PAYMENTTERM_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200352 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200352 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200352) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200352) +; + +-- Apr 4, 2013 5:27:02 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200352, ColumnName='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_PaymentTerm_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 17:27:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205827 +; + +-- Apr 4, 2013 5:27:02 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205827 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', PrintName='C_BPartner_C_TaxGroup_ID',Updated=TO_DATE('2013-04-04 17:31:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200355 +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200355 +; + +-- Apr 4, 2013 5:31:07 PM COT + +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL, AD_Element_ID=200355 WHERE UPPER(ColumnName)='C_BPARTNER_C_TAXGROUP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200355 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200355 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200355) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200355) +; + +-- Apr 4, 2013 5:32:32 PM COT +UPDATE AD_Column SET AD_Element_ID=200355, ColumnName='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_TaxGroup_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-04 17:32:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205830 +; + +-- Apr 4, 2013 5:32:32 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205830 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200406, ColumnName='c_bpartner_location_ad_org_id', Description=NULL, Help=NULL, Name='c_bpartner_location_ad_org_id', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 16:44:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205880 +; + +-- Apr 5, 2013 4:44:44 PM COT +UPDATE AD_Field SET Name='c_bpartner_location_ad_org_id', Description=NULL, Help=NULL WHERE AD_Column_ID=205880 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', PrintName='C_BPartner_Location_AD_Org_ID',Updated=TO_DATE('2013-04-05 16:44:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200406 +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200406 +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200406 WHERE UPPER(ColumnName)='C_BPARTNER_LOCATION_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200406 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200406 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Field SET Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200406) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200406) +; + +-- Apr 5, 2013 5:02:21 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-05 17:02:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205881 +; + +-- Apr 5, 2013 5:03:18 PM COT +UPDATE AD_Element SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', PrintName='BP_Location_C_SalesRegion_ID',Updated=TO_DATE('2013-04-05 17:03:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=201621 +; + +-- Apr 5, 2013 5:03:18 PM COT +UPDATE AD_Column SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=201621 +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_Process_Para SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL, AD_Element_ID=201621 WHERE UPPER(ColumnName)='BP_LOCATION_C_SALESREGION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_Process_Para SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=201621 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_InfoColumn SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=201621 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_Field SET Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=201621) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_PrintFormatItem SET PrintName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=201621) +; + +-- Apr 5, 2013 5:03:28 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 17:03:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205884 +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', PrintName='C_BPartner_Logo_ID',Updated=TO_DATE('2013-04-05 17:04:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200376 +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200376 +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL, AD_Element_ID=200376 WHERE UPPER(ColumnName)='C_BPARTNER_LOGO_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200376 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200376 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Field SET Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200376) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200376) +; + +-- Apr 5, 2013 5:05:10 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200376, ColumnName='C_BPartner_Logo_ID', Description=NULL, Help=NULL, Name='C_BPartner_Logo_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 17:05:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205851 +; + +-- Apr 5, 2013 5:05:10 PM COT +UPDATE AD_Field SET Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205851 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', PrintName='C_BPartner_M_DiscountSchema_ID',Updated=TO_DATE('2013-04-05 17:07:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200377 +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200377 +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL, AD_Element_ID=200377 WHERE UPPER(ColumnName)='C_BPARTNER_M_DISCOUNTSCHEMA_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200377 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200377 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200377) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200377) +; + +-- Apr 5, 2013 5:07:43 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200377, ColumnName='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL, Name='C_BPartner_M_DiscountSchema_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 17:07:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205852 +; + +-- Apr 5, 2013 5:07:43 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205852 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', PrintName='C_BPartner_M_PriceList_ID',Updated=TO_DATE('2013-04-05 17:08:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200378 +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200378 +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL, AD_Element_ID=200378 WHERE UPPER(ColumnName)='C_BPARTNER_M_PRICELIST_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200378 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200378 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200378) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200378) +; + +-- Apr 5, 2013 5:09:23 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200378, ColumnName='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL, Name='C_BPartner_M_PriceList_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 17:09:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205853 +; + +-- Apr 5, 2013 5:09:23 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205853 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:20:34 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=1717, ColumnName='PO_DiscountSchema_ID', Description='Schema to calculate the purchase trade discount percentage', Help=NULL, Name='PO Discount Schema', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 17:20:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205857 +; + +-- Apr 5, 2013 5:20:34 PM COT +UPDATE AD_Field SET Name='PO Discount Schema', Description='Schema to calculate the purchase trade discount percentage', Help=NULL WHERE AD_Column_ID=205857 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:08:15 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=1576, ColumnName='PO_PaymentTerm_ID', Description='Payment rules for a purchase order', Help='The PO Payment Term indicates the payment term that will be used when this purchase order becomes an invoice.', Name='PO Payment Term', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 18:08:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205858 +; + +-- Apr 5, 2013 6:08:15 PM COT +UPDATE AD_Field SET Name='PO Payment Term', Description='Payment rules for a purchase order', Help='The PO Payment Term indicates the payment term that will be used when this purchase order becomes an invoice.' WHERE AD_Column_ID=205858 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:09:24 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=480, ColumnName='PO_PriceList_ID', Description='Price List used by this Business Partner', Help='Identifies the price list used by a Vendor for products purchased by this organization.', Name='Purchase Pricelist', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 18:09:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205859 +; + +-- Apr 5, 2013 6:09:24 PM COT +UPDATE AD_Field SET Name='Purchase Pricelist', Description='Price List used by this Business Partner', Help='Identifies the price list used by a Vendor for products purchased by this organization.' WHERE AD_Column_ID=205859 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:10:37 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200389, ColumnName='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL, Name='C_BPartner_SalesRep_ID', IsToolbarButton='N',Updated=TO_DATE('2013-04-05 18:10:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205863 +; + +-- Apr 5, 2013 6:10:37 PM COT +UPDATE AD_Field SET Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205863 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:11:02 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-05 18:11:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205749 +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Column SET ColumnName='C_Greeting_AD_Org_ID', Name='C_Greeting_AD_Org_ID',Updated=TO_DATE('2013-04-08 15:16:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205876 +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Field SET Name='C_Greeting_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205876 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Column SET ColumnName='C_Location_AD_Org_ID', Name='C_Location_AD_Org_ID',Updated=TO_DATE('2013-04-08 15:16:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205901 +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Field SET Name='C_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205901 AND IsCentrallyMaintained='Y' +; +-- Apr 8, 2013 3:30:12 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID',Updated=TO_DATE('2013-04-08 15:30:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205797 +; + +-- Apr 8, 2013 3:30:12 PM COT +UPDATE AD_Field SET Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205797 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 3:36:17 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_User_Greeting_AD_Org_ID', Name='C_User_Greeting_AD_Org_ID',Updated=TO_DATE('2013-04-08 15:36:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205932 +; + +-- Apr 8, 2013 3:36:17 PM COT +UPDATE AD_Field SET Name='C_User_Greeting_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205932 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 3:56:27 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_DropShip_BPartner_ID', Name='C_Order_DropShip_BPartner_ID',Updated=TO_DATE('2013-04-08 15:56:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205757 +; + +-- Apr 8, 2013 3:56:27 PM COT +UPDATE AD_Field SET Name='C_Order_DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Column_ID=205757 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:04:15 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_DropShip_Location_ID', Name='Drop Shipment Location',Updated=TO_DATE('2013-04-08 16:04:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205758 +; + +-- Apr 8, 2013 4:04:15 PM COT +UPDATE AD_Field SET Name='Drop Shipment Location', Description='Business Partner Location for shipping to', Help=NULL WHERE AD_Column_ID=205758 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:11:55 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_DropShip_User_ID', Name='Drop Shipment Contact',Updated=TO_DATE('2013-04-08 16:11:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205759 +; + +-- Apr 8, 2013 4:11:55 PM COT +UPDATE AD_Field SET Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Column_ID=205759 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:14:08 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_Link_Order_ID', Name='Linked Order',Updated=TO_DATE('2013-04-08 16:14:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205773 +; + +-- Apr 8, 2013 4:14:08 PM COT +UPDATE AD_Field SET Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Column_ID=205773 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:14:58 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='M_Warehouse_AD_Org_ID', Name='M_Warehouse_AD_Org_ID',Updated=TO_DATE('2013-04-08 16:14:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205787 +; + +-- Apr 8, 2013 4:14:58 PM COT +UPDATE AD_Field SET Name='M_Warehouse_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205787 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:17:56 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='M_WarehouseSource_ID', Name='Source Warehouse',Updated=TO_DATE('2013-04-08 16:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205792 +; + +-- Apr 8, 2013 4:17:56 PM COT +UPDATE AD_Field SET Name='Source Warehouse', Description='Optional Warehouse to replenish from', Help='If defined, the warehouse selected is used to replenish the product(s)' WHERE AD_Column_ID=205792 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:22:07 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='Pay_BPartner_ID',Updated=TO_DATE('2013-04-08 16:22:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205776 +; + + +-- Apr 8, 2013 5:27:37 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_Ref_Order_ID', Name='C_Order_Ref_Order_ID',Updated=TO_DATE('2013-04-08 17:27:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205783 +; + +-- Apr 8, 2013 5:27:37 PM COT +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Field SET Name='C_Order_Ref_Order_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205783 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:30:29 PM COT +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET AD_Reference_ID=19, ColumnName='C_Order_User1_ID ', Name='C_Order_User1_ID ',Updated=TO_DATE('2013-04-08 17:30:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205785 +; + +-- Apr 8, 2013 5:30:29 PM COT +UPDATE AD_Field SET Name='C_Order_User1_ID ', Description=NULL, Help=NULL WHERE AD_Column_ID=205785 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:30:39 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_User1_ID', Name='C_Order_User1_ID',Updated=TO_DATE('2013-04-08 17:30:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205785 +; + +-- Apr 8, 2013 5:30:39 PM COT +UPDATE AD_Field SET Name='C_Order_User1_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205785 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:51:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_OrderLine_User1_ID', Name='C_OrderLine_User1_ID',Updated=TO_DATE('2013-04-08 17:51:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210184 +; + +-- Apr 8, 2013 5:51:47 PM COT +UPDATE AD_Field SET Name='C_OrderLine_User1_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=210184 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:56:09 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID',Updated=TO_DATE('2013-04-08 17:56:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=206959 +; + +-- Apr 8, 2013 5:56:09 PM COT +UPDATE AD_Field SET Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=206959 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:56:39 PM COT +UPDATE AD_Column SET AD_Reference_ID=19, ColumnName='AD_User_C_BPartner_ID ', Name='AD_User_C_BPartner_ID ',Updated=TO_DATE('2013-04-08 17:56:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=206961 +; + +-- Apr 8, 2013 5:56:39 PM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_ID ', Description=NULL, Help=NULL WHERE AD_Column_ID=206961 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 6:10:25 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID',Updated=TO_DATE('2013-04-08 18:10:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=206961 +; + +-- Apr 8, 2013 6:10:25 PM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=206961 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 6:49:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:49:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57593 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57598 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57597 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59577 +; + + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207021 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207205 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207056 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,FieldLength=10, Name='C_OrderLine_M_Shipper_ID',Updated=TO_DATE('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207056 +; + +-- Apr 8, 2013 7:56:10 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_DATE('2013-04-08 19:56:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57338 +; + +-- Apr 8, 2013 7:57:52 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-08 19:57:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=204815 +; + +-- Apr 8, 2013 7:57:52 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-08 19:57:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=204815 +; + +-- Apr 9, 2013 10:07:55 AM COT +UPDATE AD_Column SET ColumnName='DropShip_User_ID',Updated=TO_DATE('2013-04-09 10:07:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205759 +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Element SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', PrintName='DropShip_BPartner_ID',Updated=TO_DATE('2013-04-09 10:39:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53458 +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Column SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Element_ID=53458 +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.', AD_Element_ID=53458 WHERE UPPER(ColumnName)='DROPSHIP_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Element_ID=53458 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_InfoColumn SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Element_ID=53458 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Field SET Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53458) AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:39:54 AM COT +UPDATE AD_PrintFormatItem SET PrintName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53458) +; + +-- Apr 9, 2013 10:40:50 AM COT +UPDATE AD_Column SET ColumnName='AD_Client_ID',Updated=TO_DATE('2013-04-09 10:40:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7086 +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Element SET ColumnName='DropShip_User_ID',Updated=TO_DATE('2013-04-09 10:53:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53460 +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Column SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Element_ID=53460 +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL, AD_Element_ID=53460 WHERE UPPER(ColumnName)='DROPSHIP_USER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Element_ID=53460 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_InfoColumn SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Element_ID=53460 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Element SET ColumnName='Link_Order_ID',Updated=TO_DATE('2013-04-09 11:05:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53462 +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Column SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Element_ID=53462 +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Process_Para SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL, AD_Element_ID=53462 WHERE UPPER(ColumnName)='LINK_ORDER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Process_Para SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Element_ID=53462 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_InfoColumn SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Element_ID=53462 AND IsCentrallyMaintained='Y' +; + + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Element SET ColumnName='Pay_Location_ID',Updated=TO_DATE('2013-04-09 11:08:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2421 +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Column SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL WHERE AD_Element_ID=2421 +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Process_Para SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL, AD_Element_ID=2421 WHERE UPPER(ColumnName)='PAY_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Process_Para SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL WHERE AD_Element_ID=2421 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_InfoColumn SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL WHERE AD_Element_ID=2421 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 12:06:58 PM COT +UPDATE AD_Column SET AD_Element_ID=455, ColumnName='M_Shipper_ID', Description='Method or manner of product delivery', Help='The Shipper indicates the method of delivering product', Name='Shipper',Updated=TO_DATE('2013-04-09 12:06:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +-- Apr 9, 2013 12:06:58 PM COT +UPDATE AD_Field SET Name='Shipper', Description='Method or manner of product delivery', Help='The Shipper indicates the method of delivering product' WHERE AD_Column_ID=208087 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 1:43:32 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200037,Updated=TO_DATE('2013-04-09 13:43:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208053 +; + +-- Apr 9, 2013 2:10:48 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200037,Updated=TO_DATE('2013-04-09 14:10:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +-- Apr 9, 2013 2:31:03 PM COT +UPDATE AD_Column SET AD_Element_ID=201126, ColumnName='C_OrderLine_M_Shipper_ID', Description=NULL, Help=NULL, Name='C_OrderLine_M_Shipper_ID',Updated=TO_DATE('2013-04-09 14:31:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +-- Apr 9, 2013 2:31:03 PM COT +UPDATE AD_Field SET Name='C_OrderLine_M_Shipper_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=208087 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 2:39:53 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=271,Updated=TO_DATE('2013-04-09 14:39:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210206 +; + +SELECT register_migration_script('201304091604_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304101720_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304101720_IDEMPIERE-794.sql new file mode 100644 index 0000000000..67eb5072ac --- /dev/null +++ b/migration/i1.0a-release/oracle/201304101720_IDEMPIERE-794.sql @@ -0,0 +1,16 @@ +-- Apr 10, 2013 5:13:51 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=271,Updated=TO_DATE('2013-04-10 17:13:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204815 +; + +-- Apr 10, 2013 5:14:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290,Updated=TO_DATE('2013-04-10 17:14:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204935 +; + +-- Apr 12, 2013 8:04:22 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_Value_ID=200037, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-12 20:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204935 +; + +SELECT register_migration_script('201304101720_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304111530_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304111530_IDEMPIERE-794.sql new file mode 100644 index 0000000000..49a85c1252 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304111530_IDEMPIERE-794.sql @@ -0,0 +1,23 @@ +-- Apr 11, 2013 3:33:35 PM COT +UPDATE AD_ReportView SET WhereClause='(QtyToDeliver<>0 OR QtyToInvoice<>0) AND RV_OrderDetail.DocStatus NOT IN (''VO'',''CL'')',Updated=TO_DATE('2013-04-11 15:33:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=104 +; + +-- Apr 12, 2013 8:20:50 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-12 20:20:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208053 +; + +-- Apr 12, 2013 8:21:42 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_Value_ID=134, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-12 20:21:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210206 +; + +-- Apr 12, 2013 8:22:05 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-12 20:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +SELECT register_migration_script('201304111530_IDEMPIERE-794.sql') FROM dual +; + + diff --git a/migration/i1.0a-release/oracle/201304111600_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304111600_IDEMPIERE-794.sql new file mode 100644 index 0000000000..13b8e300dc --- /dev/null +++ b/migration/i1.0a-release/oracle/201304111600_IDEMPIERE-794.sql @@ -0,0 +1,12 @@ +-- Apr 11, 2013 3:57:16 PM COT +UPDATE AD_ReportView SET WhereClause='RV_InOutDetails.IsSOTrx=''N''',Updated=TO_DATE('2013-04-11 15:57:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=152 +; + +-- Apr 11, 2013 3:57:24 PM COT +UPDATE AD_ReportView SET WhereClause='RV_InOutDetails.IsSOTrx=''Y''',Updated=TO_DATE('2013-04-11 15:57:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=151 +; + +SELECT register_migration_script('201304111600_IDEMPIERE-794.sql') FROM dual +; + + diff --git a/migration/i1.0a-release/oracle/201304121120_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304121120_IDEMPIERE-794.sql new file mode 100644 index 0000000000..a6f22080d0 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304121120_IDEMPIERE-794.sql @@ -0,0 +1,12 @@ +-- Apr 12, 2013 10:41:36 AM COT +UPDATE AD_Column SET AD_Reference_Value_ID=170,Updated=TO_DATE('2013-04-12 10:41:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205479 +; + +-- Apr 13, 2013 10:53:48 AM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 10:53:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205479 +; + +SELECT register_migration_script('201304121120_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304121145_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304121145_IDEMPIERE-794.sql new file mode 100644 index 0000000000..3e495e15d2 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304121145_IDEMPIERE-794.sql @@ -0,0 +1,6 @@ +-- Apr 12, 2013 11:41:32 AM COT +UPDATE AD_ReportView SET WhereClause='NOT EXISTS (SELECT * FROM C_AllocationLine al WHERE al.C_Invoice_ID=RV_C_Invoice.C_Invoice_ID) AND RV_C_Invoice.DocStatus IN (''CO'',''CL'')',Updated=TO_DATE('2013-04-12 11:41:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=154 +; + +SELECT register_migration_script('201304121145_IDEMPIERE-794.sql') FROM dual +; diff --git a/migration/i1.0a-release/oracle/201304121710_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304121710_IDEMPIERE-794.sql new file mode 100644 index 0000000000..1ccb5b4468 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304121710_IDEMPIERE-794.sql @@ -0,0 +1,7 @@ +-- Apr 12, 2013 5:03:05 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200060, AD_Reference_ID=18,Updated=TO_DATE('2013-04-12 17:03:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208337 +; + +SELECT register_migration_script('201304121710_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304131343_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304131343_IDEMPIERE-794.sql new file mode 100644 index 0000000000..3b6a968dbf --- /dev/null +++ b/migration/i1.0a-release/oracle/201304131343_IDEMPIERE-794.sql @@ -0,0 +1,575 @@ +-- Apr 13, 2013 12:59:40 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_DATE('2013-04-13 12:59:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50212 +; + +-- Apr 13, 2013 1:00:45 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138,Updated=TO_DATE('2013-04-13 13:00:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210163 +; + +-- Apr 13, 2013 1:01:00 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356,Updated=TO_DATE('2013-04-13 13:01:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210164 +; + +-- Apr 13, 2013 1:01:37 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166,Updated=TO_DATE('2013-04-13 13:01:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210162 +; + +-- Apr 13, 2013 1:02:22 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=259,Updated=TO_DATE('2013-04-13 13:02:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=201273 +; + +-- Apr 13, 2013 1:02:49 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210165 +; + +-- Apr 13, 2013 1:03:07 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:03:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210166 +; + +-- Apr 13, 2013 1:03:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227,Updated=TO_DATE('2013-04-13 13:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210168 +; + +-- Apr 13, 2013 1:04:13 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=159,Updated=TO_DATE('2013-04-13 13:04:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210167 +; + +-- Apr 13, 2013 1:04:43 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=170,Updated=TO_DATE('2013-04-13 13:04:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210171 +; + +-- Apr 13, 2013 1:05:01 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:05:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210169 +; + +-- Apr 13, 2013 1:05:14 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200,Updated=TO_DATE('2013-04-13 13:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210175 +; + +-- Apr 13, 2013 1:05:26 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=336,Updated=TO_DATE('2013-04-13 13:05:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210176 +; + +-- Apr 13, 2013 1:05:39 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:05:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210174 +; + +-- Apr 13, 2013 1:06:19 PM COT +UPDATE AD_Column SET AD_Reference_ID=13,Updated=TO_DATE('2013-04-13 13:06:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210172 +; + +-- Apr 13, 2013 1:06:49 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210181 +; + +-- Apr 13, 2013 1:06:58 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:06:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210182 +; + +-- Apr 13, 2013 1:07:50 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200045, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:07:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210178 +; + +-- Apr 13, 2013 1:09:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=13,Updated=TO_DATE('2013-04-13 13:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210177 +; + +-- Apr 13, 2013 1:10:03 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044,Updated=TO_DATE('2013-04-13 13:10:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210179 +; + +-- Apr 13, 2013 1:10:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046,Updated=TO_DATE('2013-04-13 13:10:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210180 +; + +-- Apr 13, 2013 1:11:04 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_DATE('2013-04-13 13:11:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=203538 +; + +-- Apr 13, 2013 1:11:35 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:11:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205741 +; + +-- Apr 13, 2013 1:11:52 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:11:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205912 +; + +-- Apr 13, 2013 1:12:18 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138,Updated=TO_DATE('2013-04-13 13:12:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205915 +; + +-- Apr 13, 2013 1:12:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=159,Updated=TO_DATE('2013-04-13 13:12:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205916 +; + +-- Apr 13, 2013 1:12:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:12:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205917 +; + +-- Apr 13, 2013 1:13:44 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, AD_Reference_ID=30, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:13:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205928 +; + +-- Apr 13, 2013 1:14:29 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138,Updated=TO_DATE('2013-04-13 13:14:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205881 +; + +-- Apr 13, 2013 1:14:41 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=144,Updated=TO_DATE('2013-04-13 13:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205884 +; + +-- Apr 13, 2013 1:16:07 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:16:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205820 +; + +-- Apr 13, 2013 1:16:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:16:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205821 +; + +-- Apr 13, 2013 1:16:23 PM COT +UPDATE AD_Column SET AD_Reference_ID=13,Updated=TO_DATE('2013-04-13 13:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205822 +; + +-- Apr 13, 2013 1:16:30 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200045,Updated=TO_DATE('2013-04-13 13:16:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205823 +; + +-- Apr 13, 2013 1:16:35 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044,Updated=TO_DATE('2013-04-13 13:16:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205824 +; + +-- Apr 13, 2013 1:16:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356,Updated=TO_DATE('2013-04-13 13:16:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205825 +; + +-- Apr 13, 2013 1:16:47 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227,Updated=TO_DATE('2013-04-13 13:16:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205827 +; + +-- Apr 13, 2013 1:16:58 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200047, AD_Reference_ID=18,Updated=TO_DATE('2013-04-13 13:16:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205830 +; + +-- Apr 13, 2013 1:17:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046,Updated=TO_DATE('2013-04-13 13:17:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205826 +; + +-- Apr 13, 2013 1:17:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205880 +; + +-- Apr 13, 2013 1:17:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=32,Updated=TO_DATE('2013-04-13 13:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205851 +; + +-- Apr 13, 2013 1:18:42 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249,Updated=TO_DATE('2013-04-13 13:18:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205852 +; + +-- Apr 13, 2013 1:18:50 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166,Updated=TO_DATE('2013-04-13 13:18:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205853 +; + +-- Apr 13, 2013 1:19:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_DATE('2013-04-13 13:19:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205863 +; + +-- Apr 13, 2013 1:19:29 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=170,Updated=TO_DATE('2013-04-13 13:19:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205749 +; + +-- Apr 13, 2013 1:19:46 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:19:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205876 +; + +-- Apr 13, 2013 1:20:06 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205901 +; + +-- Apr 13, 2013 1:20:13 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:20:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205797 +; + +-- Apr 13, 2013 1:20:22 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:20:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205932 +; + +-- Apr 13, 2013 1:20:42 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:20:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205757 +; + +-- Apr 13, 2013 1:21:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=159, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:21:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205758 +; + +-- Apr 13, 2013 1:21:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:21:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205759 +; + +-- Apr 13, 2013 1:22:01 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:22:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205773 +; + +-- Apr 13, 2013 1:22:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:22:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205787 +; + +-- Apr 13, 2013 1:22:39 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=197, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:22:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205792 +; + +-- Apr 13, 2013 1:23:03 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:23:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205776 +; + +-- Apr 13, 2013 1:23:27 PM COT +UPDATE AD_Column SET AD_Reference_ID=13, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:23:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205777 +; + +-- Apr 13, 2013 1:23:52 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249,Updated=TO_DATE('2013-04-13 13:23:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205857 +; + +-- Apr 13, 2013 1:23:58 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227,Updated=TO_DATE('2013-04-13 13:23:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205858 +; + +-- Apr 13, 2013 1:24:05 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166,Updated=TO_DATE('2013-04-13 13:24:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205859 +; + +-- Apr 13, 2013 1:24:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290, AD_Reference_ID=30, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:24:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205783 +; + +-- Apr 13, 2013 1:24:57 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=134, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:24:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205785 +; + +-- Apr 13, 2013 1:25:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=137, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:25:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205786 +; + +-- Apr 13, 2013 1:26:01 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=134, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:26:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210184 +; + +-- Apr 13, 2013 1:26:29 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:26:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=206959 +; + +-- Apr 13, 2013 1:26:41 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:26:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=206961 +; + +-- Apr 13, 2013 1:27:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290, AD_Reference_ID=30,Updated=TO_DATE('2013-04-13 13:27:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53914 +; + +-- Apr 13, 2013 1:28:02 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_DATE('2013-04-13 13:28:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57593 +; + +-- Apr 13, 2013 1:28:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130,Updated=TO_DATE('2013-04-13 13:28:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57593 +; + +-- Apr 13, 2013 1:28:55 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_DATE('2013-04-13 13:28:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57598 +; + +-- Apr 13, 2013 1:29:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_DATE('2013-04-13 13:29:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57597 +; + +-- Apr 13, 2013 1:29:34 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_DATE('2013-04-13 13:29:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55489 +; + +-- Apr 13, 2013 1:29:39 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_DATE('2013-04-13 13:29:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55490 +; + +-- Apr 13, 2013 1:33:43 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130,Updated=TO_DATE('2013-04-13 13:33:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59577 +; + +-- Apr 13, 2013 1:34:04 PM COT +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_DATE('2013-04-13 13:34:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58991 +; + +-- Apr 13, 2013 1:34:38 PM COT +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_DATE('2013-04-13 13:34:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58992 +; + +-- Apr 13, 2013 1:34:56 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_DATE('2013-04-13 13:34:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59016 +; + +-- Apr 13, 2013 1:35:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_DATE('2013-04-13 13:35:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56113 +; + +-- Apr 13, 2013 1:35:41 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207021 +; + +-- Apr 13, 2013 1:36:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=197, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:36:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207205 +; + +-- Apr 13, 2013 1:37:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=337, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:37:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207056 +; + +-- Apr 13, 2013 1:38:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200037, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 13:38:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207335 +; + +-- Apr 13, 2013 1:39:00 PM COT +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_DATE('2013-04-13 13:39:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57338 +; + +-- Apr 13, 2013 1:39:20 PM COT +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_DATE('2013-04-13 13:39:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57341 +; + +-- Apr 13, 2013 1:39:50 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=134, AD_Reference_ID=18,Updated=TO_DATE('2013-04-13 13:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59754 +; + +-- Apr 13, 2013 1:39:56 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=137, AD_Reference_ID=18,Updated=TO_DATE('2013-04-13 13:39:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59761 +; + +/* set columns createdby/updatedby */ +/* +SELECT c.ad_column_id, tb.tablename,c.columnname,c.ad_reference_id,c.ad_reference_value_id +FROM ad_column c + JOIN ad_table tb ON tb.ad_table_id = c.ad_table_id +WHERE c.isactive='Y' and upper(c.columnname) like '%ATEDBY' +and (coalesce(c.ad_reference_id,0)!=18 or coalesce(c.ad_reference_value_id,0)!=110) +ORDER BY 2, 3; +*/ + +update ad_column set ad_reference_id=18, ad_reference_value_id=110 +where ad_column_id in ( +55539, -- A_Asset_Reval_Index.UpdatedBy +50116, -- AD_Package_Exp_Detail.CreatedBy +50118, -- AD_Package_Exp_Detail.UpdatedBy +201408, -- C_Dunning_Header_v.ad_orginfo_createdby +201421, -- C_Dunning_Header_v.ad_orginfo_updatedby +201387, -- C_Dunning_Header_v.ad_user_createdby +201398, -- C_Dunning_Header_v.ad_user_updatedby +201295, -- C_Dunning_Header_v.c_bpartner_createdby +201349, -- C_Dunning_Header_v.c_bpartner_location_createdby +201362, -- C_Dunning_Header_v.c_bpartner_location_updatedby +201341, -- C_Dunning_Header_v.c_bpartner_updatedby +201260, -- C_Dunning_Header_v.c_dunningrunentry_createdby +201264, -- C_Dunning_Header_v.c_dunningrunentry_updatedby +201372, -- C_Dunning_Header_v.c_location_createdby +201378, -- C_Dunning_Header_v.c_location_updatedby +201453, -- C_Dunning_Header_v.salesrep_bpartner_createdby +201499, -- C_Dunning_Header_v.salesrep_bpartner_updatedby +201430, -- C_Dunning_Header_v.salesrep_createdby +201440, -- C_Dunning_Header_v.salesrep_updatedby +201520, -- C_Dunning_Line_v.c_invoice_createdby +201544, -- C_Dunning_Line_v.c_invoice_updatedby +201584, -- C_Dunning_Line_v.c_payment_createdby +201618, -- C_Dunning_Line_v.c_payment_updatedby +203613, -- C_Invoice_Header_v.ad_orginfo_createdby +203626, -- C_Invoice_Header_v.ad_orginfo_updatedby +203594, -- C_Invoice_Header_v.ad_user_createdby +203604, -- C_Invoice_Header_v.ad_user_updatedby +203661, -- C_Invoice_Header_v.bpartner_createdby +203711, -- C_Invoice_Header_v.bpartner_updatedby +203503, -- C_Invoice_Header_v.bp_createdby +203557, -- C_Invoice_Header_v.bp_location_createdby +203570, -- C_Invoice_Header_v.bp_location_updatedby +203549, -- C_Invoice_Header_v.bp_updatedby +203580, -- C_Invoice_Header_v.c_location_createdby +203585, -- C_Invoice_Header_v.c_location_updatedby +203635, -- C_Invoice_Header_v.salesrep_createdby +203647, -- C_Invoice_Header_v.salesrep_updatedby +205711, -- C_Invoice_LineTax_v.c_bp_product_createdby +205720, -- C_Invoice_LineTax_v.c_bp_product_updatedby +205587, -- C_Invoice_LineTax_v.c_invoice_createdby +205624, -- C_Invoice_LineTax_v.c_invoice_updatedby +205736, -- C_Invoice_LineTax_v.M_ASI_CreatedBy +205740, -- C_Invoice_LineTax_v.M_ASI_UpdatedBy +205651, -- C_Invoice_LineTax_v.m_product_createdby +205694, -- C_Invoice_LineTax_v.m_product_updatedby +205733, -- C_Invoice_LineTax_v.s_rassignment_updatedby +206133, -- C_Order_Header_v.ad_orginfo_createdby +206146, -- C_Order_Header_v.ad_orginfo_updatedby +205920, -- C_Order_Header_v.ad_user_createdby +205930, -- C_Order_Header_v.ad_user_updatedby +206246, -- C_Order_Header_v.bill_bp_createdby +206299, -- C_Order_Header_v.bill_bp_location_createdby +206312, -- C_Order_Header_v.bill_bp_location_updatedby +206294, -- C_Order_Header_v.bill_bp_updatedby +206321, -- C_Order_Header_v.bill_user_createdby +206331, -- C_Order_Header_v.bill_user_updatedby +205829, -- C_Order_Header_v.bp_createdby +205883, -- C_Order_Header_v.bp_location_createdby +205896, -- C_Order_Header_v.bp_location_updatedby +205874, -- C_Order_Header_v.bp_updatedby +205906, -- C_Order_Header_v.c_location_createdby +205911, -- C_Order_Header_v.c_location_updatedby +206181, -- C_Order_Header_v.salesrep_bp_createdby +206231, -- C_Order_Header_v.salesrep_bp_updatedby +206155, -- C_Order_Header_v.salesrep_createdby +206167, -- C_Order_Header_v.salesrep_updatedby +204045, -- C_Order_LineTax_v.c_bpartner_createdby +204102, -- C_Order_LineTax_v.c_bpartner_location_createdby +204115, -- C_Order_LineTax_v.c_bpartner_location_updatedby +204022, -- C_Order_LineTax_v.c_bpartner_product_createdby +204031, -- C_Order_LineTax_v.c_bpartner_product_updatedby +204096, -- C_Order_LineTax_v.c_bpartner_updatedby +203861, -- C_Order_LineTax_v.c_order_createdby +203912, -- C_Order_LineTax_v.c_order_updatedby +203921, -- C_Order_LineTax_v.m_product_createdby +203974, -- C_Order_LineTax_v.m_product_po_createdby +203995, -- C_Order_LineTax_v.m_product_po_updatedby +203965, -- C_Order_LineTax_v.m_product_updatedby +204008, -- C_Order_LineTax_v.s_resourceassignment_updatedby +206646, -- C_PaySelection_Check_v.ad_orginfo_createdby +206659, -- C_PaySelection_Check_v.ad_orginfo_updatedby +206592, -- C_PaySelection_Check_v.c_bp_createdby +206636, -- C_PaySelection_Check_v.c_bp_updatedby +206534, -- C_PaySelection_Check_v.c_payment_createdby +206575, -- C_PaySelection_Check_v.c_payment_updatedby +206491, -- C_PaySelection_Check_v.c_payselectioncheck_createdby +206499, -- C_PaySelection_Check_v.c_payselectioncheck_updatedby +206503, -- C_PaySelection_Check_v.c_payselection_createdby +206511, -- C_PaySelection_Check_v.c_payselection_updatedby +204264, -- C_PaySelection_Remittance_v.c_invoice_createdby +204296, -- C_PaySelection_Remittance_v.c_invoice_updatedby +204239, -- C_PaySelection_Remittance_v.c_payselectionline_createdby +204246, -- C_PaySelection_Remittance_v.c_payselectionline_updatedby +206682, -- C_Project_Details_v.c_project_createdby +206709, -- C_Project_Details_v.c_project_updatedby +206715, -- C_Project_Details_v.m_product_createdby +206761, -- C_Project_Details_v.m_product_updatedby +206839, -- C_Project_Header_v.ad_orginfo_createdby +206852, -- C_Project_Header_v.ad_orginfo_updatedby +206966, -- C_Project_Header_v.ad_user_createdby +206976, -- C_Project_Header_v.ad_user_updatedby +206788, -- C_Project_Header_v.c_bp_createdby +206986, -- C_Project_Header_v.c_bp_location_createdby +206999, -- C_Project_Header_v.c_bp_location_updatedby +206833, -- C_Project_Header_v.c_bp_updatedby +206901, -- C_Project_Header_v.salesrep_bp_createdby +206951, -- C_Project_Header_v.salesrep_bp_updatedby +206875, -- C_Project_Header_v.salesrep_createdby +206887, -- C_Project_Header_v.salesrep_updatedby +58981, -- I_ProductPlanning.CreatedBy +58984, -- I_ProductPlanning.UpdatedBy +207186, -- M_InOut_Header_v.ad_orginfo_createdby +207199, -- M_InOut_Header_v.ad_orginfo_updatedby +207166, -- M_InOut_Header_v.ad_user_createdby +207176, -- M_InOut_Header_v.ad_user_updatedby +207075, -- M_InOut_Header_v.c_bp_createdby +207129, -- M_InOut_Header_v.c_bp_location_createdby +207142, -- M_InOut_Header_v.c_bp_location_updatedby +207120, -- M_InOut_Header_v.c_bp_updatedby +207152, -- M_InOut_Header_v.c_location_createdby +207157, -- M_InOut_Header_v.c_location_updatedby +207317, -- M_InOut_Line_v.c_orderline_createdby +207352, -- M_InOut_Line_v.c_orderline_updatedby +207295, -- M_InOut_Line_v.M_ASI_CreatedBy +207299, -- M_InOut_Line_v.M_ASI_UpdatedBy +207236, -- M_InOut_Line_v.m_product_createdby +207280, -- M_InOut_Line_v.m_product_updatedby +57560, -- PA_ReportCube.CreatedBy +57565, -- PA_ReportCube.UpdatedBy +53739, -- PP_Order_Node_Product.UpdatedBy +5420, -- R_Request.CreatedBy +204617, -- RV_Allocation.c_allocationline_createdby +204622, -- RV_Allocation.c_allocationline_updatedby +207392, -- RV_BPartner.ad_user_createdby +207395, -- RV_BPartner.ad_user_updatedby +207374, -- RV_BPartner.c_bp_location_createdby +207387, -- RV_BPartner.c_bp_location_updatedby +207402, -- RV_BPartner.c_location_createdby +207406, -- RV_BPartner.c_location_updatedby +207447, -- RV_C_Invoice.c_bp_createdby +207505, -- RV_C_Invoice.c_bp_location_createdby +207518, -- RV_C_Invoice.c_bp_location_updatedby +207498, -- RV_C_Invoice.c_bp_updatedby +207526, -- RV_C_Invoice.c_location_createdby +207531, -- RV_C_Invoice.c_location_updatedby +204699, -- RV_C_InvoiceLine.m_product_createdby +204745, -- RV_C_InvoiceLine.m_product_updatedby +207594, -- RV_C_InvoiceTax.c_bp_createdby +207642, -- RV_C_InvoiceTax.c_bp_updatedby +207550, -- RV_C_InvoiceTax.c_invoice_createdby +207579, -- RV_C_InvoiceTax.c_invoice_updatedby +204761, -- RV_CommissionRunDetail.c_commission_createdby +204781, -- RV_CommissionRunDetail.c_commissiondetail_createdby +204784, -- RV_CommissionRunDetail.c_commissiondetail_updatedby +204771, -- RV_CommissionRunDetail.c_commission_updatedby +204775, -- RV_CommissionRunDetail.c_commmissionamt_createdby +204778, -- RV_CommissionRunDetail.c_commssionamt_updatedby +204968, -- RV_CommissionRunDetail.c_invoice_createdby +204848, -- RV_CommissionRunDetail.c_invoiceline_createdby +204874, -- RV_CommissionRunDetail.c_invoiceline_updatedby +205002, -- RV_CommissionRunDetail.c_invoice_updatedby +204901, -- RV_CommissionRunDetail.c_order_createdby +204798, -- RV_CommissionRunDetail.c_orderline_createdby +204833, -- RV_CommissionRunDetail.c_orderline_updatedby +205014, -- RV_Cost.m_product_createdby +205059, -- RV_Cost.m_product_updatedby +207718, -- RV_CostDetail.M_ASI_CreatedBy +207724, -- RV_CostDetail.M_ASI_UpdatedBy +207664, -- RV_CostDetail.m_product_createdby +207709, -- RV_CostDetail.m_product_updatedby +207753, -- RV_Fact_Acct.c_bp_createdby +207803, -- RV_Fact_Acct.c_bp_updatedby +207809, -- RV_Fact_Acct.m_product_createdby +207855, -- RV_Fact_Acct.m_product_updatedby +207907, -- RV_InOutDetails.M_ASI_CreatedBy +207911, -- RV_InOutDetails.M_ASI_UpdatedBy +207864, -- RV_InOutDetails.m_inout_createdby +207882, -- RV_InOutDetails.m_inout_updatedby +207927, -- RV_M_Transaction.m_product_createdby +207983, -- RV_M_Transaction.m_product_po_createdby +208001, -- RV_M_Transaction.m_product_po_updatedby +207975, -- RV_M_Transaction.m_product_updatedby +207914, -- RV_M_Transaction.m_transaction_createdby +207922, -- RV_M_Transaction.m_transation_updatedby +208024, -- RV_OrderDetail.c_order_createdby +208068, -- RV_OrderDetail.c_order_updatedby +208100, -- RV_OrderDetail.M_ASI_CreatedBy +208104, -- RV_OrderDetail.M_ASI_UpdatedBy +208161, -- RV_Storage.M_ASI_CreatedBy +208165, -- RV_Storage.M_ASI_UpdatedBy +208116, -- RV_Storage.m_product_createdby +208158, -- RV_Storage.m_product_updatedby +208107, -- RV_Storage.m_storage_updatedby +208324, -- RV_Transaction.c_prjctissue_createdby +208339, -- RV_Transaction.c_prjctissue_updatedby +208273, -- RV_Transaction.m_inoutline_createdby +208293, -- RV_Transaction.m_inoutline_updatedby +208228, -- RV_Transaction.m_inventoryline_createdby +208242, -- RV_Transaction.m_inventoryline_updatedby +208246, -- RV_Transaction.m_movementline_createdby +208261, -- RV_Transaction.m_movementline_updatedby +208180, -- RV_Transaction.m_product_createdby +208298, -- RV_Transaction.m_productionline_createdby +208308, -- RV_Transaction.m_productionline_updatedby +208311, -- RV_Transaction.m_productionplan_createdby +208320, -- RV_Transaction.m_productionplan_updatedby +208224, -- RV_Transaction.m_product_updatedby +208167, -- RV_Transaction.m_transaction_createdby +208171, -- RV_Transaction.m_transction_updatedby +205524, -- T_InvoiceGL_v.fact_acct_updatedby +205473, -- T_InvoiceGL_v.t_invoicegl_createdby +205477 -- T_InvoiceGL_v.t_invoicegl_updatedby +) +; + +SELECT register_migration_script('201304131343_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304131454_IDEMPIERE-794.sql b/migration/i1.0a-release/oracle/201304131454_IDEMPIERE-794.sql new file mode 100644 index 0000000000..0b392861d3 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304131454_IDEMPIERE-794.sql @@ -0,0 +1,2146 @@ +-- Apr 13, 2013 2:39:11 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210217,'U','N','N','N','N',10,'N',19,'N',200976,'8a5428d7-a189-41c0-b463-fbcd5baa9d6b','N','bp_bpartner_parent_id','bp_bpartner_parent_id',TO_DATE('2013-04-13 14:39:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:10','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:11 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210217 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:11 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('bp_c_dunning_id',202507,'U','bp_c_dunning_id','bp_c_dunning_id','f41500eb-afc6-4ded-927b-a304709929c6',TO_DATE('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 2:39:11 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202507 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210218,'U','N','N','N','N',10,'N',19,'N',202507,'e1e394b3-5ba4-468f-9c72-f46498c4e7dd','N','bp_c_dunning_id','bp_c_dunning_id',TO_DATE('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210218 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210219,'U','N','N','N','N',10,'N',19,'N',200980,'55f02d1d-5283-46a4-8a96-fddd9baad530','N','bp_c_invoiceschedule_id','C_BPartner_InvoiceSchedule_ID',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210219 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210220,'U','N','N','N','N',10,'N',19,'N',201018,'ff03bf8c-b3dc-4c83-8627-296cc2a79a4b','N','bp_salesrep_id','bp_salesrep_id',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210220 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('ad_user_ad_ad_orgtrx_id',202508,'U','ad_user_ad_ad_orgtrx_id','ad_user_ad_ad_orgtrx_id','a03a6695-f47d-49a1-b5b0-4ab7f9023da2',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202508 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210221,'U','N','N','N','N',10,'N',19,'N',202508,'b49260d8-c4d4-4e40-89aa-603776c57c45','N','ad_user_ad_ad_orgtrx_id','ad_user_ad_ad_orgtrx_id',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210221 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210222,'U','N','N','N','N',10,'N',10,'N',250,'898f107b-c06a-466b-be73-611cd259039b','N','CurSymbol','Symbol of the currency (opt used for printing only)','The Currency Symbol defines the symbol that will print when this currency is used.','Symbol',TO_DATE('2013-04-13 14:39:13','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:13','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210222 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('cur_description',202509,'U','cur_description','cur_description','eca51543-f194-45b8-9c04-050b3028c1ec',TO_DATE('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202509 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 2:39:15 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210223,'U','N','N','N','N',255,'N',10,'N',202509,'e54ca6fb-80e8-4747-b972-99ef15ca03cf','N','cur_description','cur_description',TO_DATE('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:15 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210223 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:42:56 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=124, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:42:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210217 +; + +-- Apr 13, 2013 2:43:12 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:43:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210218 +; + +-- Apr 13, 2013 2:43:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:43:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210219 +; + +-- Apr 13, 2013 2:43:53 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:43:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210220 +; + +-- Apr 13, 2013 2:44:32 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:44:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210221 +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Element SET EntityType='D', Name='Currency Description', PrintName='Currency Description',Updated=TO_DATE('2013-04-13 14:45:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202509 +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Column SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202509 +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Process_Para SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL, AD_Element_ID=202509 WHERE UPPER(ColumnName)='CUR_DESCRIPTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Process_Para SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202509 AND IsCentrallyMaintained='Y' +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_InfoColumn SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202509 AND IsCentrallyMaintained='Y' +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Field SET Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202509) AND IsCentrallyMaintained='Y' +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_PrintFormatItem SET PrintName='Currency Description', Name='Currency Description' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202509) +; + +-- Apr 13, 2013 2:45:37 PM COT +UPDATE AD_Column SET EntityType='D', IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:45:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210223 +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210224,'U','N','N','N','N',10,'N',19,'N',200974,'9fe59660-5896-49f8-85ea-02c99612c998','N','bp_ad_orgbp_id','bp_ad_orgbp_id',TO_DATE('2013-04-13 14:46:01','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:01','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210224 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210225,'U','N','N','N','N',10,'N',19,'N',200975,'81e4b5a4-1633-4243-9e55-16fa81b74754','N','bp_ad_org_id','bp_ad_org_id',TO_DATE('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210225 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210226,'U','N','N','N','N',10,'N',19,'N',200976,'fc37b29b-7112-4b76-8d01-7f28074fe09d','N','bp_bpartner_parent_id','bp_bpartner_parent_id',TO_DATE('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210226 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210227,'U','N','N','N','N',10,'N',19,'N',200977,'b28c8267-84dd-487f-8377-127b7adaedd5','N','bp_c_bp_group_id','bp_c_bp_group_id',TO_DATE('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210227 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210228,'U','N','N','N','N',10,'N',19,'N',202507,'f963bec3-9370-41bf-b143-b1ef1c0c3542','N','bp_c_dunning_id','bp_c_dunning_id',TO_DATE('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210228 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210229,'U','N','N','N','N',10,'N',19,'N',200979,'f867a688-b864-4b74-938b-174d85242623','N','bp_c_greeting_id','bp_c_greeting_id',TO_DATE('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210229 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210230,'U','N','N','N','N',10,'N',19,'N',200980,'d9815838-cad2-423a-8c9c-37a256f566e3','N','bp_c_invoiceschedule_id','C_BPartner_InvoiceSchedule_ID',TO_DATE('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210230 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210231,'U','N','N','N','N',10,'N',19,'N',200981,'8f16bd74-260c-44ce-88cc-850f3a43f66d','N','bp_c_paymentterm_id','bp_c_paymentterm_id',TO_DATE('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210231 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210232,'U','N','N','N','N',10,'N',19,'N',200984,'64fc66c6-9107-4480-9a42-5f054c47fd2a','N','bp_c_taxgroup_id','bp_c_taxgroup_id',TO_DATE('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210232 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210233,'U','N','N','N','N',10,'N',19,'N',201005,'3af4c269-69ea-430d-bbb8-4d42119d7713','N','bp_logo_id','bp_logo_id',TO_DATE('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210233 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210234,'U','N','N','N','N',10,'N',19,'N',201006,'9caafb7d-2c62-4977-96fb-ccaba093dfbf','N','bp_m_discountschema_id','bp_m_discountschema_id',TO_DATE('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210234 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210235,'U','N','N','N','N',10,'N',19,'N',201007,'c14fb274-5874-4e0b-8e00-7c6247d246c9','N','bp_m_pricelist_id','bp_m_pricelist_id',TO_DATE('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210235 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210236,'U','N','N','N','N',10,'N',19,'N',201012,'fb314bcb-fb12-4f58-8c74-e8f78697e594','N','bp_po_discountschema_id','bp_po_discountschema_id',TO_DATE('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210236 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210237,'U','N','N','N','N',10,'N',19,'N',201013,'d627722c-1bdf-49d9-9c19-7d4cbdc32a78','N','bp_po_paymentterm_id','bp_po_paymentterm_id',TO_DATE('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210237 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210238,'U','N','N','N','N',10,'N',19,'N',201014,'8638c73a-276a-4c13-8087-49942268a50c','N','bp_po_pricelist_id','bp_po_pricelist_id',TO_DATE('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210238 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210239,'U','N','N','N','N',10,'N',19,'N',201018,'8aa509f6-dbb2-47b8-a5d5-7c835374087b','N','bp_salesrep_id','bp_salesrep_id',TO_DATE('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210239 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210240,'U','N','N','N','N',10,'N',19,'N',201033,'49ca0e51-d50d-4a36-98bc-2f5b661d97b9','N','bp_location_ad_org_id','bp_location_ad_org_id',TO_DATE('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210240 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210241,'U','N','N','N','N',10,'N',19,'N',200423,'c5aa52b4-d9be-4d9d-b8de-7f6f36ab8d0f','N','AD_User_AD_OrgTrx_ID','AD_User_AD_OrgTrx_ID',TO_DATE('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210241 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210242,'U','N','N','N','N',10,'N',10,'N',250,'b7bdc4a6-bd41-4b80-8499-5ae8b183e7ff','N','CurSymbol','Symbol of the currency (opt used for printing only)','The Currency Symbol defines the symbol that will print when this currency is used.','Symbol',TO_DATE('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210242 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210243,'U','N','N','N','N',255,'N',10,'N',202509,'77e21b24-4565-44f9-82c6-c9c1844ec920','N','cur_description','Currency Description',TO_DATE('2013-04-13 14:46:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 14:46:10','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210243 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:47:08 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:47:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210224 +; + +-- Apr 13, 2013 2:47:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:47:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210225 +; + +-- Apr 13, 2013 2:47:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=124, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:47:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210226 +; + +-- Apr 13, 2013 2:47:54 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200045, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:47:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210227 +; + +-- Apr 13, 2013 2:48:14 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210228 +; + +-- Apr 13, 2013 2:49:18 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:49:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210229 +; + +-- Apr 13, 2013 2:49:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:49:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210230 +; + +-- Apr 13, 2013 2:49:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:49:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210231 +; + +-- Apr 13, 2013 2:49:52 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200047, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:49:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210232 +; + +-- Apr 13, 2013 2:50:34 PM COT +UPDATE AD_Column SET AD_Reference_ID=32, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:50:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210233 +; + +-- Apr 13, 2013 2:50:46 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210234 +; + +-- Apr 13, 2013 2:50:53 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:50:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210235 +; + +-- Apr 13, 2013 2:51:07 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210236 +; + +-- Apr 13, 2013 2:51:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:51:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210237 +; + +-- Apr 13, 2013 2:51:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:51:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210238 +; + +-- Apr 13, 2013 2:51:47 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:51:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210239 +; + +-- Apr 13, 2013 2:52:10 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:52:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210240 +; + +-- Apr 13, 2013 2:52:34 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_DATE('2013-04-13 14:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210241 +; + +DROP VIEW c_invoice_header_v; + +CREATE OR REPLACE VIEW c_invoice_header_v +AS + SELECT i.ad_client_id, + i.ad_org_id, + i.isactive, + i.created, + i.createdby, + i.updated, + i.updatedby, + 'en_US' AS ad_language, + i.c_invoice_id, + i.issotrx, + i.documentno, + i.docstatus, + i.c_doctype_id, + i.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + i.c_order_id, + i.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + i.dateinvoiced, + bpg.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcg.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + bp.referenceno, + l.postal + || l.postal_add AS postal, + i.description, + i.poreference, + i.dateordered, + i.c_currency_id, + pt.name AS paymentterm, + pt.documentnote AS paymenttermnote, + i.c_charge_id, + i.chargeamt, + i.totallines, + i.grandtotal, + i.grandtotal AS amtinwords, + i.m_pricelist_id, + i.istaxincluded, + i.c_campaign_id, + i.c_project_id, + i.c_activity_id, + i.ispaid, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id, + i.ad_user_id, + i.c_bpartner_location_id, + i.c_conversiontype_id, + i.c_doctypetarget_id, + i.c_dunninglevel_id, + i.c_payment_id, + i.dateacct, + i.dateprinted, + i.docaction, + i.dunninggrace, + i.generateto, + i.invoicecollectiontype, + i.isapproved, + i.isdiscountprinted, + i.isindispute, + i.ispayschedulevalid, + i.isprinted, + i.isselfservice AS c_invoice_isselfservice, + i.istransferred, + i.m_rma_id, + i.paymentrule, + i.posted, + i.processedon, + i.processing, + i.ref_invoice_id, + i.reversal_id, + i.sendemail, + i.user1_id, + i.user2_id, + pt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + pt.c_paymentterm_id, + pt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + pt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS c_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.naics AS bp_naics, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpg.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpg.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto, + bpl.isdn, + bpl.ispayfrom, + bpl.isremitto, + bpl.isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcg.isactive AS user_greeting_isactive, + bpcg.isfirstnameonly AS user_greeting_isfirstnameonly, + bpcg.name AS user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS bpartner_acqusitioncost, + ubp.actuallifetimevalue AS bpartner_actuallifetimevalue, + ubp.ad_language AS bpartner_ad_language, + ubp.ad_orgbp_id AS bpartner_ad_orgbp_id, + ubp.ad_org_id AS bpartner_ad_org_id, + ubp.bpartner_parent_id AS bpartner_bpartner_parent_id, + ubp.c_bp_group_id AS bpartner_c_bp_group_id, + ubp.c_dunning_id AS bpartner_c_dunning_id, + ubp.c_greeting_id AS bpartner_c_greeting_id, + ubp.c_invoiceschedule_id AS bpartner_c_invoiceschedule_id, + ubp.c_paymentterm_id AS bpartner_c_paymentterm_id, + ubp.created AS bpartner_created, + ubp.createdby AS bpartner_createdby, + ubp.c_taxgroup_id AS bpartner_c_taxgroup_id, + ubp.deliveryrule AS bpartner_deliveryrule, + ubp.deliveryviarule AS bpartner_deliveryviarule, + ubp.description AS bpartner_description, + ubp.dunninggrace AS bpartner_dunninggrace, + ubp.duns AS bpartner_duns, + ubp.firstsale AS bpartner_firstsale, + ubp.flatdiscount AS bpartner_flatdiscount, + ubp.freightcostrule AS bpartner_freightcostrule, + ubp.invoicerule AS bpartner_invoicerule, + ubp.isactive AS bpartner_isactive, + ubp.iscustomer AS bpartner_iscustomer, + ubp.isdiscountprinted AS bpartner_isdiscountprinted, + ubp.isemployee AS bpartner_isemployee, + ubp.ismanufacturer AS bpartner_ismanufacturer, + ubp.isonetime AS bpartner_isonetime, + ubp.ispotaxexempt AS bpartner_ispotaxexempt, + ubp.isprospect AS bpartner_isprospect, + ubp.issalesrep AS bpartner_issalesrep, + ubp.issummary AS bpartner_issummary, + ubp.istaxexempt AS bpartner_istaxexempt, + ubp.isvendor AS bpartner_isvendor, + ubp.logo_id AS bpartner_logo_id, + ubp.m_discountschema_id AS bpartner_m_discountschema_id, + ubp.m_pricelist_id AS bpartner_m_pricelist_id, + ubp.naics AS bpartner_naics, + ubp.name2 AS bpartner_name2, + ubp.numberemployees AS bpartner_numberemployees, + ubp.paymentrule AS bpartner_paymentrule, + ubp.paymentrulepo AS bpartner_paymentrulepo, + ubp.po_discountschema_id AS bpartner_po_discountschema_id, + ubp.po_paymentterm_id AS bpartner_po_paymentterm_id, + ubp.po_pricelist_id AS bpartner_po_pricelist_id, + ubp.poreference AS bpartner_poreference, + ubp.potentiallifetimevalue AS bpartner_potentiallifetimeval, + ubp.rating AS bpartner_rating, + ubp.referenceno AS bpartner_referenceno, + ubp.salesrep_id AS bpartner_salesrep_id, + ubp.salesvolume AS bpartner_salesvolume, + ubp.sendemail AS bpartner_sendemail, + ubp.shareofcustomer AS bpartner_shareofcustomer, + ubp.shelflifeminpct AS bpartner_shelflifeminpct, + ubp.so_creditlimit AS bpartner_so_creditlimit, + ubp.socreditstatus AS bpartner_socreditstatus, + ubp.so_creditused AS bpartner_so_creditused, + ubp.so_description AS bpartner_so_description, + ubp.taxid AS bpartner_taxid, + ubp.totalopenbalance AS bpartner_totalopenbalance, + ubp.updated AS bpartner_updated, + ubp.updatedby AS bpartner_updatedby, + ubp.url AS bpartner_url, + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description + FROM c_invoice i + JOIN c_doctype dt + ON i.c_doctype_id = dt.c_doctype_id + JOIN c_paymentterm pt + ON i.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_bpartner bp + ON i.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + JOIN c_bpartner_location bpl + ON i.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON i.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + JOIN ad_orginfo oi + ON i.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON i.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON i.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency cur + ON i.c_currency_id = cur.c_currency_id +; + +DROP VIEW c_invoice_header_vt; + +CREATE OR REPLACE VIEW c_invoice_header_vt +AS + SELECT i.ad_client_id, + i.ad_org_id, + i.isactive, + i.created, + i.createdby, + i.updated, + i.updatedby, + dt.ad_language, + i.c_invoice_id, + i.issotrx, + i.documentno, + i.docstatus, + i.c_doctype_id, + i.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + i.c_order_id, + i.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + i.dateinvoiced, + bpgt.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcgt.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + bp.referenceno, + l.postal + || l.postal_add AS postal, + i.description, + i.poreference, + i.dateordered, + i.c_currency_id, + ptt.name AS paymentterm, + ptt.documentnote AS paymenttermnote, + i.c_charge_id, + i.chargeamt, + i.totallines, + i.grandtotal, + i.grandtotal AS amtinwords, + i.m_pricelist_id, + i.istaxincluded, + i.c_campaign_id, + i.c_project_id, + i.c_activity_id, + i.ispaid, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id, + i.ad_user_id, + i.c_bpartner_location_id, + i.c_conversiontype_id, + i.c_doctypetarget_id, + i.c_dunninglevel_id, + i.c_payment_id, + i.dateacct, + i.dateprinted, + i.docaction, + i.dunninggrace, + i.generateto, + i.invoicecollectiontype, + i.isapproved, + i.isdiscountprinted, + i.isindispute, + i.ispayschedulevalid, + i.isprinted, + i.isselfservice AS c_invoice_isselfservice, + i.istransferred, + i.m_rma_id, + i.paymentrule, + i.posted, + i.processedon, + i.processing, + i.ref_invoice_id, + i.reversal_id, + i.sendemail, + i.user1_id, + i.user2_id, + ptt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + pt.c_paymentterm_id, + ptt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + ptt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS c_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.naics AS bp_naics, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpgt.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpgt.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto, + bpl.isdn, + bpl.ispayfrom, + bpl.isremitto, + bpl.isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcgt.isactive AS user_greeting_isactive, + bpcg.isfirstnameonly AS user_greeting_isfirstnameonly, + bpcgt.name AS user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS bpartner_acqusitioncost, + ubp.actuallifetimevalue AS bpartner_actuallifetimevalue, + ubp.ad_language AS bpartner_ad_language, + ubp.ad_orgbp_id AS bpartner_ad_orgbp_id, + ubp.ad_org_id AS bpartner_ad_org_id, + ubp.bpartner_parent_id AS bpartner_bpartner_parent_id, + ubp.c_bp_group_id AS bpartner_c_bp_group_id, + ubp.c_dunning_id AS bpartner_c_dunning_id, + ubp.c_greeting_id AS bpartner_c_greeting_id, + ubp.c_invoiceschedule_id AS bpartner_c_invoiceschedule_id, + ubp.c_paymentterm_id AS bpartner_c_paymentterm_id, + ubp.created AS bpartner_created, + ubp.createdby AS bpartner_createdby, + ubp.c_taxgroup_id AS bpartner_c_taxgroup_id, + ubp.deliveryrule AS bpartner_deliveryrule, + ubp.deliveryviarule AS bpartner_deliveryviarule, + ubp.description AS bpartner_description, + ubp.dunninggrace AS bpartner_dunninggrace, + ubp.duns AS bpartner_duns, + ubp.firstsale AS bpartner_firstsale, + ubp.flatdiscount AS bpartner_flatdiscount, + ubp.freightcostrule AS bpartner_freightcostrule, + ubp.invoicerule AS bpartner_invoicerule, + ubp.isactive AS bpartner_isactive, + ubp.iscustomer AS bpartner_iscustomer, + ubp.isdiscountprinted AS bpartner_isdiscountprinted, + ubp.isemployee AS bpartner_isemployee, + ubp.ismanufacturer AS bpartner_ismanufacturer, + ubp.isonetime AS bpartner_isonetime, + ubp.ispotaxexempt AS bpartner_ispotaxexempt, + ubp.isprospect AS bpartner_isprospect, + ubp.issalesrep AS bpartner_issalesrep, + ubp.issummary AS bpartner_issummary, + ubp.istaxexempt AS bpartner_istaxexempt, + ubp.isvendor AS bpartner_isvendor, + ubp.logo_id AS bpartner_logo_id, + ubp.m_discountschema_id AS bpartner_m_discountschema_id, + ubp.m_pricelist_id AS bpartner_m_pricelist_id, + ubp.naics AS bpartner_naics, + ubp.name2 AS bpartner_name2, + ubp.numberemployees AS bpartner_numberemployees, + ubp.paymentrule AS bpartner_paymentrule, + ubp.paymentrulepo AS bpartner_paymentrulepo, + ubp.po_discountschema_id AS bpartner_po_discountschema_id, + ubp.po_paymentterm_id AS bpartner_po_paymentterm_id, + ubp.po_pricelist_id AS bpartner_po_pricelist_id, + ubp.poreference AS bpartner_poreference, + ubp.potentiallifetimevalue AS bpartner_potentiallifetimeval, + ubp.rating AS bpartner_rating, + ubp.referenceno AS bpartner_referenceno, + ubp.salesrep_id AS bpartner_salesrep_id, + ubp.salesvolume AS bpartner_salesvolume, + ubp.sendemail AS bpartner_sendemail, + ubp.shareofcustomer AS bpartner_shareofcustomer, + ubp.shelflifeminpct AS bpartner_shelflifeminpct, + ubp.so_creditlimit AS bpartner_so_creditlimit, + ubp.socreditstatus AS bpartner_socreditstatus, + ubp.so_creditused AS bpartner_so_creditused, + ubp.so_description AS bpartner_so_description, + ubp.taxid AS bpartner_taxid, + ubp.totalopenbalance AS bpartner_totalopenbalance, + ubp.updated AS bpartner_updated, + ubp.updatedby AS bpartner_updatedby, + ubp.url AS bpartner_url, + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description + FROM c_invoice i + JOIN c_doctype_trl dt + ON i.c_doctype_id = dt.c_doctype_id + JOIN c_paymentterm pt + ON i.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_paymentterm_trl ptt + ON i.c_paymentterm_id = ptt.c_paymentterm_id + AND dt.ad_language = ptt.ad_language + JOIN c_bpartner bp + ON i.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + LEFT JOIN c_greeting_trl bpgt + ON bp.c_greeting_id = bpgt.c_greeting_id + AND dt.ad_language = bpgt.ad_language + JOIN c_bpartner_location bpl + ON i.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON i.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + LEFT JOIN c_greeting_trl bpcgt + ON bpc.c_greeting_id = bpcgt.c_greeting_id + AND dt.ad_language = bpcgt.ad_language + JOIN ad_orginfo oi + ON i.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON i.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON i.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency_trl cur + ON i.c_currency_id = cur.c_currency_id + AND dt.ad_language = cur.ad_language +; + +DROP VIEW c_order_header_v; + +CREATE OR REPLACE VIEW c_order_header_v +AS + SELECT o.ad_client_id, + o.ad_org_id, + o.isactive, + o.created, + o.createdby, + o.updated, + o.updatedby, + 'en_US' AS ad_language, + o.c_order_id, + o.issotrx, + o.documentno, + o.docstatus, + o.c_doctype_id, + o.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + o.m_warehouse_id, + wh.c_location_id AS warehouse_location_id, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + o.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + o.dateordered, + o.datepromised, + bpg.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcg.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + l.postal + || l.postal_add AS postal, + bp.referenceno, + o.bill_bpartner_id, + o.bill_location_id, + o.bill_user_id, + bbp.value AS bill_bpvalue, + bbp.taxid AS bill_bptaxid, + bbp.name AS bill_name, + bbp.name2 AS bill_name2, + bbpc.title AS bill_title, + bbpc.phone AS bill_phone, + NULLIF(bbpc.name, bbp.name) AS bill_contactname, + bbpl.c_location_id AS bill_c_location_id, + o.description, + o.poreference, + o.c_currency_id, + pt.name AS paymentterm, + pt.documentnote AS paymenttermnote, + o.c_charge_id, + o.chargeamt, + o.totallines, + o.grandtotal, + o.grandtotal AS amtinwords, + o.m_pricelist_id, + o.istaxincluded, + o.volume, + o.weight, + o.c_campaign_id, + o.c_project_id, + o.c_activity_id, + o.m_shipper_id, + o.deliveryrule, + o.deliveryviarule, + o.priorityrule, + o.invoicerule, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + o.ad_orgtrx_id, + o.ad_user_id, + o.amountrefunded, + o.amounttendered, + o.c_bpartner_location_id, + o.c_cashline_id, + o.c_cashplanline_id, + o.c_conversiontype_id, + o.c_doctypetarget_id, + o.copyfrom, + o.c_payment_id, + o.c_paymentterm_id, + o.c_pos_id, + o.dateacct, + o.dateprinted, + o.docaction, + o.dropship_bpartner_id, + o.dropship_location_id, + o.dropship_user_id, + o.freightamt, + o.freightcostrule, + o.isapproved, + o.iscreditapproved, + o.isdelivered, + o.isdiscountprinted, + o.isdropship, + o.isinvoiced, + o.ispayschedulevalid, + o.isprinted, + o.isselected, + o.isselfservice, + o.istransferred, + o.link_order_id, + o.m_freightcategory_id, + o.ordertype, + o.pay_bpartner_id, + o.pay_location_id, + o.paymentrule, + o.posted, + o.processed, + o.processedon, + o.promotioncode, + o.ref_order_id, + o.sendemail, + o.user1_id, + o.user2_id, + wh.ad_org_id AS m_warehouse_ad_org_id, + wh.description AS m_warehouse_description, + wh.isactive AS m_warehouse_isactive, + wh.isdisallownegativeinv, + wh.isintransit, + wh.m_warehousesource_id, + wh.name AS m_warehouse_name, + wh.replenishmentclass, + wh.separator, + wh.value AS m_warehouse_value, + pt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + pt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + pt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS m_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpg.ad_org_id AS c_greeting_ad_org_id, + bpg.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpg.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id AS bp_location_c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto AS bp_location_isbillto, + bpl.isdn AS bp_location_isdn, + bpl.ispayfrom AS bp_location_ispayfrom, + bpl.isremitto AS bp_location_isremitto, + bpl.isshipto AS bp_location_isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcg.ad_org_id AS c_user_greeting_ad_org_id, + bpcg.isactive AS c_user_greeting_isactive, + bpcg.isfirstnameonly AS c_user_greeting_isfnameonly, + bpcg.name AS c_user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id AS ad_orginfo_m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS salesrep_bp_acqusitioncost, + ubp.actuallifetimevalue AS salesrep_bp_actuallifetimeval, + ubp.ad_language AS salesrep_bp_ad_language, + ubp.ad_orgbp_id AS salesrep_bp_ad_orgbp_id, + ubp.ad_org_id AS salesrep_bp_ad_org_id, + ubp.bpartner_parent_id AS salesrep_bp_bpartner_parent_id, + ubp.c_bp_group_id AS salesrep_bp_c_bp_group_id, + ubp.c_dunning_id AS salesrep_bp_c_dunning_id, + ubp.c_greeting_id AS salesrep_bp_c_greeting_id, + ubp.c_invoiceschedule_id AS salesrep_bp_c_invoicesched_id, + ubp.c_paymentterm_id AS salesrep_bp_c_paymentterm_id, + ubp.created AS salesrep_bp_created, + ubp.createdby AS salesrep_bp_createdby, + ubp.c_taxgroup_id AS salesrep_bp_c_taxgroup_id, + ubp.deliveryrule AS salesrep_bp_deliveryrule, + ubp.deliveryviarule AS salesrep_bp_deliveryviarule, + ubp.description AS salesrep_bp_description, + ubp.dunninggrace AS salesrep_bp_dunninggrace, + ubp.duns AS salesrep_bp_duns, + ubp.firstsale AS salesrep_bp_firstsale, + ubp.flatdiscount AS salesrep_bp_flatdiscount, + ubp.freightcostrule AS salesrep_bp_freightcostrule, + ubp.invoicerule AS salesrep_bp_invoicerule, + ubp.isactive AS salesrep_bp_isactive, + ubp.iscustomer AS salesrep_bp_iscustomer, + ubp.isdiscountprinted AS salesrep_bp_isdiscountprinted, + ubp.isemployee AS salesrep_bp_isemployee, + ubp.ismanufacturer AS salesrep_bp_ismanufacturer, + ubp.isonetime AS salesrep_bp_isonetime, + ubp.ispotaxexempt AS salesrep_bp_ispotaxexempt, + ubp.isprospect AS salesrep_bp_isprospect, + ubp.issalesrep AS salesrep_bp_issalesrep, + ubp.issummary AS salesrep_bp_issummary, + ubp.istaxexempt AS salesrep_bp_istaxexempt, + ubp.isvendor AS salesrep_bp_isvendor, + ubp.logo_id AS salesrep_bp_logo_id, + ubp.m_discountschema_id AS salesrep_bp_m_discountschm_id, + ubp.m_pricelist_id AS salesrep_bp_m_pricelist_id, + ubp.naics AS salesrep_bp_naics, + ubp.name2 AS salesrep_bp_name2, + ubp.numberemployees AS salesrep_bp_numberemployees, + ubp.paymentrule AS salesrep_bp_paymentrule, + ubp.paymentrulepo AS salesrep_bp_paymentrulepo, + ubp.po_discountschema_id AS salesrep_bp_po_discountschm_id, + ubp.po_paymentterm_id AS salesrep_bp_po_paymentterm_id, + ubp.po_pricelist_id AS salesrep_bp_po_pricelist_id, + ubp.poreference AS salesrep_bp_poreference, + ubp.potentiallifetimevalue AS salesrep_bp_potentiallifetime, + ubp.rating AS salesrep_bp_rating, + ubp.referenceno AS salesrep_bp_referenceno, + ubp.salesrep_id AS salesrep_bp_salesrep_id, + ubp.salesvolume AS salesrep_bp_salesvolume, + ubp.sendemail AS salesrep_bp_sendemail, + ubp.shareofcustomer AS salesrep_bp_shareofcustomer, + ubp.shelflifeminpct AS salesrep_bp_shelflifeminpct, + ubp.so_creditlimit AS salesrep_bp_so_creditlimit, + ubp.socreditstatus AS salesrep_bp_socreditstatus, + ubp.so_creditused AS salesrep_bp_so_creditused, + ubp.so_description AS salesrep_bp_so_description, + ubp.taxid AS salesrep_bp_taxid, + ubp.totalopenbalance AS salesrep_bp_totalopenbalance, + ubp.updated AS salesrep_bp_updated, + ubp.updatedby AS salesrep_bp_updatedby, + ubp.url AS salesrep_bp_url, + ubp.value AS salesrep_bp_value, + bbp.acqusitioncost AS bill_bp_acqusitioncost, + bbp.actuallifetimevalue AS bill_bp_actuallifetimevalue, + bbp.ad_language AS bill_bp_ad_language, + bbp.ad_orgbp_id AS bill_bp_ad_orgbp_id, + bbp.ad_org_id AS bill_bp_ad_org_id, + bbp.bpartner_parent_id AS bill_bp_bpartner_parent_id, + bbp.c_bp_group_id AS bill_bp_c_bp_group_id, + bbp.c_dunning_id AS bill_bp_c_dunning_id, + bbp.c_greeting_id AS bill_bp_c_greeting_id, + bbp.c_invoiceschedule_id AS bill_bp_c_invoiceschedule_id, + bbp.c_paymentterm_id AS bill_bp_c_paymentterm_id, + bbp.created AS bill_bp_created, + bbp.createdby AS bill_bp_createdby, + bbp.c_taxgroup_id AS bill_bp_c_taxgroup_id, + bbp.deliveryrule AS bill_bp_deliveryrule, + bbp.deliveryviarule AS bill_bp_deliveryviarule, + bbp.description AS bill_bp_description, + bbp.dunninggrace AS bill_bp_dunninggrace, + bbp.duns AS bill_bp_duns, + bbp.firstsale AS bill_bp_firstsale, + bbp.flatdiscount AS bill_bp_flatdiscount, + bbp.freightcostrule AS bill_bp_freightcostrule, + bbp.invoicerule AS bill_bp_invoicerule, + bbp.isactive AS bill_bp_isactive, + bbp.iscustomer AS bill_bp_iscustomer, + bbp.isdiscountprinted AS bill_bp_isdiscountprinted, + bbp.isemployee AS bill_bp_isemployee, + bbp.ismanufacturer AS bill_bp_ismanufacturer, + bbp.isonetime AS bill_bp_isonetime, + bbp.ispotaxexempt AS bill_bp_ispotaxexempt, + bbp.isprospect AS bill_bp_isprospect, + bbp.issalesrep AS bill_bp_issalesrep, + bbp.issummary AS bill_bp_issummary, + bbp.istaxexempt AS bill_bp_istaxexempt, + bbp.isvendor AS bill_bp_isvendor, + bbp.logo_id AS bill_bp_logo_id, + bbp.m_discountschema_id AS bill_bp_m_discountschema_id, + bbp.m_pricelist_id AS bill_bp_m_pricelist_id, + bbp.naics AS bill_bp_naics, + bbp.numberemployees AS bill_bp_numberemployees, + bbp.paymentrule AS bill_bp_paymentrule, + bbp.paymentrulepo AS bill_bp_paymentrulepo, + bbp.po_discountschema_id AS bill_bp_po_discountschema_id, + bbp.po_paymentterm_id AS bill_bp_po_paymentterm_id, + bbp.po_pricelist_id AS bill_bp_po_pricelist_id, + bbp.poreference AS bill_bp_poreference, + bbp.potentiallifetimevalue AS bill_bp_potentiallifetimevalue, + bbp.rating AS bill_bp_rating, + bbp.referenceno AS bill_bp_referenceno, + bbp.salesrep_id AS bill_bp_salesrep_id, + bbp.salesvolume AS bill_bp_salesvolume, + bbp.sendemail AS bill_bp_sendemail, + bbp.shareofcustomer AS bill_bp_shareofcustomer, + bbp.shelflifeminpct AS bill_bp_shelflifeminpct, + bbp.so_creditlimit AS bill_bp_so_creditlimit, + bbp.socreditstatus AS bill_bp_socreditstatus, + bbp.so_creditused AS bill_bp_so_creditused, + bbp.so_description AS bill_bp_so_description, + bbp.totalopenbalance AS bill_bp_totalopenbalance, + bbp.updated AS bill_bp_updated, + bbp.updatedby AS bill_bp_updatedby, + bbp.url AS bill_bp_url, + bbpl.ad_org_id AS bill_bp_location_ad_org_id, + bbpl.c_bpartner_id AS bill_bp_location_c_bpartner_id, + bbpl.created AS bill_bp_location_created, + bbpl.createdby AS bill_bp_location_createdby, + bbpl.c_salesregion_id AS bill_bp_location_c_salesreg_id, + bbpl.fax AS bill_bp_location_fax, + bbpl.isactive AS bill_bp_location_isactive, + bbpl.isbillto AS bill_bp_location_isbillto, + bbpl.isdn AS bill_bp_location_isdn, + bbpl.ispayfrom AS bill_bp_location_ispayfrom, + bbpl.isremitto AS bill_bp_location_isremitto, + bbpl.isshipto AS bill_bp_location_isshipto, + bbpl.name AS bill_bp_location_name, + bbpl.phone AS bill_bp_location_phone, + bbpl.phone2 AS bill_bp_location_phone2, + bbpl.updated AS bill_bp_location_updated, + bbpl.updatedby AS bill_bp_location_updatedby, + bbpc.ad_org_id AS bill_user_ad_org_id, + bbpc.ad_orgtrx_id AS bill_user_ad_orgtrx_id, + bbpc.birthday AS bill_user_ad_birthday, + bbpc.c_bpartner_id AS bill_user_c_bpartner_id, + bbpc.c_bpartner_location_id AS bill_user_c_bp_location_id, + bbpc.c_greeting_id AS bill_user_c_greeting_id, + bbpc.comments AS bill_user_comments, + bbpc.created AS bill_user_created, + bbpc.createdby AS bill_user_createdby, + bbpc.description AS bill_user_description, + bbpc.email AS bill_user_email, + bbpc.fax AS bill_user_fax, + bbpc.isactive AS bill_user_isactive, + bbpc.lastcontact AS bill_user_lastcontact, + bbpc.lastresult AS bill_user_lastresult, + bbpc.phone2 AS bill_user_phone2, + bbpc.supervisor_id AS bill_user_supervisor_id, + bbpc.updated AS bill_user_updated, + bbpc.updatedby AS bill_user_updatedby, + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description + FROM c_order o + JOIN c_doctype dt + ON o.c_doctype_id = dt.c_doctype_id + JOIN m_warehouse wh + ON o.m_warehouse_id = wh.m_warehouse_id + JOIN c_paymentterm pt + ON o.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_bpartner bp + ON o.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + JOIN c_bpartner_location bpl + ON o.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON o.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + JOIN ad_orginfo oi + ON o.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON o.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON o.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + JOIN c_bpartner bbp + ON o.bill_bpartner_id = bbp.c_bpartner_id + JOIN c_bpartner_location bbpl + ON o.bill_location_id = bbpl.c_bpartner_location_id + LEFT JOIN ad_user bbpc + ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency cur + ON o.c_currency_id = cur.c_currency_id +; + +DROP VIEW c_order_header_vt; + +CREATE OR REPLACE VIEW c_order_header_vt +AS + SELECT o.ad_client_id, + o.ad_org_id, + o.isactive, + o.created, + o.createdby, + o.updated, + o.updatedby, + dt.ad_language, + o.c_order_id, + o.issotrx, + o.documentno, + o.docstatus, + o.c_doctype_id, + o.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + o.m_warehouse_id, + wh.c_location_id AS warehouse_location_id, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + o.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + o.dateordered, + o.datepromised, + bpgt.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcgt.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + l.postal + || l.postal_add AS postal, + bp.referenceno, + o.bill_bpartner_id, + o.bill_location_id, + o.bill_user_id, + bbp.value AS bill_bpvalue, + bbp.taxid AS bill_bptaxid, + bbp.name AS bill_name, + bbp.name2 AS bill_name2, + bbpc.title AS bill_title, + bbpc.phone AS bill_phone, + NULLIF(bbpc.name, bbp.name) AS bill_contactname, + bbpl.c_location_id AS bill_c_location_id, + o.description, + o.poreference, + o.c_currency_id, + ptt.name AS paymentterm, + ptt.documentnote AS paymenttermnote, + o.c_charge_id, + o.chargeamt, + o.totallines, + o.grandtotal, + o.grandtotal AS amtinwords, + o.m_pricelist_id, + o.istaxincluded, + o.volume, + o.weight, + o.c_campaign_id, + o.c_project_id, + o.c_activity_id, + o.m_shipper_id, + o.deliveryrule, + o.deliveryviarule, + o.priorityrule, + o.invoicerule, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + o.ad_orgtrx_id, + o.ad_user_id, + o.amountrefunded, + o.amounttendered, + o.c_bpartner_location_id, + o.c_cashline_id, + o.c_cashplanline_id, + o.c_conversiontype_id, + o.c_doctypetarget_id, + o.copyfrom, + o.c_payment_id, + o.c_paymentterm_id, + o.c_pos_id, + o.dateacct, + o.dateprinted, + o.docaction, + o.dropship_bpartner_id, + o.dropship_location_id, + o.dropship_user_id, + o.freightamt, + o.freightcostrule, + o.isapproved, + o.iscreditapproved, + o.isdelivered, + o.isdiscountprinted, + o.isdropship, + o.isinvoiced, + o.ispayschedulevalid, + o.isprinted, + o.isselected, + o.isselfservice, + o.istransferred, + o.link_order_id, + o.m_freightcategory_id, + o.ordertype, + o.pay_bpartner_id, + o.pay_location_id, + o.paymentrule, + o.posted, + o.processed, + o.processedon, + o.promotioncode, + o.ref_order_id, + o.sendemail, + o.user1_id, + o.user2_id, + wh.ad_org_id AS m_warehouse_ad_org_id, + wh.description AS m_warehouse_description, + wh.isactive AS m_warehouse_isactive, + wh.isdisallownegativeinv, + wh.isintransit, + wh.m_warehousesource_id, + wh.name AS m_warehouse_name, + wh.replenishmentclass, + wh.separator, + wh.value AS m_warehouse_value, + ptt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + ptt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + ptt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS m_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpgt.ad_org_id AS c_greeting_ad_org_id, + bpgt.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpgt.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id AS bp_location_c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto AS bp_location_isbillto, + bpl.isdn AS bp_location_isdn, + bpl.ispayfrom AS bp_location_ispayfrom, + bpl.isremitto AS bp_location_isremitto, + bpl.isshipto AS bp_location_isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcgt.ad_org_id AS c_user_greeting_ad_org_id, + bpcgt.isactive AS c_user_greeting_isactive, + bpcg.isfirstnameonly AS c_user_greeting_isfnameonly, + bpcgt.name AS c_user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id AS ad_orginfo_m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS salesrep_bp_acqusitioncost, + ubp.actuallifetimevalue AS salesrep_bp_actuallifetimeval, + ubp.ad_language AS salesrep_bp_ad_language, + ubp.ad_orgbp_id AS salesrep_bp_ad_orgbp_id, + ubp.ad_org_id AS salesrep_bp_ad_org_id, + ubp.bpartner_parent_id AS salesrep_bp_bpartner_parent_id, + ubp.c_bp_group_id AS salesrep_bp_c_bp_group_id, + ubp.c_dunning_id AS salesrep_bp_c_dunning_id, + ubp.c_greeting_id AS salesrep_bp_c_greeting_id, + ubp.c_invoiceschedule_id AS salesrep_bp_c_invoicesched_id, + ubp.c_paymentterm_id AS salesrep_bp_c_paymentterm_id, + ubp.created AS salesrep_bp_created, + ubp.createdby AS salesrep_bp_createdby, + ubp.c_taxgroup_id AS salesrep_bp_c_taxgroup_id, + ubp.deliveryrule AS salesrep_bp_deliveryrule, + ubp.deliveryviarule AS salesrep_bp_deliveryviarule, + ubp.description AS salesrep_bp_description, + ubp.dunninggrace AS salesrep_bp_dunninggrace, + ubp.duns AS salesrep_bp_duns, + ubp.firstsale AS salesrep_bp_firstsale, + ubp.flatdiscount AS salesrep_bp_flatdiscount, + ubp.freightcostrule AS salesrep_bp_freightcostrule, + ubp.invoicerule AS salesrep_bp_invoicerule, + ubp.isactive AS salesrep_bp_isactive, + ubp.iscustomer AS salesrep_bp_iscustomer, + ubp.isdiscountprinted AS salesrep_bp_isdiscountprinted, + ubp.isemployee AS salesrep_bp_isemployee, + ubp.ismanufacturer AS salesrep_bp_ismanufacturer, + ubp.isonetime AS salesrep_bp_isonetime, + ubp.ispotaxexempt AS salesrep_bp_ispotaxexempt, + ubp.isprospect AS salesrep_bp_isprospect, + ubp.issalesrep AS salesrep_bp_issalesrep, + ubp.issummary AS salesrep_bp_issummary, + ubp.istaxexempt AS salesrep_bp_istaxexempt, + ubp.isvendor AS salesrep_bp_isvendor, + ubp.logo_id AS salesrep_bp_logo_id, + ubp.m_discountschema_id AS salesrep_bp_m_discountschm_id, + ubp.m_pricelist_id AS salesrep_bp_m_pricelist_id, + ubp.naics AS salesrep_bp_naics, + ubp.name2 AS salesrep_bp_name2, + ubp.numberemployees AS salesrep_bp_numberemployees, + ubp.paymentrule AS salesrep_bp_paymentrule, + ubp.paymentrulepo AS salesrep_bp_paymentrulepo, + ubp.po_discountschema_id AS salesrep_bp_po_discountsch_id, + ubp.po_paymentterm_id AS salesrep_bp_po_paymentterm_id, + ubp.po_pricelist_id AS salesrep_bp_po_pricelist_id, + ubp.poreference AS salesrep_bp_poreference, + ubp.potentiallifetimevalue AS salesrep_bp_potentiallifetime, + ubp.rating AS salesrep_bp_rating, + ubp.referenceno AS salesrep_bp_referenceno, + ubp.salesrep_id AS salesrep_bp_salesrep_id, + ubp.salesvolume AS salesrep_bp_salesvolume, + ubp.sendemail AS salesrep_bp_sendemail, + ubp.shareofcustomer AS salesrep_bp_shareofcustomer, + ubp.shelflifeminpct AS salesrep_bp_shelflifeminpct, + ubp.so_creditlimit AS salesrep_bp_so_creditlimit, + ubp.socreditstatus AS salesrep_bp_socreditstatus, + ubp.so_creditused AS salesrep_bp_so_creditused, + ubp.so_description AS salesrep_bp_so_description, + ubp.taxid AS salesrep_bp_taxid, + ubp.totalopenbalance AS salesrep_bp_totalopenbalance, + ubp.updated AS salesrep_bp_updated, + ubp.updatedby AS salesrep_bp_updatedby, + ubp.url AS salesrep_bp_url, + ubp.value AS salesrep_bp_value, + bbp.acqusitioncost AS bill_bp_acqusitioncost, + bbp.actuallifetimevalue AS bill_bp_actuallifetimevalue, + bbp.ad_language AS bill_bp_ad_language, + bbp.ad_orgbp_id AS bill_bp_ad_orgbp_id, + bbp.ad_org_id AS bill_bp_ad_org_id, + bbp.bpartner_parent_id AS bill_bp_bpartner_parent_id, + bbp.c_bp_group_id AS bill_bp_c_bp_group_id, + bbp.c_dunning_id AS bill_bp_c_dunning_id, + bbp.c_greeting_id AS bill_bp_c_greeting_id, + bbp.c_invoiceschedule_id AS bill_bp_c_invoiceschedule_id, + bbp.c_paymentterm_id AS bill_bp_c_paymentterm_id, + bbp.created AS bill_bp_created, + bbp.createdby AS bill_bp_createdby, + bbp.c_taxgroup_id AS bill_bp_c_taxgroup_id, + bbp.deliveryrule AS bill_bp_deliveryrule, + bbp.deliveryviarule AS bill_bp_deliveryviarule, + bbp.description AS bill_bp_description, + bbp.dunninggrace AS bill_bp_dunninggrace, + bbp.duns AS bill_bp_duns, + bbp.firstsale AS bill_bp_firstsale, + bbp.flatdiscount AS bill_bp_flatdiscount, + bbp.freightcostrule AS bill_bp_freightcostrule, + bbp.invoicerule AS bill_bp_invoicerule, + bbp.isactive AS bill_bp_isactive, + bbp.iscustomer AS bill_bp_iscustomer, + bbp.isdiscountprinted AS bill_bp_isdiscountprinted, + bbp.isemployee AS bill_bp_isemployee, + bbp.ismanufacturer AS bill_bp_ismanufacturer, + bbp.isonetime AS bill_bp_isonetime, + bbp.ispotaxexempt AS bill_bp_ispotaxexempt, + bbp.isprospect AS bill_bp_isprospect, + bbp.issalesrep AS bill_bp_issalesrep, + bbp.issummary AS bill_bp_issummary, + bbp.istaxexempt AS bill_bp_istaxexempt, + bbp.isvendor AS bill_bp_isvendor, + bbp.logo_id AS bill_bp_logo_id, + bbp.m_discountschema_id AS bill_bp_m_discountschema_id, + bbp.m_pricelist_id AS bill_bp_m_pricelist_id, + bbp.naics AS bill_bp_naics, + bbp.numberemployees AS bill_bp_numberemployees, + bbp.paymentrule AS bill_bp_paymentrule, + bbp.paymentrulepo AS bill_bp_paymentrulepo, + bbp.po_discountschema_id AS bill_bp_po_discountschema_id, + bbp.po_paymentterm_id AS bill_bp_po_paymentterm_id, + bbp.po_pricelist_id AS bill_bp_po_pricelist_id, + bbp.poreference AS bill_bp_poreference, + bbp.potentiallifetimevalue AS bill_bp_potentiallifetimevalue, + bbp.rating AS bill_bp_rating, + bbp.referenceno AS bill_bp_referenceno, + bbp.salesrep_id AS bill_bp_salesrep_id, + bbp.salesvolume AS bill_bp_salesvolume, + bbp.sendemail AS bill_bp_sendemail, + bbp.shareofcustomer AS bill_bp_shareofcustomer, + bbp.shelflifeminpct AS bill_bp_shelflifeminpct, + bbp.so_creditlimit AS bill_bp_so_creditlimit, + bbp.socreditstatus AS bill_bp_socreditstatus, + bbp.so_creditused AS bill_bp_so_creditused, + bbp.so_description AS bill_bp_so_description, + bbp.totalopenbalance AS bill_bp_totalopenbalance, + bbp.updated AS bill_bp_updated, + bbp.updatedby AS bill_bp_updatedby, + bbp.url AS bill_bp_url, + bbpl.ad_org_id AS bill_bp_location_ad_org_id, + bbpl.c_bpartner_id AS bill_bp_location_c_bpartner_id, + bbpl.created AS bill_bp_location_created, + bbpl.createdby AS bill_bp_location_createdby, + bbpl.c_salesregion_id AS bill_bp_location_c_salesreg_id, + bbpl.fax AS bill_bp_location_fax, + bbpl.isactive AS bill_bp_location_isactive, + bbpl.isbillto AS bill_bp_location_isbillto, + bbpl.isdn AS bill_bp_location_isdn, + bbpl.ispayfrom AS bill_bp_location_ispayfrom, + bbpl.isremitto AS bill_bp_location_isremitto, + bbpl.isshipto AS bill_bp_location_isshipto, + bbpl.name AS bill_bp_location_name, + bbpl.phone AS bill_bp_location_phone, + bbpl.phone2 AS bill_bp_location_phone2, + bbpl.updated AS bill_bp_location_updated, + bbpl.updatedby AS bill_bp_location_updatedby, + bbpc.ad_org_id AS bill_user_ad_org_id, + bbpc.ad_orgtrx_id AS bill_user_ad_orgtrx_id, + bbpc.birthday AS bill_user_ad_birthday, + bbpc.c_bpartner_id AS bill_user_c_bpartner_id, + bbpc.c_bpartner_location_id AS bill_user_c_bp_location_id, + bbpc.c_greeting_id AS bill_user_c_greeting_id, + bbpc.comments AS bill_user_comments, + bbpc.created AS bill_user_created, + bbpc.createdby AS bill_user_createdby, + bbpc.description AS bill_user_description, + bbpc.email AS bill_user_email, + bbpc.fax AS bill_user_fax, + bbpc.isactive AS bill_user_isactive, + bbpc.lastcontact AS bill_user_lastcontact, + bbpc.lastresult AS bill_user_lastresult, + bbpc.phone2 AS bill_user_phone2, + bbpc.supervisor_id AS bill_user_supervisor_id, + bbpc.updated AS bill_user_updated, + bbpc.updatedby AS bill_user_updatedby, + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description + FROM c_order o + JOIN c_doctype_trl dt + ON o.c_doctype_id = dt.c_doctype_id + JOIN m_warehouse wh + ON o.m_warehouse_id = wh.m_warehouse_id + JOIN c_paymentterm pt + ON o.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_paymentterm_trl ptt + ON o.c_paymentterm_id = ptt.c_paymentterm_id + AND dt.ad_language = ptt.ad_language + JOIN c_bpartner bp + ON o.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + LEFT JOIN c_greeting_trl bpgt + ON bp.c_greeting_id = bpgt.c_greeting_id + AND dt.ad_language = bpgt.ad_language + JOIN c_bpartner_location bpl + ON o.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON o.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + LEFT JOIN c_greeting_trl bpcgt + ON bpc.c_greeting_id = bpcgt.c_greeting_id + AND dt.ad_language = bpcgt.ad_language + JOIN ad_orginfo oi + ON o.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON o.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON o.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + JOIN c_bpartner bbp + ON o.bill_bpartner_id = bbp.c_bpartner_id + JOIN c_bpartner_location bbpl + ON o.bill_location_id = bbpl.c_bpartner_location_id + LEFT JOIN ad_user bbpc + ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency_trl cur + ON o.c_currency_id = cur.c_currency_id + AND dt.ad_language = cur.ad_language +; + +SELECT register_migration_script('201304131454_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304131924_IDEMPIERE-790.sql b/migration/i1.0a-release/oracle/201304131924_IDEMPIERE-790.sql new file mode 100644 index 0000000000..868e40aca6 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304131924_IDEMPIERE-790.sql @@ -0,0 +1,12 @@ +-- Apr 13, 2013 7:23:49 PM COT +-- IDEMPIERE-790 Voiding PO should unlink SO it was created from +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-04-13 19:23:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55322 +; + +-- Apr 13, 2013 7:24:14 PM COT +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-04-13 19:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55323 +; + +SELECT register_migration_script('201304131924_IDEMPIERE-790.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304132014_IDEMPIERE-489.sql b/migration/i1.0a-release/oracle/201304132014_IDEMPIERE-489.sql new file mode 100644 index 0000000000..76dd00feb5 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304132014_IDEMPIERE-489.sql @@ -0,0 +1,8 @@ +-- Apr 13, 2013 8:13:48 PM COT +-- IDEMPIERE-489 Make use of AD_Language configuration +UPDATE AD_Column SET AD_Reference_Value_ID=NULL, AD_Reference_ID=20, Updated=TO_DATE('2013-04-13 20:13:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13080 +; + +SELECT register_migration_script('201304132014_IDEMPIERE-489.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304132144_UUID_Generator.sql b/migration/i1.0a-release/oracle/201304132144_UUID_Generator.sql new file mode 100644 index 0000000000..adc6580c22 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304132144_UUID_Generator.sql @@ -0,0 +1,1128 @@ +-- Apr 13, 2013 9:43:34 PM COT +-- UUID Generator +UPDATE AD_Column SET AD_Column_UU='01a4af50-035b-4083-8a15-97e962bca37e' WHERE AD_Column_ID=200621 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='8ca6582a-6adf-496f-b317-18726fac0b95' WHERE AD_Column_ID=200622 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='af2b3983-1922-43d8-8338-013bab39965a' WHERE AD_Column_ID=200623 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='e7a3eb1f-51bb-42cb-8c38-81d50d36e351' WHERE AD_Column_ID=200626 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='3235655e-94ab-4598-9819-7b16cdf0633d' WHERE AD_Column_ID=200627 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='8bdb8f4b-68c8-4abf-b1a2-e6a6f651e3e4' WHERE AD_Column_ID=200628 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='15cf9b2a-cf49-4c4d-aa25-6e5b699e2d55' WHERE AD_Column_ID=200629 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='dffe47b0-afc7-4023-b5a8-a29e3fe57136' WHERE AD_Column_ID=200630 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='126161fe-f9ea-4314-9da4-08058d165193' WHERE AD_Column_ID=200631 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='141a79b0-1a53-4fc3-8782-854646fda511' WHERE AD_Column_ID=200632 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='067242b7-a784-408f-8b4c-0912ea38daff' WHERE AD_Column_ID=200633 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='1854e1bc-88da-4245-947b-8ea4a006be2e' WHERE AD_Column_ID=200634 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='f7fd3e2c-1197-4d9b-81ef-d249ecffa102' WHERE AD_Column_ID=200639 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='48b4a601-7e99-4b85-a758-b55ddb09735f' WHERE AD_Column_ID=200636 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='1714b2d4-f66e-44b9-be14-7e9b9932cc25' WHERE AD_Column_ID=200638 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='24d12f7e-5eb5-43b5-8c60-0221ec3dbaac' WHERE AD_Column_ID=200637 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='1324ba19-0f14-4929-af8c-030593d53a0c' WHERE AD_Column_ID=200614 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='ccfb506d-3c22-452f-ad6c-ee5c815e585a' WHERE AD_Column_ID=200615 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='8783e72f-e74b-46e0-867d-598ff3c3dded' WHERE AD_Column_ID=200616 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='c2c7bdca-c08e-48ab-a62c-cd6fdb78ce70' WHERE AD_Column_ID=200617 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='889c260b-b21a-4f58-a497-ab7a9897088b' WHERE AD_Column_ID=200618 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='f778998b-327d-4998-a745-968bfc2cbc9c' WHERE AD_Column_ID=200619 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='b6c8135b-a4f6-4bdb-b2c7-6b432d4e4349' WHERE AD_Column_ID=200620 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='7e54fc25-4b31-451a-95d1-7a3744e583a5' WHERE AD_Column_ID=200635 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='13553e5c-051e-42f8-bb8c-4a25ee92560f' WHERE AD_Column_ID=200640 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='a7cf56b4-27ce-4730-8e96-368ab1a464af' WHERE AD_Column_ID=200704 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='3ac2d4aa-b904-4ef7-9015-bf8895688149' WHERE AD_Column_ID=56695 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='4b86a0db-216b-40d4-992e-9aaba873f4ec' WHERE AD_Column_ID=200585 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f76258f9-9449-4ebc-a143-918af5acb471' WHERE AD_Column_ID=61939 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='9e2aa74a-41bf-4f2b-b925-cd84ca1c3f4d' WHERE AD_Column_ID=56694 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d68007b5-a66b-4443-933b-bddc77549bcc' WHERE AD_Column_ID=56696 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='87041bdd-f6cc-48d1-953b-76ce86ed9659' WHERE AD_Column_ID=56697 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='28f57261-fb76-432f-bb3c-02f25ea48c54' WHERE AD_Column_ID=56698 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e4875a2a-83bd-4f76-a73f-685dd301db04' WHERE AD_Column_ID=56699 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ac60c3d5-3d18-431a-873e-9b20d24190a6' WHERE AD_Column_ID=56700 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f2c6486a-0f9d-4b9f-bcfb-e440741f6a78' WHERE AD_Column_ID=56701 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='021f048a-1337-4383-b122-a6f52d8037ed' WHERE AD_Column_ID=56702 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e7a706a0-4cb8-4bc3-b279-ac3247ef68a7' WHERE AD_Column_ID=56703 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7cee1f17-76ba-4ba8-832e-44fe105c10a2' WHERE AD_Column_ID=56704 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='71b475f7-89b3-432d-9e49-ed94dda7ee9d' WHERE AD_Column_ID=56705 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='81cd2924-22e5-41eb-abb9-98b3839a237c' WHERE AD_Column_ID=56706 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f7fed18a-d7a9-4deb-979e-f03ad496c02f' WHERE AD_Column_ID=56707 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f23f8182-3a19-4b3f-88b4-b01274ef9c54' WHERE AD_Column_ID=56708 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='b88f59d9-aefc-4230-8301-466fce68c911' WHERE AD_Column_ID=56709 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ae5c7bc7-2d9a-4a53-9b6b-1ccbb97ac161' WHERE AD_Column_ID=56710 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='3128b1b5-9a05-4123-88c8-4209eb7f2bb7' WHERE AD_Column_ID=56711 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='165203f6-c7d4-4a85-a56f-23aefabfc769' WHERE AD_Column_ID=56712 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='20bfdcb6-6ce6-4d4f-8a7c-c2a09021b757' WHERE AD_Column_ID=56713 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='dcaff0ac-c216-460d-815d-678510746b36' WHERE AD_Column_ID=56715 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ee288b11-1b03-4e39-86d2-2738d08bae97' WHERE AD_Column_ID=56716 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='b90f818e-5562-45b9-ba73-a2b95064eb50' WHERE AD_Column_ID=56717 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='08e7a5bf-603e-438e-b129-b227bba0f3b4' WHERE AD_Column_ID=56718 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='94309cd2-d83d-4479-8fb8-9cc146ca17ef' WHERE AD_Column_ID=56719 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='bc75cf77-16c2-4ff7-b3bc-294b9562aa0b' WHERE AD_Column_ID=56720 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='41554e33-ee30-44fb-84a8-9eda95584668' WHERE AD_Column_ID=56721 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f02523e0-b992-4180-b6f4-2a4608dbd11a' WHERE AD_Column_ID=56722 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e28ea624-dc7d-4f38-b7ba-101d2e7cbc81' WHERE AD_Column_ID=56723 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='fc108646-bf30-43bf-beb6-38ea5206aba7' WHERE AD_Column_ID=56724 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ce695b97-3d8b-4876-a02b-525b877b3613' WHERE AD_Column_ID=56725 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d7dabac8-29ec-44f9-9f13-0c1a35292830' WHERE AD_Column_ID=56726 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='c980df81-4f24-4be2-b436-3af60c8fb3d4' WHERE AD_Column_ID=56727 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='11c76862-3864-4642-a83e-f11ad06854f5' WHERE AD_Column_ID=56728 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e542b49b-13f7-4761-b08c-417d6d88810d' WHERE AD_Column_ID=56729 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='fbc03b32-7ce7-4b2e-b1f8-9080e54e5c69' WHERE AD_Column_ID=56731 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7684bf41-1d8d-4505-bb2b-b58b016bab8e' WHERE AD_Column_ID=56732 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ca15e44b-cab9-46c4-a85f-23bdced56122' WHERE AD_Column_ID=56733 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='caca95ec-4efc-4e3f-84a2-d1b77c54c5fb' WHERE AD_Column_ID=56735 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='96f2c984-7e0c-46fd-85f4-22619a70ada7' WHERE AD_Column_ID=56737 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='146833ae-4b2f-4934-9041-b11e02845178' WHERE AD_Column_ID=56738 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d658c12c-6dff-49b7-9628-633d04942460' WHERE AD_Column_ID=56739 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='39a72da7-4352-4618-a2ec-17a7d0a39e0d' WHERE AD_Column_ID=56740 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ada48fcc-89dc-4f64-a58d-f6211880c824' WHERE AD_Column_ID=56741 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='5a5e1a5c-32b9-4020-834b-8fe9f35b8a89' WHERE AD_Column_ID=56736 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='6e989148-c01d-462b-9be8-26ec5a55ff46' WHERE AD_Column_ID=56742 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='75e987e1-98c2-4ab8-863b-a46282f86592' WHERE AD_Column_ID=56743 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7c697594-5b99-493d-ac49-29fc0352b750' WHERE AD_Column_ID=56744 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='2ee426c1-7066-4c75-b406-fbd566f37633' WHERE AD_Column_ID=56734 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='a9e663c2-dfea-4fe2-b4a0-def0606f5289' WHERE AD_Column_ID=56747 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='4eea1d33-be41-41df-a7be-0e812f811a12' WHERE AD_Column_ID=56749 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='46038268-89d8-4e9e-bcfe-32d1f3e47870' WHERE AD_Column_ID=56750 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='dc214e11-5c38-448f-98fb-4403b664b49d' WHERE AD_Column_ID=56751 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='c9eb1528-b3f1-4fc1-a8c4-12970d94f5ea' WHERE AD_Column_ID=56752 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7c5ed753-39d7-4393-95ea-573c6836e29b' WHERE AD_Column_ID=56753 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='5af19bb6-a427-473a-b290-72974244e491' WHERE AD_Column_ID=56754 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d1ba1047-fe5d-4aba-b454-7603f56bb328' WHERE AD_Column_ID=56748 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='a1fd4f9b-3019-4a8d-b898-91eebaf41502' WHERE AD_Column_ID=56755 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='a33483ae-d394-4a06-9ed9-79965e0dffbf' WHERE AD_Column_ID=56757 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='3978f586-3cb4-451b-b077-ef980a1e36ff' WHERE AD_Column_ID=56758 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='8ea8c702-641f-432f-80a1-6adfc901d679' WHERE AD_Column_ID=56759 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='611e7302-3dca-4cf8-8088-8b389eb42312' WHERE AD_Column_ID=56760 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='0a35a96c-182a-4fc3-b340-4ba92f409b0d' WHERE AD_Column_ID=56761 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='1d897342-8d20-4e18-a03c-0f40073f0c08' WHERE AD_Column_ID=56762 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='617681e3-a087-4de7-bdb1-bd1468fe97ae' WHERE AD_Column_ID=56763 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='b99677ee-af96-48da-940b-8f75c480d93a' WHERE AD_Column_ID=56764 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='4fba0f46-91da-4101-9ba6-c5ac8d47f21d' WHERE AD_Column_ID=56765 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='5b002e8e-3ef6-4363-91e1-b9675e05f3ce' WHERE AD_Column_ID=56767 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='21bf3822-51c1-4eef-b0cf-0db2ef09b41d' WHERE AD_Column_ID=56768 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='f0504125-cffc-4d64-9565-af6810e5eee7' WHERE AD_Column_ID=56770 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='c51d9cd1-5757-4929-9aaa-0ed479d023b8' WHERE AD_Column_ID=56771 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='4b18c324-755b-4e56-83a1-3cd6282f7af6' WHERE AD_Column_ID=56772 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='3ab48953-158f-4050-908a-7e5b455277b8' WHERE AD_Column_ID=56773 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='ac37c7fa-3486-458e-ae1b-d3190f7ca1a9' WHERE AD_Column_ID=56774 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='d0f641d3-dd5d-4fab-b055-3314e18a3f7d' WHERE AD_Column_ID=56775 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='ae9e1d9c-d020-41d3-89fb-da83dffa5ae9' WHERE AD_Column_ID=56769 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='c24d5f8c-96ea-4def-8b59-b4c0402f50af' WHERE AD_Column_ID=56745 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='bfaf2d56-ef68-432c-bf95-7cfa66920302' WHERE AD_Column_ID=56714 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='a7ac9f27-54cf-45f8-b903-a502595b6a14' WHERE AD_Column_ID=56730 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='0c14c682-49db-4fe4-9184-3100d0473df5' WHERE AD_Column_ID=56746 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='77be2dc1-8741-457e-acc3-faf2f831e9f9' WHERE AD_Column_ID=56756 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='d5373920-54b9-4718-bee4-30950cf942df' WHERE AD_Column_ID=56766 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='7134841c-d138-43d5-b275-01b861901be7' WHERE AD_Element_ID=53766 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='f6abafb9-0954-49e5-9fe8-d625189c1479' WHERE AD_Element_ID=53767 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='6c8d3b80-f036-4093-9f7f-6f7a50c6f77f' WHERE AD_Element_ID=53768 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='f1aa9a7f-76db-47f0-be1c-2840e449472d' WHERE AD_Element_ID=53769 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='e93755d2-e066-442d-8e2c-1b320f87057d' WHERE AD_Element_ID=53770 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='02023e27-24cb-40e1-b6ea-2764da45bf3f' WHERE AD_Element_ID=53771 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='4addaeaf-875f-4ebe-ab98-69794edeb456' WHERE AD_Element_ID=53772 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='8b8c0e1b-b73b-44fc-b941-903aa5bc9e2b' WHERE AD_Element_ID=200188 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='f7f37a72-3270-45d8-bc86-ca800bb9f7a4' WHERE AD_Field_ID=200649 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='a4f9c220-715f-4db1-9575-16419f11fb1c' WHERE AD_Field_ID=200843 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='5240bf98-1ab3-49e5-9ea2-e75b3af368c9' WHERE AD_Field_ID=200839 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='52a4f881-0969-4f76-b22a-0dc0c1a28de7' WHERE AD_Field_ID=200840 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='4d647a46-9526-44c8-9b69-703cfb3f6451' WHERE AD_Field_ID=200844 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='11af92f6-1fd8-4236-b211-b7024ab7aa5b' WHERE AD_Field_ID=200846 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='498a7af2-3090-48ee-901d-2bf798d6571b' WHERE AD_Field_ID=200842 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='85152ad2-357f-4266-a1b6-dbb9f57a7e25' WHERE AD_Field_ID=200847 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='16e707f7-21de-48bc-a047-d4d84c40f2ca' WHERE AD_Field_ID=200845 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='4b6a7663-ab60-4ca0-b809-989e86960776' WHERE AD_Field_ID=56644 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='424a9cee-c382-4205-b6bf-5d99b0742894' WHERE AD_Field_ID=56629 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='277004ac-e69f-4533-9923-df34770901c2' WHERE AD_Field_ID=56634 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='2b467a1e-af47-4140-a742-af70b400e62a' WHERE AD_Field_ID=56647 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='853672fc-69c2-4779-a30e-6884bbecec48' WHERE AD_Field_ID=56648 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='c69401a1-9f68-4416-a648-ec1c64bffd02' WHERE AD_Field_ID=200599 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='6339c5f6-4ae2-4cac-b9e5-5d870f24f850' WHERE AD_Field_ID=200600 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='d68096da-0692-4647-8f47-8c6472f17fab' WHERE AD_Field_ID=61967 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='d6feb078-a9e4-46df-9a48-86fd469eabfe' WHERE AD_Field_ID=56628 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='21447469-d7c4-46d0-a65e-6de08136acae' WHERE AD_Field_ID=56630 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='b5a9fd60-494c-4219-9482-d2faa290d612' WHERE AD_Field_ID=56631 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='35135637-dad0-4b61-ab28-1f0b0ac994ed' WHERE AD_Field_ID=56632 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='08e73bee-7bdd-4c33-85aa-e47abc50c6b0' WHERE AD_Field_ID=56633 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='7f7bb152-9728-4b3e-938a-55c46f190687' WHERE AD_Field_ID=56635 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='bca0cdd6-e5c4-4c60-b4bb-d343f713b335' WHERE AD_Field_ID=56636 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='fa13473a-8447-41d5-985b-33e52b35ed28' WHERE AD_Field_ID=56637 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='8e8d4130-1e15-4127-a3fb-f25ee5e3ac17' WHERE AD_Field_ID=56638 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='dfb164cf-835c-44f8-a894-a253aa857831' WHERE AD_Field_ID=56639 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='ae915110-a314-404f-b34a-dda6c7ab6b21' WHERE AD_Field_ID=56640 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='86259757-bfed-4f40-adb7-0234c9470fda' WHERE AD_Field_ID=56641 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='f25897d0-e5c1-4a6a-a873-eae872d78a7f' WHERE AD_Field_ID=56642 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='2863260a-d439-4a9c-bad6-7d6326411838' WHERE AD_Field_ID=56643 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='3eaa1502-5d32-43f1-b709-ee01a35e8c83' WHERE AD_Field_ID=56649 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='4c91f076-b72d-4eea-9b25-7f1880a42482' WHERE AD_Field_ID=56650 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='a30cec37-8e39-4379-9ce9-6ea67798db10' WHERE AD_Field_ID=56651 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='0f33a205-c487-402d-82dc-7f90caeecddb' WHERE AD_Field_ID=56652 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='7f56eb32-5ea3-46cb-a5b8-ce33a0485fe3' WHERE AD_Field_ID=56653 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='3cbdc01e-b0e4-4b69-a3a1-7ab15d269f75' WHERE AD_Field_ID=56654 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='4eb45235-01c4-42f9-8b47-c7aabff0cc5c' WHERE AD_Field_ID=56655 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='37a514eb-3ef0-45b1-b591-6f53e5381d10' WHERE AD_Field_ID=56646 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='64b763a0-a94d-4540-97f2-8271b5c1c75b' WHERE AD_Field_ID=56662 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='d8df6125-489d-4a10-8f54-354a6ce59209' WHERE AD_Field_ID=56645 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='b2b4ea9a-05db-410c-a758-91aaa100ead7' WHERE AD_Field_ID=56656 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='c81dd63d-6f01-4c68-b087-a8466bc5f68c' WHERE AD_Field_ID=56658 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='51e17761-de55-445d-8644-7d9888f6eccc' WHERE AD_Field_ID=56659 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='335b83b3-c879-4206-b2e5-40a9f865e175' WHERE AD_Field_ID=56660 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='62dbccc1-c667-41bd-ae7b-8710536336da' WHERE AD_Field_ID=56661 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='67276e92-768c-459f-9df5-bf86f289b377' WHERE AD_Field_ID=56663 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='7b0510e8-5ce3-40a8-9d5c-513070140fbc' WHERE AD_Field_ID=56666 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='dbcb2dd4-6ecc-41f2-bea1-42e65e1a4e2b' WHERE AD_Field_ID=56667 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='3ccd28bf-81fa-4032-a1bc-5d4fa642614b' WHERE AD_Field_ID=56668 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='ef7d1b53-2c16-4f58-a82b-573a9de6747f' WHERE AD_Field_ID=56665 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='814ff41e-ecbf-4872-82ff-93e61e635a8d' WHERE AD_Field_ID=56669 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='f47617d8-f567-4cb4-8dfe-d36b65f5a433' WHERE AD_Field_ID=56664 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='c4f515f8-d9af-4354-9eb6-9921ef9786b9' WHERE AD_Field_ID=56670 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='9de9487e-83d5-41ac-8e7a-4bbca1177595' WHERE AD_Field_ID=56672 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='81de7b2a-516a-4294-89b5-90386a272dc9' WHERE AD_Field_ID=56673 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='8a6f3e8b-00f5-48d2-9e8a-e204649a233d' WHERE AD_Field_ID=56674 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='f6c7acb0-5d8c-4965-9802-7634f73993cb' WHERE AD_Field_ID=56675 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='9bb32bd9-8a7e-4839-acfe-b445b06e0c43' WHERE AD_Field_ID=56676 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='32b8ef8e-bd33-491e-b150-0722f247e3ec' WHERE AD_Field_ID=56677 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='52856242-e6d1-43b9-beac-30a3a3a23bb7' WHERE AD_Field_ID=56678 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='af669990-8079-4c9a-8d97-8bdc90245216' WHERE AD_Field_ID=56679 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='370c4f71-7df8-4d80-b573-7b6aea955303' WHERE AD_Field_ID=56680 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='72d6244b-56a2-4122-8cb1-cbec981821ad' WHERE AD_Field_ID=56681 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='739cf6db-9151-43ad-bfb8-a71142bf075b' WHERE AD_Field_ID=200841 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='67c07d05-168f-4c2c-a688-ff2e0fe74603' WHERE AD_Field_ID=56657 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='c0844439-118f-425f-8ee6-e83ac2d1382e' WHERE AD_Field_ID=56671 +; + +-- Apr 13, 2013 9:44:02 PM COT +UPDATE AD_Menu SET AD_Menu_UU='57d16e27-60fa-47ea-b686-4747b18e7532' WHERE AD_Menu_ID=53200 +; + +-- Apr 13, 2013 9:44:02 PM COT +UPDATE AD_Menu SET AD_Menu_UU='7be85b76-2f0b-43cd-b807-bd6c47a6e6c7' WHERE AD_Menu_ID=53201 +; + +-- Apr 13, 2013 9:44:04 PM COT +UPDATE AD_Process SET AD_Process_UU='7f5402d4-9b91-4ac8-9bcd-a5b6b995d918' WHERE AD_Process_ID=200012 +; + +-- Apr 13, 2013 9:44:04 PM COT +UPDATE AD_Process_Para SET AD_Process_Para_UU='e3d63000-d28f-4c41-8bfb-4cb49fd1a017' WHERE AD_Process_Para_ID=200043 +; + +-- Apr 13, 2013 9:44:05 PM COT +UPDATE AD_Reference SET AD_Reference_UU='1b6497fd-bd10-4974-9877-09874cbe4885' WHERE AD_Reference_ID=53288 +; + +-- Apr 13, 2013 9:44:05 PM COT +UPDATE AD_Ref_List SET AD_Ref_List_UU='a06cad2b-3c86-4add-8093-4478a8b55cb2' WHERE AD_Ref_List_ID=53452 +; + +-- Apr 13, 2013 9:44:05 PM COT +UPDATE AD_Ref_List SET AD_Ref_List_UU='4faecb14-90aa-4546-97bb-750e2b92a981' WHERE AD_Ref_List_ID=53451 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Role SET AD_Role_UU='d9507a38-d669-4ea2-8e26-51c16614b934' WHERE AD_Role_ID=50004 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='34926aac-6f08-4517-90d0-0a443278b349' WHERE AD_Sequence_ID=53270 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='114ec463-e43e-4409-b8db-6918dd9a3e71' WHERE AD_Sequence_ID=53269 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='1982ebca-3984-46d4-9c39-af93badaf59d' WHERE AD_Sequence_ID=53268 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='5790969a-c494-4cef-818e-5d005d4ab0e2' WHERE AD_Sequence_ID=53266 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='44cc7d37-81a6-427b-ad2b-028651ead3c1' WHERE AD_Sequence_ID=53265 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='84beca7c-d07a-4755-937f-3090c0d0d735' WHERE AD_Sequence_ID=53264 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='371734de-998b-4d44-b1b1-0c6aad68d13e' WHERE AD_Sequence_ID=53262 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='f5b86ae0-ef0e-4cf9-b6e2-c730c6a566ee' WHERE AD_Sequence_ID=53261 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='714304c0-a319-498b-a139-bd9d6d7cb721' WHERE AD_Sequence_ID=53260 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='47de001f-3e22-4bcc-b706-1a4713ee469a' WHERE AD_Sequence_ID=53259 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='bfc1b4dc-21b8-4d62-98bf-4575b0f4a42c' WHERE AD_Sequence_ID=53258 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='2eecea2e-6096-4a3a-9d61-3a6ac73b1ba0' WHERE AD_Sequence_ID=53257 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='07ebff64-efe0-428a-8f41-d1c7932db721' WHERE AD_Sequence_ID=53256 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='84f56c57-752d-4457-85ce-3d7675604089' WHERE AD_Sequence_ID=200027 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='2ea6d9c7-e635-4667-b787-e774da16915b' WHERE AD_Sequence_ID=200026 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='b519bc95-9d3b-4623-a0db-df00df1f0a48' WHERE AD_Tab_ID=200031 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='21a4440d-067c-45cc-bfef-16ff2e272ce7' WHERE AD_Tab_ID=53191 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='21d967ed-2e82-4ddc-b13a-d8846406f253' WHERE AD_Tab_ID=53190 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='06d30678-94b4-4957-bd4b-813e2f1f2e87' WHERE AD_Tab_ID=53185 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='3785dc7a-d157-4d82-a52a-52d237d5567b' WHERE AD_Tab_ID=53186 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='280c3da6-7228-4db2-a74e-1e0e9538a2bb' WHERE AD_Tab_ID=53187 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='a1ea44a6-213a-4028-bc4f-16bb8ded6222' WHERE AD_Tab_ID=53188 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='5fd0b27f-8cbe-4207-9cee-828215d55319' WHERE AD_Tab_ID=53189 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='8f644730-2f5b-4ff9-a6c1-f04d199278c3' WHERE AD_Table_ID=53168 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='edc84751-b64a-4b5e-b57d-3ba4c247d08a' WHERE AD_Table_ID=53167 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='7994f729-7c9d-426f-999b-791c9d0009f9' WHERE AD_Table_ID=53166 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='91c1be6d-08d7-4575-9676-fafe7687dd04' WHERE AD_Table_ID=53165 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='1d170e1d-9f22-4299-985a-6f713b19cd06' WHERE AD_Table_ID=53164 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='06637401-49d6-438b-912e-7e5901337bb2' WHERE AD_Table_ID=53163 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='6fc05546-b51a-4990-b163-9c228b84a61b' WHERE AD_Table_ID=53162 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='05c8c42f-bc0d-4fa4-9e76-d7e6194efd62' WHERE AD_Table_ID=200027 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='d0fb9988-fb24-4d38-88c3-93ec15662b6c' WHERE AD_Table_ID=200026 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_TreeBar SET AD_TreeBar_UU='3e9969f0-3f00-460c-bf31-f0198e806654',Updated=TO_DATE('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE Node_ID=495 AND AD_Tree_ID=10 AND AD_User_ID=0 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='632973fc-4ed9-43c9-a61f-a83874807ea3',Updated=TO_DATE('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53201 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='318f234c-7140-4400-b409-198179ae47bd',Updated=TO_DATE('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53200 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_User SET AD_User_UU='e904b07d-e23b-4494-8bff-066efc7cae83' WHERE AD_User_ID=50001 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_User_Roles SET AD_User_Roles_UU='9777948f-e98f-42eb-afd3-75a433c09bff',Updated=TO_DATE('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND AD_User_ID=100 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_User_Roles SET AD_User_Roles_UU='8f246aed-d8da-421a-bd4d-73c4c258ab85',Updated=TO_DATE('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND AD_User_ID=50001 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_Val_Rule SET AD_Val_Rule_UU='a7083858-e66a-46d4-a0c3-de7d225134ed' WHERE AD_Val_Rule_ID=52044 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_Val_Rule SET AD_Val_Rule_UU='81451e7b-4f8d-4233-a8a0-4bae2b9a9f7c' WHERE AD_Val_Rule_ID=200008 +; + +-- Apr 13, 2013 9:44:08 PM COT +UPDATE AD_Window SET AD_Window_UU='a9874196-95b5-445b-8de5-0b31fce0c765' WHERE AD_Window_ID=53068 +; + +-- Apr 13, 2013 9:44:08 PM COT +UPDATE AD_Window SET AD_Window_UU='0d708224-ee1d-4d60-9df4-c1963f32908e' WHERE AD_Window_ID=53067 +; + +-- Apr 13, 2013 9:44:11 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (1.00,200070,210244,'U','N','N','N','N',36,'N',10,'N',202253,'27c17fc3-9fed-46a0-9140-cf066fe26aed','Y','T_BankRegister_UU','T_BankRegister_UU',TO_DATE('2013-04-13 21:44:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 21:44:10','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 9:44:11 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210244 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 9:44:11 PM COT +ALTER TABLE T_BankRegister ADD T_BankRegister_UU NVARCHAR2(36) DEFAULT NULL +; + +-- Apr 13, 2013 9:44:11 PM COT +CREATE UNIQUE INDEX T_BankRegister_UU_idx ON t_bankregister(T_BankRegister_UU) +; + +-- Apr 13, 2013 9:44:12 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('WS_WebService_UU',202510,'U','WS_WebService_UU','WS_WebService_UU','0999f664-7498-4f21-b9a9-23928c9eb3b1',TO_DATE('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 9:44:12 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202510 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 9:44:13 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (1.00,53162,210245,'U','N','N','N','N',36,'N',10,'N',202510,'d44a3ff8-1030-4d25-bc59-eb9375556e28','Y','WS_WebService_UU','WS_WebService_UU',TO_DATE('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 9:44:13 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210245 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 9:44:13 PM COT +ALTER TABLE WS_WebService ADD WS_WebService_UU NVARCHAR2(36) DEFAULT NULL +; + +-- Apr 13, 2013 9:44:13 PM COT +CREATE UNIQUE INDEX WS_WebService_UU_idx ON ws_webservice(WS_WebService_UU) +; + +-- Apr 13, 2013 9:44:13 PM COT +UPDATE WS_WebService SET WS_WebService_UU='55fbf210-3daa-49d4-b3d6-a82558cbdc78' WHERE WS_WebService_ID=50001 +; + +-- Apr 13, 2013 9:44:13 PM COT +UPDATE WS_WebService SET WS_WebService_UU='294ebf4d-6661-4074-9a75-4dd7d80bd539' WHERE WS_WebService_ID=200001 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='f5b29ff7-7be3-422e-ae03-3c1cc3ddaeb8' WHERE WS_WebServiceFieldInput_ID=50000 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='8d09bba0-e542-4a78-b229-9ca492060365' WHERE WS_WebServiceFieldInput_ID=50001 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='78211c03-dd6c-4f25-9fa6-6b7584b34c15' WHERE WS_WebServiceFieldInput_ID=50002 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='29bf9b91-6159-46df-8883-e1bdd80ac05b' WHERE WS_WebServiceFieldInput_ID=50003 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='a69bdeb1-c736-4f0d-bde5-1eba00d7a007' WHERE WS_WebServiceFieldInput_ID=50004 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='ae1867fe-23b0-4a53-9224-a7b9592f3b78' WHERE WS_WebServiceFieldInput_ID=50005 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='84880422-b857-45b8-9490-e792703935b3' WHERE WS_WebServiceFieldInput_ID=50006 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='1d8a44e2-9b2a-4be9-b09d-843009388616' WHERE WS_WebServiceFieldInput_ID=50007 +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('WS_WebServiceMethod_UU',202511,'U','WS_WebServiceMethod_UU','WS_WebServiceMethod_UU','f8cbb4f8-3e5b-4bcb-876d-49e4e33e366d',TO_DATE('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202511 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (1.00,53163,210246,'U','N','N','N','N',36,'N',10,'N',202511,'87b8210a-638c-4120-af13-73d13f2b35cc','Y','WS_WebServiceMethod_UU','WS_WebServiceMethod_UU',TO_DATE('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210246 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 9:44:15 PM COT +ALTER TABLE WS_WebServiceMethod ADD WS_WebServiceMethod_UU NVARCHAR2(36) DEFAULT NULL +; + +-- Apr 13, 2013 9:44:16 PM COT +CREATE UNIQUE INDEX WS_WebServiceMethod_UU_idx ON ws_webservicemethod(WS_WebServiceMethod_UU) +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='8a1b0ca4-4744-493e-8118-094ebcbda4c9' WHERE WS_WebServiceMethod_ID=50021 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='96888688-eb3f-4742-b63c-f717d563ca0d' WHERE WS_WebServiceMethod_ID=50022 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='2ba1359c-b3b6-4ac2-89dd-7410c9974597' WHERE WS_WebServiceMethod_ID=50023 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='13d93556-a526-4459-9011-58eda6fb9adc' WHERE WS_WebServiceMethod_ID=50024 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='ecb19fd4-d235-4877-a87a-633c06e6ae04' WHERE WS_WebServiceMethod_ID=50025 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='9284c78a-bd93-4d1a-9b32-f11b5dd728bd' WHERE WS_WebServiceMethod_ID=50026 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='586c21e5-2e1c-4ebe-a292-d034df938db8' WHERE WS_WebServiceMethod_ID=50027 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='f4031e95-93e1-4719-a3a1-fe775667c920' WHERE WS_WebServiceMethod_ID=50028 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='a7d42f74-c069-440d-b28e-4cf0aba87c2b' WHERE WS_WebServiceMethod_ID=200001 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='decd86e1-093d-431e-be4a-127d5a235bfd' WHERE WS_WebService_Para_ID=50000 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='e4df7266-3948-4c47-bf33-710f7dd71230' WHERE WS_WebService_Para_ID=50001 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='fb9d4028-9ce5-4836-80b3-2e67032f9df2' WHERE WS_WebService_Para_ID=50002 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='6c551234-fec0-4518-80b8-78dc79b3714f' WHERE WS_WebService_Para_ID=50003 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='e8c27528-7715-48eb-9bd0-10a3ae44832d' WHERE WS_WebService_Para_ID=50004 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='de8a1882-dcae-4166-9b34-f623d3314281' WHERE WS_WebService_Para_ID=50005 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='595c04ff-f227-4f67-a12d-2bd59cde154d' WHERE WS_WebService_Para_ID=50006 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceType SET WS_WebServiceType_UU='90c6a206-62ac-4a77-9192-2cf9cb5f3e7b' WHERE WS_WebServiceType_ID=50000 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceType SET WS_WebServiceType_UU='e69debe3-0b96-424b-82cf-8a93eda53568' WHERE WS_WebServiceType_ID=50001 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceTypeAccess SET WS_WebServiceTypeAccess_UU='ee03a61b-2b1d-447f-a2ba-6281a62db226',Updated=TO_DATE('2013-04-13 21:44:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND WS_WebServiceType_ID=50000 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceTypeAccess SET WS_WebServiceTypeAccess_UU='f684e71c-d611-40d0-980c-3b7fe23fc2a9',Updated=TO_DATE('2013-04-13 21:44:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND WS_WebServiceType_ID=50001 +; + +SELECT register_migration_script('201304132144_UUID_Generator.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql b/migration/i1.0a-release/oracle/201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql new file mode 100644 index 0000000000..a5aa3ce86f --- /dev/null +++ b/migration/i1.0a-release/oracle/201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql @@ -0,0 +1,105 @@ +-- 06 Mar 13 17:14:53 +-- BF: Database Error.: ERROR: null value in column "isapproved" violates not-null constraint +UPDATE AD_Column SET DefaultValue='N', IsAllowCopy='N',Updated=TO_DATE('2013-03-06 17:14:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59482 +; + +-- 06 Mar 13 17:14:58 +ALTER TABLE A_Asset_Disposed MODIFY isApproved CHAR(1) DEFAULT NULL +; + +-- 06 Mar 13 17:14:58 +UPDATE A_Asset_Disposed SET IsApproved='N' WHERE IsApproved IS NULL +; + +-- 06 Mar 13 17:20:07 +UPDATE AD_Column SET DefaultValue='0',Updated=TO_DATE('2013-03-06 17:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55844 +; + +-- 06 Mar 13 17:20:15 +ALTER TABLE A_Asset_Change MODIFY AssetValueAmt NUMERIC DEFAULT '0' +; + +-- 06 Mar 13 17:20:15 +UPDATE A_Asset_Change SET AssetValueAmt=0 WHERE AssetValueAmt IS NULL +; + +-- 06 Mar 13 17:43:54 +UPDATE AD_Column SET ColumnSQL=NULL, DefaultValue='''N''', IsAllowCopy='N',Updated=TO_DATE('2013-03-06 17:43:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59319 +; + +-- 06 Mar 13 17:44:01 +ALTER TABLE A_Asset_Info_Fin ADD Processed CHAR(1) DEFAULT 'N' CHECK (Processed IN ('Y','N')) +; + +-- 06 Mar 13 17:42:19 +UPDATE AD_Column SET ColumnSQL=NULL, DefaultValue='''N''', IsAllowCopy='N',Updated=TO_DATE('2013-03-06 17:42:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59320 +; + +-- 06 Mar 13 17:42:22 +ALTER TABLE A_Asset_Info_Lic ADD Processed CHAR(1) DEFAULT 'N' CHECK (Processed IN ('Y','N')) +; +-- 08 Mar 13 15:20:40 +-- On Create Depreciation Entry, Accounting Date set default to Doc Date +UPDATE AD_Column SET DefaultValue='@#Date@', Callout='org.compiere.model.CalloutEngine.dateAcct',Updated=TO_DATE('2013-03-08 15:20:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55551 +; + +-- Asset Disposed Process +UPDATE ad_process SET isbetafunctionality='N' WHERE ad_process_id=53210; + + +-- 11 Mar 13 14:29:08 +-- A_AssetGroup.AD_Org_ID +UPDATE AD_Column SET IsUpdateable='N',DefaultValue='0', Updated=TO_DATE('2013-03-11 14:29:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=8110 +; + +-- 11 Mar 13 14:32:22 +-- A_Asset.AD_Org_ID must use AD_Org Trx Security validation +UPDATE AD_Column SET AD_Val_Rule_ID=130,Updated=TO_DATE('2013-03-11 14:32:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=8052 +; + +-- Mar 29, 2013 1:07:43 PM ICT +UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2013-03-29 13:07:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59516 +; + +-- Mar 29, 2013 1:07:48 PM ICT +ALTER TABLE I_FixedAsset MODIFY UseLifeMonths NUMBER(10) DEFAULT NULL +; + +-- Mar 29, 2013 1:07:48 PM ICT +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +ALTER TABLE I_FixedAsset MODIFY UseLifeMonths NULL +; + +-- Mar 29, 2013 1:07:58 PM ICT +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-29 13:07:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59517 +; + +-- Mar 29, 2013 1:08:02 PM ICT +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +ALTER TABLE I_FixedAsset MODIFY UseLifeMonths_F NUMBER(10) DEFAULT NULL +; + +-- Mar 29, 2013 1:08:02 PM ICT +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +ALTER TABLE I_FixedAsset MODIFY UseLifeMonths_F NULL +; + +-- 12 Mar 13 16:03:50 +-- Import Fixed Asset does not has tree +UPDATE AD_Tab SET HasTree='N',Updated=TO_DATE('2013-03-12 16:03:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53334 +; + +-- 12 Mar 13 16:20:13 +-- Missing message +INSERT INTO AD_Message (MsgType,MsgText,EntityType,Value,AD_Message_ID,IsActive,Updated,AD_Client_ID,AD_Org_ID,CreatedBy,Created,UpdatedBy) VALUES ('I','Asset Depreciation Amount','D','AssetDepreciationAmt',20001,'Y',TO_DATE('2013-03-12 16:20:13','YYYY-MM-DD HH24:MI:SS'),0,0,0,TO_DATE('2013-03-12 16:20:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 12 Mar 13 16:20:13 +-- Missing message +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=20001 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +SELECT register_migration_script('201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304170928_IDEMPIERE-796_2.sql b/migration/i1.0a-release/oracle/201304170928_IDEMPIERE-796_2.sql new file mode 100644 index 0000000000..39708b4d4b --- /dev/null +++ b/migration/i1.0a-release/oracle/201304170928_IDEMPIERE-796_2.sql @@ -0,0 +1,931 @@ +-- Mar 24, 2013 8:41:39 PM ICT +INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200139,183,'U','Fixed Assets Document','fef8f9ac-de6a-4ea9-b117-3a6bcfb2f3d4','FAA',TO_DATE('2013-03-24 20:41:37','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-24 20:41:37','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0) +; + +-- Mar 24, 2013 8:41:39 PM ICT +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200139 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + +-- Mar 24, 2013 8:42:03 PM ICT +UPDATE AD_Ref_List SET EntityType='D',Updated=TO_DATE('2013-03-24 20:42:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200139 +; + +-- Mar 24, 2013 8:44:07 PM ICT +INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('C_DocType.DocBaseType=''FAA'' AND C_DocType.AD_Org_ID IN (0, @AD_Org_ID@)',200035,'D','C_DocType Fixed Assets','S','7305a6f8-6b50-498e-b5ec-c1dc94902817',100,100,TO_DATE('2013-03-24 20:44:05','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-03-24 20:44:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',0) +; + +-- Mar 24, 2013 8:44:23 PM ICT +UPDATE AD_Column SET AD_Val_Rule_ID=200035,Updated=TO_DATE('2013-03-24 20:44:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55563 +; + +-- Mar 24, 2013 8:56:46 PM ICT +UPDATE AD_Menu SET Name='Asset Disposal', Description='Dispose of Assets',Updated=TO_DATE('2013-03-24 20:56:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:56:46 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Window SET Description='Dispose of Assets',Updated=TO_DATE('2013-03-24 20:57:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Menu SET Name='Asset Activation/Disposal', Description='Dispose of Assets', IsActive='Y',Updated=TO_DATE('2013-03-24 20:57:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Window SET Name='Asset Disposal2', IsActive='N',Updated=TO_DATE('2013-03-24 20:58:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53049 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53049 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Menu SET Name='Asset Disposal2', Description='Dispose of Assets', IsActive='N',Updated=TO_DATE('2013-03-24 20:58:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53145 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53145 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Window SET Name='Asset Disposal',Updated=TO_DATE('2013-03-24 20:58:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Menu SET Name='Asset Disposal', Description='Dispose of Assets', IsActive='Y',Updated=TO_DATE('2013-03-24 20:58:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 9:14:57 PM ICT +INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,53137,210209,'U','N','N','N',0,'N',10,'N',19,200035,'N',196,'N','Y','34a3e305-8dd5-4e41-9953-8dbde442ceaf','Y','C_DocType_ID','Document type or rules','The Document Type determines document sequence and processing rules','Document Type','Y',TO_DATE('2013-03-24 21:14:55','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-03-24 21:14:55','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 24, 2013 9:14:57 PM ICT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210209 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 24, 2013 9:15:05 PM ICT +ALTER TABLE A_Asset_Addition ADD C_DocType_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:15:42 PM ICT +UPDATE AD_Tab SET Name='Asset Disposal', Description='Process the Disposal',Updated=TO_DATE('2013-03-24 21:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53325 +; + +-- Mar 24, 2013 9:15:42 PM ICT +UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53325 +; + +-- Mar 24, 2013 9:16:12 PM ICT +INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,53127,210210,'U','N','N','N',0,'N',10,'N',19,200035,'N',196,'N','Y','928a0f0a-da92-405a-bedc-176cee363dee','Y','C_DocType_ID','Document type or rules','The Document Type determines document sequence and processing rules','Document Type','Y',TO_DATE('2013-03-24 21:16:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-03-24 21:16:11','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 24, 2013 9:16:12 PM ICT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210210 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 24, 2013 9:16:18 PM ICT +ALTER TABLE A_Asset_Disposed ADD C_DocType_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:16:33 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:16:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53127 +; + +-- Mar 24, 2013 9:16:50 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:16:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53123 +; + +-- Mar 24, 2013 9:17:01 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:17:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53130 +; + +-- Mar 24, 2013 9:17:04 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:17:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53132 +; + +-- Mar 24, 2013 9:17:06 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:17:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53135 +; + +-- Mar 24, 2013 9:17:09 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:17:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53134 +; + +-- Mar 24, 2013 9:17:11 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:17:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53136 +; + +-- Mar 24, 2013 9:17:31 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2013-03-24 21:17:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53131 +; + +-- Mar 24, 2013 9:17:50 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,36,'N','N',60357,'Y',201887,'N','D','A_Asset_Disposed_UU','Y','N','aa5f43db-8a63-46bb-8132-a8a0db473e36',100,0,TO_DATE('2013-03-24 21:17:49','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:17:49','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:50 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201887 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:51 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,10,'N','N',210210,'Y',201888,'N','The Document Type determines document sequence and processing rules','U','Document type or rules','Document Type','Y','N','c28d47c5-5c1c-4040-8190-967e0ae37c5c',100,0,TO_DATE('2013-03-24 21:17:50','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:17:50','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:51 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201888 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:52 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,10,'N','N',200075,'Y',201889,'N','The Invoice Document.','D','Invoice Identifier','Invoice','Y','N','d7270c7e-841e-49cf-bae0-8041a17d9509',100,0,TO_DATE('2013-03-24 21:17:51','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:17:51','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:52 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201889 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:54 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,10,'N','N',200076,'Y',201890,'N','The Invoice Line uniquely identifies a single line of an Invoice.','D','Invoice Detail Line','Invoice Line','Y','N','e15d85a5-f240-414d-87ac-9cbde577caf4',100,0,TO_DATE('2013-03-24 21:17:52','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:17:52','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:54 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201890 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:55 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,20,'N','N',59588,'Y',201891,'N','The ProcessedOn Date+Time save the exact moment (nanoseconds precision if allowed by the DB) when a document has been processed.','D','The date+time (expressed in decimal format) when the document has been processed','Processed On','Y','N','20f54461-f9f4-46e5-9262-2fad03b7f38c',100,0,TO_DATE('2013-03-24 21:17:54','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:17:54','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:55 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201891 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201887 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201889 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201890 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201891 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=201888 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=59396 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=59136 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=59138 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=59139 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59137 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=59140 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=59402 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=59141 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=59405 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59398 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59401 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59399 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=59400 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=59403 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=59404 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=59406 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=59408 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=59407 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=59409 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201887 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=59407 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=59134 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201889 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201890 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201891 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=59135 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=59395 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201888 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=59409 +; + +-- Mar 24, 2013 9:19:11 PM ICT +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-03-24 21:19:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201888 +; + +-- Mar 24, 2013 9:20:43 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53324,36,'N','N',60354,'Y',201892,'N','D','A_Asset_Addition_UU','Y','N','9d33d304-53c6-4aec-a126-b2e20505cfe8',100,0,TO_DATE('2013-03-24 21:20:43','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:20:43','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:20:44 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201892 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:20:44 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53324,10,'N','N',210209,'Y',201893,'N','The Document Type determines document sequence and processing rules','U','Document type or rules','Document Type','Y','N','384fc5d9-fcc7-43f4-8de1-dbbe912aedef',100,0,TO_DATE('2013-03-24 21:20:44','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-03-24 21:20:44','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:20:44 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201893 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201892 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=201893 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=59118 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=59367 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=59368 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=59369 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59119 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=59121 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=59120 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=59122 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=59123 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59370 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59371 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59124 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=59372 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=59373 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=59374 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=59375 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=59376 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=59377 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=59125 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=59378 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=59126 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=59379 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=200159 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=59127 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=59380 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=59381 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=59382 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=59383 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=59384 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=59385 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=59386 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=59387 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=59388 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=59389 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=59390 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=59393 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=59394 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201892 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=59115 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=59116 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=59117 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201893 +; + +-- Mar 24, 2013 9:21:50 PM ICT +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-03-24 21:21:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201893 +; + +-- Mar 24, 2013 9:22:12 PM ICT +UPDATE AD_Menu SET Name='Create Asset From Project',Updated=TO_DATE('2013-03-24 21:22:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200006 +; + +-- Mar 24, 2013 9:22:12 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200006 +; + +-- Mar 24, 2013 9:22:42 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_DATE('2013-03-24 21:22:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53175 +; + +-- Mar 24, 2013 9:22:46 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_DATE('2013-03-24 21:22:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53176 +; + +-- Mar 24, 2013 9:31:15 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56075 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56075 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56069 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56063 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56052 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56064 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56057 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56073 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56074 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56068 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56078 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56079 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56076 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56077 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56080 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56062 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56053 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56054 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56055 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=56056 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=59256 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=59258 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=59259 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=59260 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=59261 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=56065 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=59262 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=56066 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=56067 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=59263 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=56070 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=56071 +; + +-- Mar 24, 2013 9:31:19 PM ICT +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=59264 +; + +-- Mar 24, 2013 9:31:19 PM ICT +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=56072 +; + +-- Mar 24, 2013 9:31:19 PM ICT +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=59265 +; + +-- Mar 24, 2013 9:31:50 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-24 21:31:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59403 +; + +-- Mar 24, 2013 9:31:56 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Conv_F_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:31:57 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Conv_F_ID NULL +; + +-- Mar 24, 2013 9:32:06 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-24 21:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59404 +; + +-- Mar 24, 2013 9:32:10 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Conv_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:32:10 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Conv_ID NULL +; + +-- Mar 24, 2013 9:32:21 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-24 21:32:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59405 +; + +-- Mar 24, 2013 9:32:24 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Method_F_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:32:24 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Method_F_ID NULL +; + +-- Mar 24, 2013 9:32:34 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-24 21:32:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59402 +; + +-- Mar 24, 2013 9:32:38 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Method_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:32:38 PM ICT +ALTER TABLE A_Asset_Group_Acct MODIFY A_Depreciation_Method_ID NULL +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59260 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59261 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59258 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59259 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56065 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=56066 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=59262 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=56067 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=59263 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56070 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56071 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=56072 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59264 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=59265 +; + +-- Mar 24, 2013 9:33:18 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-24 21:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59307 +; + +-- Mar 24, 2013 9:33:22 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Conv_F_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:33:22 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Conv_F_ID NULL +; + +-- Mar 24, 2013 9:33:33 PM ICT +UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2013-03-24 21:33:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55632 +; + +-- Mar 24, 2013 9:33:37 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Conv_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:33:37 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Conv_ID NULL +; + +-- Mar 24, 2013 9:33:44 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_DATE('2013-03-24 21:33:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59305 +; + +-- Mar 24, 2013 9:33:46 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Method_F_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:33:46 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Method_F_ID NULL +; + +-- Mar 24, 2013 9:33:51 PM ICT +UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2013-03-24 21:33:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55628 +; + +-- Mar 24, 2013 9:33:53 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Method_ID NUMBER(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:33:53 PM ICT +ALTER TABLE A_Asset_Acct MODIFY A_Depreciation_Method_ID NULL +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55877 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59033 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55876 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59032 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=55880 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=55881 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=55882 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59034 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59035 +; + +-- Mar 24, 2013 9:34:35 PM ICT +UPDATE AD_Tab SET IsActive='N',Updated=TO_DATE('2013-03-24 21:34:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=451 +; + +-- Mar 24, 2013 9:34:45 PM ICT +UPDATE AD_Tab SET IsActive='N',Updated=TO_DATE('2013-03-24 21:34:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53164 +; + +-- Mar 24, 2013 9:36:18 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_DATE('2013-03-24 21:36:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53138 +; + +-- Mar 24, 2013 9:36:21 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_DATE('2013-03-24 21:36:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53136 +; + +-- Mar 24, 2013 9:37:19 PM ICT +UPDATE AD_Menu SET Name='Asset Transactions ', Description='Asset Transactions (Addition, Disposal, Split & Transfer)',Updated=TO_DATE('2013-03-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53139 +; + +-- Mar 24, 2013 9:37:19 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53139 +; + +-- Mar 24, 2013 9:39:55 PM ICT +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,IsOrgLevelSequence,StartNo,StartNewMonth) VALUES ('N',100,'N',1000000,'N','Y',200070,'Asset Addition',1,'bb13be47-97be-4334-b9de-b10d31722bac',0,11,TO_DATE('2013-03-24 21:39:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-24 21:39:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',1000000,'N') +; + +-- Mar 24, 2013 9:40:10 PM ICT +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,IsOrgLevelSequence,StartNo,StartNewMonth) VALUES ('N',100,'N',1000000,'N','Y',200071,'Asset Depreciation',1,'d134f7ea-3d17-43e1-82a1-45764d57a835',0,11,TO_DATE('2013-03-24 21:40:09','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-24 21:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',1000000,'N') +; + +-- Mar 24, 2013 9:40:18 PM ICT +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,IsOrgLevelSequence,StartNo,StartNewMonth) VALUES ('N',100,'N',1000000,'N','Y',200072,'Asset Disposal',1,'a30f77d3-1d39-4ec4-8187-bb402877f605',0,11,TO_DATE('2013-03-24 21:40:16','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-03-24 21:40:16','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',1000000,'N') +; + +-- Mar 24, 2013 9:40:29 PM ICT +INSERT INTO C_DocType (DocNoSequence_ID,GL_Category_ID,C_DocType_ID,IsDefault,DocBaseType,IsSOTrx,DocumentCopies,IsCreateCounter,IsIndexed,IsShipConfirm,IsSplitWhenDifference,IsDefaultCounterDoc,IsInTransit,IsPickQAConfirm,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,C_DocType_UU,IsPrepareSplitDocument,PrintName,Name,IsDocNoControlled,HasCharges,HasProforma,CreatedBy,UpdatedBy,Updated,AD_Org_ID,IsActive,Created,AD_Client_ID,IsChargeOrProductMandatory) VALUES (200070,108,200001,'N','FAA','N',1,'Y','Y','N','N','N','N','N','N','N','7b210fc5-489c-4ff3-9d9a-2fbe8b4c5136','Y','Asset Addition','Asset Addition','Y','N','N',100,100,TO_DATE('2013-03-24 21:40:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-24 21:40:28','YYYY-MM-DD HH24:MI:SS'),11,'N') +; + +-- Mar 24, 2013 9:40:29 PM ICT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,C_DocType_Trl_UU ) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=200001 AND NOT EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) +; + +-- Mar 24, 2013 9:40:42 PM ICT +INSERT INTO C_DocType (DocNoSequence_ID,GL_Category_ID,C_DocType_ID,IsDefault,DocBaseType,IsSOTrx,DocumentCopies,IsCreateCounter,IsIndexed,IsShipConfirm,IsSplitWhenDifference,IsDefaultCounterDoc,IsInTransit,IsPickQAConfirm,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,C_DocType_UU,IsPrepareSplitDocument,PrintName,Name,IsDocNoControlled,HasCharges,HasProforma,CreatedBy,UpdatedBy,Updated,AD_Org_ID,IsActive,Created,AD_Client_ID,IsChargeOrProductMandatory) VALUES (200071,108,200002,'N','FAA','N',1,'Y','Y','N','N','N','N','N','N','N','2d0701af-23b4-4c8c-9c48-9fb238db69fb','Y','Asset Depreciation','Asset Depreciation','Y','N','N',100,100,TO_DATE('2013-03-24 21:40:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-24 21:40:41','YYYY-MM-DD HH24:MI:SS'),11,'N') +; + +-- Mar 24, 2013 9:40:42 PM ICT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,C_DocType_Trl_UU ) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=200002 AND NOT EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) +; + +-- Mar 24, 2013 9:40:56 PM ICT +INSERT INTO C_DocType (DocNoSequence_ID,GL_Category_ID,C_DocType_ID,IsDefault,DocBaseType,IsSOTrx,DocumentCopies,IsCreateCounter,IsIndexed,IsShipConfirm,IsSplitWhenDifference,IsDefaultCounterDoc,IsInTransit,IsPickQAConfirm,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,C_DocType_UU,IsPrepareSplitDocument,PrintName,Name,IsDocNoControlled,HasCharges,HasProforma,CreatedBy,UpdatedBy,Updated,AD_Org_ID,IsActive,Created,AD_Client_ID,IsChargeOrProductMandatory) VALUES (200072,108,200003,'N','FAA','N',1,'Y','Y','N','N','N','N','N','N','N','0fac34f1-aa81-49d7-be50-88b566ca81c8','Y','Asset Disposal','Asset Disposal','Y','N','N',100,100,TO_DATE('2013-03-24 21:40:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2013-03-24 21:40:55','YYYY-MM-DD HH24:MI:SS'),11,'N') +; + +-- Mar 24, 2013 9:40:56 PM ICT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,C_DocType_Trl_UU ) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=200003 AND NOT EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) +; + +-- Mar 24, 2013 9:43:42 PM ICT +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2013-03-24 21:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55803 +; + +-- Mar 24, 2013 9:44:04 PM ICT +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2013-03-24 21:44:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59395 +; + +SELECT register_migration_script('201304170928_IDEMPIERE-796_2.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304170929_IDEMPIERE-796_3.sql b/migration/i1.0a-release/oracle/201304170929_IDEMPIERE-796_3.sql new file mode 100644 index 0000000000..dadf8d3bb1 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304170929_IDEMPIERE-796_3.sql @@ -0,0 +1,481 @@ +-- Apr 4, 2013 1:15:30 PM ICT +-- IDEMPIERE-796 +UPDATE AD_Ref_List SET Name='Fixed Assets Addition',Updated=TO_DATE('2013-04-04 13:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200139 +; + +-- Apr 4, 2013 1:15:46 PM ICT +INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200140,183,'U','Fixed Assets Disposal','98b85394-b7cb-40df-b310-825d53744733','FAD',TO_DATE('2013-04-04 13:15:45','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-04-04 13:15:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0) +; + +-- Apr 4, 2013 1:15:46 PM ICT +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200140 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + +-- Apr 4, 2013 1:15:56 PM ICT +UPDATE AD_Ref_List SET EntityType='D',Updated=TO_DATE('2013-04-04 13:15:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200140 +; + +-- Apr 4, 2013 1:16:16 PM ICT +INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200141,183,'D','Fixed Assets Depreciation','68763ab2-7781-4d0a-88d4-1d70e3f885e7','FDP',TO_DATE('2013-04-04 13:16:15','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-04-04 13:16:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0) +; + +-- Apr 4, 2013 1:16:16 PM ICT +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200141 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + +-- Apr 4, 2013 1:17:39 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200006 +; + +-- Apr 4, 2013 1:17:39 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53273 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53274 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53277 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53144 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53148 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53147 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53146 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53143 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53140 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53145 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53145 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53142 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53141 +; + +-- Apr 4, 2013 1:18:18 PM ICT +UPDATE AD_Val_Rule SET Name='C_DocType Fixed Assets Addition',Updated=TO_DATE('2013-04-04 13:18:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200035 +; + +-- Apr 4, 2013 1:18:31 PM ICT +INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,IsActive,AD_Org_ID,AD_Client_ID) VALUES ('C_DocType.DocBaseType=''FAD'' AND C_DocType.AD_Org_ID IN (0, @AD_Org_ID@)',200036,'U','C_DocType Fixed Assets Disposal','S','a8c570d9-1021-4074-ba86-f60dd0cbbeba',100,100,TO_DATE('2013-04-04 13:18:30','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-04 13:18:30','YYYY-MM-DD HH24:MI:SS'),'Y',0,0) +; + +-- Apr 4, 2013 1:18:37 PM ICT +UPDATE AD_Val_Rule SET EntityType='D',Updated=TO_DATE('2013-04-04 13:18:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200036 +; + +-- Apr 4, 2013 1:18:55 PM ICT +INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,IsActive,AD_Org_ID,AD_Client_ID) VALUES ('C_DocType.DocBaseType=''FDP'' AND C_DocType.AD_Org_ID IN (0, @AD_Org_ID@)',200037,'D','C_DocType Fixed Assets Depreciation','S','04475427-d1a4-4acf-9a5b-3e2dc25ff536',100,100,TO_DATE('2013-04-04 13:18:54','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-04-04 13:18:54','YYYY-MM-DD HH24:MI:SS'),'Y',0,0) +; + +-- Apr 4, 2013 1:20:03 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59143 +; + +-- Apr 4, 2013 1:20:03 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59143 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59144 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59144 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59145 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59145 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59146 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59146 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59147 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59147 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59148 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59148 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59149 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59149 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59150 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59150 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59151 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59151 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59152 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59152 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59153 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59153 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59154 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59154 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59155 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59155 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59156 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59156 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59157 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59157 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59158 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59158 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59159 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59159 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59160 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59160 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59161 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59161 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59162 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59162 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59163 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59163 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59164 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59164 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59165 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59165 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59166 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59166 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59167 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59167 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59168 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59168 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59169 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59169 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59170 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59170 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59171 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59171 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59172 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59172 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59173 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59173 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59174 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59174 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59175 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59175 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59176 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59176 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59177 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59177 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59178 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59178 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59179 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59179 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59180 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59180 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59181 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59181 +; + +-- Apr 4, 2013 1:20:12 PM ICT +DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=53326 +; + +-- Apr 4, 2013 1:20:13 PM ICT +DELETE FROM AD_Tab WHERE AD_Tab_ID=53326 +; + +-- Apr 4, 2013 1:21:43 PM ICT +UPDATE AD_Column SET AD_Val_Rule_ID=200036,Updated=TO_DATE('2013-04-04 13:21:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210210 +; + +-- Apr 4, 2013 1:21:54 PM ICT +UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2013-04-04 13:21:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210210 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=55813 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=55808 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=55809 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=55810 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=55811 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=55812 +; + +-- Apr 4, 2013 1:23:25 PM ICT +UPDATE AD_Column SET AD_Val_Rule_ID=200037,Updated=TO_DATE('2013-04-04 13:23:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55563 +; + +-- Apr 4, 2013 1:23:38 PM ICT +UPDATE AD_Field SET IsActive='N' WHERE AD_Column_ID=55559 +; + +-- Apr 4, 2013 1:23:38 PM ICT +UPDATE AD_Column SET IsActive='N' WHERE AD_Column_ID=55559 +; + +-- Apr 4, 2013 1:23:38 PM ICT +-- oracle doesn't have a constant naming for constraint checks :-( +ALTER TABLE I_FIXEDASSET RENAME COLUMN I_ISIMPORTED TO I_ISIMPORTEDDROP +; + +ALTER TABLE I_FIXEDASSET ADD ( I_ISIMPORTED CHAR(1) DEFAULT 'N' NULL ) +; + +UPDATE I_FIXEDASSET SET I_ISIMPORTED=I_ISIMPORTEDDROP +; + +ALTER TABLE I_FIXEDASSET MODIFY ( I_ISIMPORTED CHAR(1) NOT NULL ) +; + +ALTER TABLE I_FIXEDASSET DROP ( I_ISIMPORTEDDROP ) CASCADE CONSTRAINT +; + +SELECT register_migration_script('201304170929_IDEMPIERE-796_3.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304170930_IDEMPIERE-796_4.sql b/migration/i1.0a-release/oracle/201304170930_IDEMPIERE-796_4.sql new file mode 100644 index 0000000000..d42f2a1055 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304170930_IDEMPIERE-796_4.sql @@ -0,0 +1,144 @@ +-- Apr 10, 2013 3:52:44 PM ICT +-- IDEMPIERE-796 +UPDATE C_DocType SET DocBaseType='FDP',Updated=TO_DATE('2013-04-10 15:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=200002 +; + +-- Apr 10, 2013 3:52:48 PM ICT +UPDATE C_DocType SET DocBaseType='FAD',Updated=TO_DATE('2013-04-10 15:52:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=200003 +; + +-- Apr 10, 2013 5:03:31 PM ICT +UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2013-04-10 17:03:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210209 +; + +-- Apr 10, 2013 5:05:32 PM ICT +UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2013-04-10 17:05:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201888 +; + +-- Apr 10, 2013 5:05:56 PM ICT +UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2013-04-10 17:05:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201893 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56065 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56066 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59262 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=56067 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=59263 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56070 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56071 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56072 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59264 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59265 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55879 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=55867 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=55870 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59030 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=55880 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=55881 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=55882 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=59034 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59035 +; + +-- Apr 10, 2013 9:43:38 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56205 +; + +-- Apr 10, 2013 9:44:15 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50000 +; + +-- Apr 10, 2013 9:44:18 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50001 +; + +-- Apr 10, 2013 9:44:20 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50002 +; + +-- Apr 10, 2013 9:44:24 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50004 +; + +-- Apr 10, 2013 9:44:27 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50005 +; + +-- Apr 10, 2013 9:44:29 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50006 +; + +-- Apr 10, 2013 9:44:32 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50008 +; + +-- Apr 10, 2013 9:44:35 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50007 +; + +-- Apr 10, 2013 9:44:37 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50009 +; + +-- Apr 10, 2013 9:44:40 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_DATE('2013-04-10 21:44:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50010 +; + +SELECT register_migration_script('201304170930_IDEMPIERE-796_4.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304171142_IDEMPIERE-294.sql b/migration/i1.0a-release/oracle/201304171142_IDEMPIERE-294.sql new file mode 100644 index 0000000000..dade39ce27 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304171142_IDEMPIERE-294.sql @@ -0,0 +1,104 @@ +-- Apr 17, 2013 11:37:25 AM COT +-- IDEMPIERE-294 BroadCast Message +UPDATE AD_Process SET AccessLevel='6',Updated=TO_DATE('2013-04-17 11:37:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200018 +; + +-- Apr 17, 2013 11:38:05 AM COT +UPDATE AD_Process SET Description='Expire Broadcast Message', Name='Expire Broadcast Message', Value='AD_ExpireBroadcastMessage',Updated=TO_DATE('2013-04-17 11:38:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200018 +; + +-- Apr 17, 2013 11:41:26 AM COT +UPDATE AD_Process SET Name='Test Broadcast Message', Value='AD_TestBroadcastMessage',Updated=TO_DATE('2013-04-17 11:41:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200020 +; + +-- Apr 17, 2013 11:41:45 AM COT +UPDATE AD_Process SET Value='AD_PublishBroadcastMessage',Updated=TO_DATE('2013-04-17 11:41:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200019 +; + +-- Apr 17, 2013 11:50:44 AM COT +UPDATE AD_Column SET IsToolbarButton='N',Updated=TO_DATE('2013-04-17 11:50:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200994 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=40, ColumnSpan=1,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200876 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=50, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200872 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=60, ColumnSpan=1,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200888 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=3,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200882 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=3,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200887 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=90, IsDisplayed='Y', XPosition=3,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200890 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=100, ColumnSpan=1,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200873 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=110, IsDisplayed='Y', XPosition=3, ColumnSpan=2,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200879 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=120, IsDisplayed='Y', XPosition=6, ColumnSpan=1,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200881 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=130, IsDisplayed='Y', XPosition=2, ColumnSpan=2,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200889 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200885 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=150, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200878 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200880 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200886 +; + +-- Apr 17, 2013 12:00:12 PM COT +UPDATE AD_Field SET EntityType='D', Name='Test Broadcast Message',Updated=TO_DATE('2013-04-17 12:00:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200889 +; + +-- Apr 17, 2013 12:01:05 PM COT +UPDATE AD_Field SET DisplayLogic='@IsPublished@=N', EntityType='D', Description='Publish Broadcast Message', Name='Publish Broadcast Message',Updated=TO_DATE('2013-04-17 12:01:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200885 +; + +-- Apr 17, 2013 12:01:13 PM COT +UPDATE AD_Field SET DisplayLogic='@IsPublished@=N',Updated=TO_DATE('2013-04-17 12:01:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200889 +; + +-- Apr 17, 2013 12:01:54 PM COT +UPDATE AD_Field SET DisplayLogic='@IsPublished@=Y & @Expired@=N',Updated=TO_DATE('2013-04-17 12:01:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200878 +; + +-- Apr 17, 2013 12:02:05 PM COT +UPDATE AD_Field SET EntityType='D',Updated=TO_DATE('2013-04-17 12:02:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200878 +; + +-- Apr 17, 2013 12:02:39 PM COT +UPDATE AD_Tab SET IsSingleRow='Y',Updated=TO_DATE('2013-04-17 12:02:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200033 +; + +SELECT register_migration_script('201304171142_IDEMPIERE-294.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304171803_IDEMPIERE-862.sql b/migration/i1.0a-release/oracle/201304171803_IDEMPIERE-862.sql new file mode 100644 index 0000000000..61922df48c --- /dev/null +++ b/migration/i1.0a-release/oracle/201304171803_IDEMPIERE-862.sql @@ -0,0 +1,33 @@ +CREATE OR REPLACE VIEW m_packagelines_avail_v AS + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line, iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 ) AS qty, iol.m_product_id, p.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + JOIN ad_clientinfo ci ON ci.ad_client_id = iol.ad_client_id + WHERE p.ispicklistprintdetails = 'N' AND iol.m_product_id <> COALESCE(ci.m_productfreight_id, 0 ) AND (iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 )) <> 0 +UNION + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line + pbom.line / 100 AS line, iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 ) AS qty, pbom.m_productbom_id AS m_product_id, p2.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN m_product_bom pbom ON p.m_product_id = pbom.m_product_id + JOIN m_product p2 ON pbom.m_productbom_id = p2.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + WHERE p.isbom = 'Y' AND p.isverified = 'Y' AND p.ispicklistprintdetails = 'Y' AND (iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 )) <> 0 + ORDER BY 1, 2, 3, 5; + +SELECT register_migration_script('201304171803_IDEMPIERE-862.sql') FROM dual +; diff --git a/migration/i1.0a-release/oracle/201304181211_TICKET-1001763_FactView.sql b/migration/i1.0a-release/oracle/201304181211_TICKET-1001763_FactView.sql new file mode 100644 index 0000000000..953e037aea --- /dev/null +++ b/migration/i1.0a-release/oracle/201304181211_TICKET-1001763_FactView.sql @@ -0,0 +1,17 @@ +-- Apr 18, 2013 11:58:53 AM SGT +-- Ticket #1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET IsActive='N',Updated=TO_DATE('2013-04-18 11:58:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200060 +; + +-- Apr 18, 2013 11:59:39 AM SGT +-- Ticket #1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,IsEncrypted,AD_Client_ID) VALUES ('Y',263,200066,'953cd99e-3a51-4597-b156-31951d313c68','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.',200037,15,'N','D','Account Date','DateAcct','Accounting Date',0,'Y',60,'Y',100,TO_DATE('2013-04-18 11:59:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-04-18 11:59:38','YYYY-MM-DD HH24:MI:SS'),0,'N',0) +; + +-- Apr 18, 2013 11:59:39 AM SGT +-- Ticket #1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200066 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +SELECT register_migration_script('201304181211_TICKET-1001763_FactView.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/oracle/201304181526_IdxFKs.sql b/migration/i1.0a-release/oracle/201304181526_IdxFKs.sql new file mode 100644 index 0000000000..f231d7444d --- /dev/null +++ b/migration/i1.0a-release/oracle/201304181526_IdxFKs.sql @@ -0,0 +1,513 @@ +CREATE UNIQUE INDEX m_packagemps_uu_idx ON m_packagemps (m_packagemps_uu) +; + +CREATE UNIQUE INDEX c_depositbatch_uu_idx ON c_depositbatch (c_depositbatch_uu) +; + +CREATE UNIQUE INDEX c_1099box_uu_idx ON c_1099box (c_1099box_uu) +; + +CREATE UNIQUE INDEX c_onlinetrxhistory_uu_idx ON c_onlinetrxhistory (c_onlinetrxhistory_uu) +; + +CREATE UNIQUE INDEX m_shippingprocessorcfg_uu_idx ON m_shippingprocessorcfg (m_shippingprocessorcfg_uu) +; + +CREATE UNIQUE INDEX t_1099extract_uu_idx ON t_1099extract (t_1099extract_uu) +; + +CREATE UNIQUE INDEX m_shipperpackaging_uu_idx ON m_shipperpackaging (m_shipperpackaging_uu) +; + +CREATE UNIQUE INDEX m_shippingtransactionli_uu_idx ON m_shippingtransactionline (m_shippingtransactionline_uu) +; + +CREATE UNIQUE INDEX m_shippercfg_uu_idx ON m_shippercfg (m_shippercfg_uu) +; + +CREATE UNIQUE INDEX m_rmatax_uu_idx ON m_rmatax (m_rmatax_uu) +; + +CREATE UNIQUE INDEX m_shipperpickuptypescfg_uu_idx ON m_shipperpickuptypescfg (m_shipperpickuptypescfg_uu) +; + +CREATE UNIQUE INDEX ad_storageprovider_uu_idx ON ad_storageprovider (ad_storageprovider_uu) +; + +CREATE UNIQUE INDEX ws_webservice_para_uu_idx ON ws_webservice_para (ws_webservice_para_uu) +; + +CREATE UNIQUE INDEX ws_webservicefieldoutpu_uu_idx ON ws_webservicefieldoutput (ws_webservicefieldoutput_uu) +; + +CREATE UNIQUE INDEX ad_ctxhelpmsg_trl_uu_idx ON ad_ctxhelpmsg_trl (ad_ctxhelpmsg_trl_uu) +; + +CREATE UNIQUE INDEX c_depositbatchline_uu_idx ON c_depositbatchline (c_depositbatchline_uu) +; + +CREATE UNIQUE INDEX m_shippingprocessor_uu_idx ON m_shippingprocessor (m_shippingprocessor_uu) +; + +CREATE UNIQUE INDEX c_paymenttransaction_uu_idx ON c_paymenttransaction (c_paymenttransaction_uu) +; + +CREATE UNIQUE INDEX m_commodityshipment_uu_idx ON m_commodityshipment (m_commodityshipment_uu) +; + +CREATE UNIQUE INDEX ws_webservicetypeaccess_uu_idx ON ws_webservicetypeaccess (ws_webservicetypeaccess_uu) +; + +CREATE UNIQUE INDEX ad_ctxhelp_uu_idx ON ad_ctxhelp (ad_ctxhelp_uu) +; + +CREATE UNIQUE INDEX ws_webservicetype_uu_idx ON ws_webservicetype (ws_webservicetype_uu) +; + +CREATE UNIQUE INDEX m_shipperpackagingcfg_uu_idx ON m_shipperpackagingcfg (m_shipperpackagingcfg_uu) +; + +CREATE UNIQUE INDEX c_bp_shippingacct_uu_idx ON c_bp_shippingacct (c_bp_shippingacct_uu) +; + +CREATE UNIQUE INDEX m_shipperlabels_uu_idx ON m_shipperlabels (m_shipperlabels_uu) +; + +CREATE UNIQUE INDEX m_shipperlabelscfg_uu_idx ON m_shipperlabelscfg (m_shipperlabelscfg_uu) +; + +CREATE UNIQUE INDEX m_shipperpickuptypes_uu_idx ON m_shipperpickuptypes (m_shipperpickuptypes_uu) +; + +CREATE UNIQUE INDEX m_shippingtransaction_uu_idx ON m_shippingtransaction (m_shippingtransaction_uu) +; + +CREATE UNIQUE INDEX ad_broadcastmessage_uu_idx ON ad_broadcastmessage (ad_broadcastmessage_uu) +; + +CREATE UNIQUE INDEX ws_webservicefieldinput_uu_idx ON ws_webservicefieldinput (ws_webservicefieldinput_uu) +; + +CREATE UNIQUE INDEX ad_ctxhelpmsg_uu_idx ON ad_ctxhelpmsg (ad_ctxhelpmsg_uu) +; + +CREATE UNIQUE INDEX ad_infowindow_access_uu_idx ON ad_infowindow_access (ad_infowindow_access_uu) +; + +ALTER TABLE AD_BroadcastMessage ADD CONSTRAINT NotificationClient_ADBroadcast FOREIGN KEY (Notification_Client_ID) REFERENCES AD_Client DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_BroadcastMessage ADD CONSTRAINT ADRole_ADBroadcastMessage FOREIGN KEY (AD_Role_ID) REFERENCES AD_Role DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_BroadcastMessage ADD CONSTRAINT ADUser_ADBroadcastMessage FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE ad_storageprovider ADD CONSTRAINT ad_storageprovider_pkey PRIMARY KEY (ad_storageprovider_id) +; + +ALTER TABLE AD_ClientInfo ADD CONSTRAINT ADStorageProvider_ADClientInfo FOREIGN KEY (AD_StorageProvider_ID) REFERENCES AD_StorageProvider DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_ClientInfo ADD CONSTRAINT StorageArchive_ADClientInfo FOREIGN KEY (StorageArchive_ID) REFERENCES AD_StorageProvider DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_ClientInfo ADD CONSTRAINT CChargeFreight_ADClientInfo FOREIGN KEY (C_ChargeFreight_ID) REFERENCES C_Charge DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_CtxHelpMsg ADD CONSTRAINT ADCtxHelp_ADCtxHelpMsg FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_CtxHelpMsg_Trl ADD CONSTRAINT ADCtxHelpMsg_ADCtxHelpMsgTrl FOREIGN KEY (AD_CtxHelpMsg_ID) REFERENCES AD_CtxHelpMsg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_CtxHelpMsg_Trl ADD CONSTRAINT ADLangu_ADCtxHelpMsgTrl FOREIGN KEY (AD_Language) REFERENCES AD_Language DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Form ADD CONSTRAINT ADCtxHelp_ADForm FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoColumn ADD CONSTRAINT ADReferenceValue_ADInfoColumn FOREIGN KEY (AD_Reference_Value_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoColumn ADD CONSTRAINT ADValRule_ADInfoColumn FOREIGN KEY (AD_Val_Rule_ID) REFERENCES AD_Val_Rule DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoWindow ADD CONSTRAINT ADCtxHelp_ADInfoWindow FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoWindow_Access ADD CONSTRAINT ADInfoWindow_ADInfoWindowAcces FOREIGN KEY (AD_InfoWindow_ID) REFERENCES AD_InfoWindow DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoWindow_Access ADD CONSTRAINT ADRole_ADInfoWindowAccess FOREIGN KEY (AD_Role_ID) REFERENCES AD_Role DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Language ADD CONSTRAINT ADPrintPaper_ADLanguage FOREIGN KEY (AD_PrintPaper_ID) REFERENCES AD_PrintPaper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Menu ADD CONSTRAINT ADInfoWindow_ADMenu FOREIGN KEY (AD_InfoWindow_ID) REFERENCES AD_InfoWindow DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Note ADD CONSTRAINT ADBroadcastMessage_ADNote FOREIGN KEY (AD_BroadcastMessage_ID) REFERENCES AD_BroadcastMessage DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADValRule_ADPackageExpDetail FOREIGN KEY (AD_Val_Rule_ID) REFERENCES AD_Val_Rule DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Process ADD CONSTRAINT ADCtxHelp_ADProcess FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Ref_Table ADD CONSTRAINT ADInfoWindow_ADRefTable FOREIGN KEY (AD_InfoWindow_ID) REFERENCES AD_InfoWindow DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Tab ADD CONSTRAINT ADCtxHelp_ADTab FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Task ADD CONSTRAINT ADCtxHelp_ADTask FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_UserDef_Field ADD CONSTRAINT ADReference_ADUserDefField FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_UserDef_Field ADD CONSTRAINT ADReferenceValue_ADUserDefFiel FOREIGN KEY (AD_Reference_Value_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_WF_Node ADD CONSTRAINT ADCtxHelp_ADWFNode FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_WizardProcess ADD CONSTRAINT ADUser_ADWizardProcess FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Workflow ADD CONSTRAINT ADCtxHelp_ADWorkflow FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_AllocationHdr ADD CONSTRAINT Reversal_CAllocationHdr FOREIGN KEY (Reversal_ID) REFERENCES C_AllocationHdr DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BankAccount_Processor ADD CONSTRAINT CCurrency_CBankAccountProcesso FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BPartner ADD CONSTRAINT Default1099Box_CBPartner FOREIGN KEY (Default1099Box_ID) REFERENCES C_1099Box DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_BankAccount ADD CONSTRAINT CPaymentProcessor_CBPBankAccou FOREIGN KEY (C_PaymentProcessor_ID) REFERENCES C_PaymentProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_ShippingAcct ADD CONSTRAINT CBPartner_CBPShippingAcct FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_ShippingAcct ADD CONSTRAINT CBPartnerLocation_CBPShippingA FOREIGN KEY (C_BPartner_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_ShippingAcct ADD CONSTRAINT MShippingProcessor_CBPShipping FOREIGN KEY (M_ShippingProcessor_ID) REFERENCES M_ShippingProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatch ADD CONSTRAINT CBankAccount_CDepositBatch FOREIGN KEY (C_BankAccount_ID) REFERENCES C_BankAccount DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatch ADD CONSTRAINT CDocType_CDepositBatch FOREIGN KEY (C_DocType_ID) REFERENCES C_DocType DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatchLine ADD CONSTRAINT CDepositBatch_CDepositBatchLin FOREIGN KEY (C_DepositBatch_ID) REFERENCES C_DepositBatch DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatchLine ADD CONSTRAINT CPayment_CDepositBatchLine FOREIGN KEY (C_Payment_ID) REFERENCES C_Payment DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_InvoiceLine ADD CONSTRAINT C1099Box_CInvoiceLine FOREIGN KEY (C_1099Box_ID) REFERENCES C_1099Box DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_OnlineTrxHistory ADD CONSTRAINT ADTable_COnlineTrxHistory FOREIGN KEY (AD_Table_ID) REFERENCES AD_Table DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_Payment ADD CONSTRAINT CDepositBatch_CPayment FOREIGN KEY (C_DepositBatch_ID) REFERENCES C_DepositBatch DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT ADOrgTrx_CPaymentTransaction FOREIGN KEY (AD_OrgTrx_ID) REFERENCES AD_Org DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CActivity_CPaymentTransaction FOREIGN KEY (C_Activity_ID) REFERENCES C_Activity DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CBankAccount_CPaymentTransacti FOREIGN KEY (C_BankAccount_ID) REFERENCES C_BankAccount DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CBPartner_CPaymentTransaction FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CBPBankAccount_CPaymentTransac FOREIGN KEY (C_BP_BankAccount_ID) REFERENCES C_BP_BankAccount DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCampaign_CPaymentTransaction FOREIGN KEY (C_Campaign_ID) REFERENCES C_Campaign DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCashBook_CPaymentTransaction FOREIGN KEY (C_CashBook_ID) REFERENCES C_CashBook DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCharge_CPaymentTransaction FOREIGN KEY (C_Charge_ID) REFERENCES C_Charge DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CConversionType_CPaymentTransa FOREIGN KEY (C_ConversionType_ID) REFERENCES C_ConversionType DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCurrency_CPaymentTransaction FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT User1_CPaymentTransaction FOREIGN KEY (User1_ID) REFERENCES C_ElementValue DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT User2_CPaymentTransaction FOREIGN KEY (User2_ID) REFERENCES C_ElementValue DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CInvoice_CPaymentTransaction FOREIGN KEY (C_Invoice_ID) REFERENCES C_Invoice DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT COrder_CPaymentTransaction FOREIGN KEY (C_Order_ID) REFERENCES C_Order DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPayment_CPaymentTransaction FOREIGN KEY (C_Payment_ID) REFERENCES C_Payment DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPaymentBatch_CPaymentTransact FOREIGN KEY (C_PaymentBatch_ID) REFERENCES C_PaymentBatch DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPaymentProcessor_CPaymentTran FOREIGN KEY (C_PaymentProcessor_ID) REFERENCES C_PaymentProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT RefPaymentTransaction_CPayment FOREIGN KEY (Ref_PaymentTransaction_ID) REFERENCES C_PaymentTransaction DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPOSTenderType_CPaymentTransac FOREIGN KEY (C_POSTenderType_ID) REFERENCES C_POSTenderType DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CProject_CPaymentTransaction FOREIGN KEY (C_Project_ID) REFERENCES C_Project DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE DD_Order ADD CONSTRAINT RefOrder_DDOrder FOREIGN KEY (Ref_Order_ID) REFERENCES C_Order DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE I_Invoice ADD CONSTRAINT C1099Box_IInvoice FOREIGN KEY (C_1099Box_ID) REFERENCES C_1099Box DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_CommodityShipment ADD CONSTRAINT MProduct_MCommodityShipment FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ForecastLine ADD CONSTRAINT SalesRep_MForecastLine FOREIGN KEY (SalesRep_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_InOut ADD CONSTRAINT ReturnUser_MInOut FOREIGN KEY (ReturnUser_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_InOut ADD CONSTRAINT ReturnBPartner_MInOut FOREIGN KEY (ReturnBPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_InOut ADD CONSTRAINT ReturnLocation_MInOut FOREIGN KEY (ReturnLocation_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_MatchInv ADD CONSTRAINT Reversal_MMatchInv FOREIGN KEY (Reversal_ID) REFERENCES M_MatchInv DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_MatchPO ADD CONSTRAINT Reversal_MMatchPO FOREIGN KEY (Reversal_ID) REFERENCES M_MatchPO DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CBPartnerLocation_MPackage FOREIGN KEY (C_BPartner_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CBPShippingAcct_MPackage FOREIGN KEY (C_BP_ShippingAcct_ID) REFERENCES C_BP_ShippingAcct DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CCurrency_MPackage FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CUOMLength_MPackage FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CUOMWeight_MPackage FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT MShipperLabels_MPackage FOREIGN KEY (M_ShipperLabels_ID) REFERENCES M_ShipperLabels DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT MShipperPackaging_MPackage FOREIGN KEY (M_ShipperPackaging_ID) REFERENCES M_ShipperPackaging DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT MShipperPickupTypes_MPackage FOREIGN KEY (M_ShipperPickupTypes_ID) REFERENCES M_ShipperPickupTypes DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageLine ADD CONSTRAINT MPackageMPS_MPackageLine FOREIGN KEY (M_PackageMPS_ID) REFERENCES M_PackageMPS DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageLine ADD CONSTRAINT MProduct_MPackageLine FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageMPS ADD CONSTRAINT CUOMLength_MPackageMPS FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageMPS ADD CONSTRAINT CUOMWeight_MPackageMPS FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageMPS ADD CONSTRAINT MPackage_MPackageMPS FOREIGN KEY (M_Package_ID) REFERENCES M_Package DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Production ADD CONSTRAINT CBPartner_MProduction FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMALine ADD CONSTRAINT CTax_MRMALine FOREIGN KEY (C_Tax_ID) REFERENCES C_Tax DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMALine ADD CONSTRAINT MProduct_MRMALine FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMATax ADD CONSTRAINT CTax_MRMATax FOREIGN KEY (C_Tax_ID) REFERENCES C_Tax DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMATax ADD CONSTRAINT MRMA_MRMATax FOREIGN KEY (M_RMA_ID) REFERENCES M_RMA DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Shipper ADD CONSTRAINT MShipperCfg_MShipper FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Shipper ADD CONSTRAINT MShippingProcessor_MShipper FOREIGN KEY (M_ShippingProcessor_ID) REFERENCES M_ShippingProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperCfg ADD CONSTRAINT MShippingProcessorCfg_MShipper FOREIGN KEY (M_ShippingProcessorCfg_ID) REFERENCES M_ShippingProcessorCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperLabels ADD CONSTRAINT MShipper_MShipperLabels FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperLabels ADD CONSTRAINT MShipperLabelsCfg_MShipperLabe FOREIGN KEY (M_ShipperLabelsCfg_ID) REFERENCES M_ShipperLabelsCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperLabelsCfg ADD CONSTRAINT MShipperCfg_MShipperLabelsCfg FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPackaging ADD CONSTRAINT MShipper_MShipperPackaging FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPackaging ADD CONSTRAINT MShipperPackagingCfg_MShipperP FOREIGN KEY (M_ShipperPackagingCfg_ID) REFERENCES M_ShipperPackagingCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPackagingCfg ADD CONSTRAINT MShipperCfg_MShipperPackagingC FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPickupTypes ADD CONSTRAINT MShipper_MShipperPickupTypes FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPickupTypes ADD CONSTRAINT MShipperPickupTypesCfg_MShippe FOREIGN KEY (M_ShipperPickupTypesCfg_ID) REFERENCES M_ShipperPickupTypesCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPickupTypesCfg ADD CONSTRAINT MShipperCfg_MShipperPickupType FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingProcessor ADD CONSTRAINT MShippingProcessorCfg_MShippin FOREIGN KEY (M_ShippingProcessorCfg_ID) REFERENCES M_ShippingProcessorCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ADUser_MShippingTransaction FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ReturnUser_MShippingTransactio FOREIGN KEY (ReturnUser_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT SalesRep_MShippingTransaction FOREIGN KEY (SalesRep_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CBPartner_MShippingTransaction FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ReturnBPartner_MShippingTransa FOREIGN KEY (ReturnBPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT BillLocation_MShippingTransact FOREIGN KEY (Bill_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CBPartnerLocation_MShippingTra FOREIGN KEY (C_BPartner_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ReturnLocation_MShippingTransa FOREIGN KEY (ReturnLocation_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CBPShippingAcct_MShippingTrans FOREIGN KEY (C_BP_ShippingAcct_ID) REFERENCES C_BP_ShippingAcct DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CCurrency_MShippingTransaction FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CInvoice_MShippingTransaction FOREIGN KEY (C_Invoice_ID) REFERENCES C_Invoice DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT COrder_MShippingTransaction FOREIGN KEY (C_Order_ID) REFERENCES C_Order DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CUOMLength_MShippingTransactio FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CUOMWeight_MShippingTransactio FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MInOut_MShippingTransaction FOREIGN KEY (M_InOut_ID) REFERENCES M_InOut DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MPackage_MShippingTransaction FOREIGN KEY (M_Package_ID) REFERENCES M_Package DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipper_MShippingTransaction FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipperLabels_MShippingTransa FOREIGN KEY (M_ShipperLabels_ID) REFERENCES M_ShipperLabels DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipperPackaging_MShippingTra FOREIGN KEY (M_ShipperPackaging_ID) REFERENCES M_ShipperPackaging DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipperPickupTypes_MShippingT FOREIGN KEY (M_ShipperPickupTypes_ID) REFERENCES M_ShipperPickupTypes DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShippingProcessor_MShippingTr FOREIGN KEY (M_ShippingProcessor_ID) REFERENCES M_ShippingProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MWarehouse_MShippingTransactio FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT CUOMLength_MShippingTransactLn FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT CUOMWeight_MShippingTransactLn FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT MPackageMPS_MShippingTransacti FOREIGN KEY (M_PackageMPS_ID) REFERENCES M_PackageMPS DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT MShippingTransaction_MShipping FOREIGN KEY (M_ShippingTransaction_ID) REFERENCES M_ShippingTransaction DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageOnHand ADD CONSTRAINT MProduct_MStorageOnHand FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageReservation ADD CONSTRAINT MProduct_MStorageReservation FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageReservation ADD CONSTRAINT MWarehouse_MStorageReservation FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Warehouse ADD CONSTRAINT MReserveLocator_MWarehouse FOREIGN KEY (M_ReserveLocator_ID) REFERENCES M_Locator DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE WS_WebServiceFieldInput ADD CONSTRAINT ADReference_WSWebServiceFieldI FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE WS_WebServiceFieldInput ADD CONSTRAINT ADReferenceValue_WSWebServiceF FOREIGN KEY (AD_Reference_Value_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageOnHand ADD CONSTRAINT MAttributeSetInstance_MStoraOH FOREIGN KEY(M_AttributeSetInstance_ID) REFERENCES M_AttributeSetInstance(M_AttributeSetInstance_ID) DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageOnHand ADD CONSTRAINT MLocator_MStorageOnHand FOREIGN KEY(M_Locator_ID) REFERENCES M_Locator(M_Locator_ID) DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageReservation ADD CONSTRAINT MAttributeSetInstance_MStoraRe FOREIGN KEY(M_AttributeSetInstance_ID) REFERENCES M_AttributeSetInstance(M_AttributeSetInstance_ID) DEFERRABLE INITIALLY DEFERRED +; + +SELECT register_migration_script('201304181526_IdxFKs.sql') FROM dual +; + diff --git a/migration/i1.0a-release/oracle/201304191606_IDEMPIERE-867.sql b/migration/i1.0a-release/oracle/201304191606_IDEMPIERE-867.sql new file mode 100644 index 0000000000..e71741c264 --- /dev/null +++ b/migration/i1.0a-release/oracle/201304191606_IDEMPIERE-867.sql @@ -0,0 +1,94 @@ +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Element SET ColumnName='CountryOfManufacture_ID',Updated=TO_DATE('2013-04-19 15:45:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200319 +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Column SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL WHERE AD_Element_ID=200319 +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL, AD_Element_ID=200319 WHERE UPPER(ColumnName)='COUNTRYOFMANUFACTURE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL WHERE AD_Element_ID=200319 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_InfoColumn SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL WHERE AD_Element_ID=200319 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:07:20 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_CommodityShipment ADD CountryOfManufacture_ID NUMBER(10) DEFAULT NULL +; + +UPDATE M_CommodityShipment SET CountryOfManufacture_ID = CAST(CountryOfManufacture AS NUMBER); + +ALTER TABLE M_CommodityShipment DROP COLUMN CountryOfManufacture; + +-- Apr 19, 2013 3:38:59 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2013-04-19 15:38:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=201234 +; + +-- Apr 19, 2013 3:39:02 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_CommodityShipment MODIFY CountryOfManufacture_ID NUMBER(10) +; + +-- Apr 19, 2013 3:39:02 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_CommodityShipment MODIFY CountryOfManufacture_ID NOT NULL +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Element SET ColumnName='HoldAddress_ID',Updated=TO_DATE('2013-04-19 15:40:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200273 +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Column SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL WHERE AD_Element_ID=200273 +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL, AD_Element_ID=200273 WHERE UPPER(ColumnName)='HOLDADDRESS_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL WHERE AD_Element_ID=200273 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_InfoColumn SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL WHERE AD_Element_ID=200273 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:49:32 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_Package ADD HoldAddress_ID NUMBER(10) DEFAULT NULL +; + +UPDATE M_Package SET HoldAddress_ID = CAST(HoldAddress AS NUMBER); + +ALTER TABLE M_Package DROP COLUMN HoldAddress; + +-- Apr 19, 2013 3:50:03 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_ShippingTransaction ADD HoldAddress_ID NUMBER(10) DEFAULT NULL +; + +UPDATE M_ShippingTransaction SET HoldAddress_ID = CAST(HoldAddress AS NUMBER); + +ALTER TABLE M_ShippingTransaction DROP COLUMN HoldAddress; + +SELECT register_migration_script('201304191606_IDEMPIERE-867.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/postgresql/201211141733_IDEMPIERE-385_m_viewProduct.sql b/migration/i1.0a-release/postgresql/201211141733_IDEMPIERE-385_m_viewProduct.sql index 8df924bef8..e8e78a2a80 100644 --- a/migration/i1.0a-release/postgresql/201211141733_IDEMPIERE-385_m_viewProduct.sql +++ b/migration/i1.0a-release/postgresql/201211141733_IDEMPIERE-385_m_viewProduct.sql @@ -1,3 +1,4 @@ +DROP VIEW m_product_stock_v; CREATE OR REPLACE VIEW m_product_stock_v AS SELECT ms.isactive, ms.created, ms.createdby, ms.updated, ms.updatedby, mp.value, mp.help, ms.qtyonhand - coalesce(mr.qty,0) AS qtyavailable, ms.qtyonhand, coalesce(mr.qty,0) as qtyreserved, mp.description, mw.name AS warehouse, mw.m_warehouse_id, mw.ad_client_id, mw.ad_org_id, mp.documentnote FROM m_storageonhand ms @@ -7,6 +8,7 @@ CREATE OR REPLACE VIEW m_product_stock_v AS LEFT JOIN m_storagereservation mr ON ms.m_product_id = mr.m_product_id AND mw.m_warehouse_id = mr.m_warehouse_id AND mr.isSOTrx='Y' ORDER BY mw.name; +DROP VIEW m_product_substituterelated_v; CREATE OR REPLACE VIEW m_product_substituterelated_v AS SELECT s.ad_client_id, s.ad_org_id, s.isactive, s.created, s.createdby, s.updated, s.updatedby, s.m_product_id, s.substitute_id, 'S'::text AS rowtype, mp.name, sum(ms.qtyonhand - coalesce(mr.qty,0)) AS qtyavailable, sum(ms.qtyonhand) AS qtyonhand, coalesce(sum(mr.qty),0) AS qtyreserved, round(max(mpr.pricestd), 0) AS pricestd, mpr.m_pricelist_version_id, mw.m_warehouse_id, org.name AS orgname FROM m_substitute s diff --git a/migration/i1.0a-release/postgresql/201304041108_IDEMPIERE-788.sql b/migration/i1.0a-release/postgresql/201304041108_IDEMPIERE-788.sql new file mode 100644 index 0000000000..8490875da0 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304041108_IDEMPIERE-788.sql @@ -0,0 +1,113 @@ +-- Apr 4, 2013 10:56:47 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Switch Time Zone',200159,'D','8539c2e0-cd62-4370-9ae2-0feec520d6ef','SwitchTimeZone','Y',TO_TIMESTAMP('2013-04-04 10:56:46','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 10:56:46','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 10:56:47 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200159 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 10:57:12 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Monday',200160,'D','9f4120cb-22aa-4f16-9e86-1a27cb66b820','Monday','Y',TO_TIMESTAMP('2013-04-04 10:57:11','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 10:57:11','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 10:57:12 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200160 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:02:30 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Tuesday',200161,'D','8acbe969-a354-4772-89ce-9ba0ead46a2b','Tuesday','Y',TO_TIMESTAMP('2013-04-04 11:02:29','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:02:29','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:02:30 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200161 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:02:50 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Wednesday',200162,'D','209709d6-bb75-4a20-8e69-e5e93d95ef7f','Wednesday','Y',TO_TIMESTAMP('2013-04-04 11:02:50','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:02:50','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:02:50 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200162 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:03:14 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Thursday',200163,'D','11fcd2a1-9512-4517-8d20-aa3bfc0b198f','Thursday','Y',TO_TIMESTAMP('2013-04-04 11:03:13','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:03:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:03:14 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200163 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:03:35 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Friday',200164,'D','2024cad8-556d-481e-8aae-ed4681187f87','Friday','Y',TO_TIMESTAMP('2013-04-04 11:03:34','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:03:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:03:35 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200164 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:03:58 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Saturday',200165,'D','bab8bdc5-a283-4173-9385-9dc2de4044ae','Saturday','Y',TO_TIMESTAMP('2013-04-04 11:03:57','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:03:57','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:03:58 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200165 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:04:16 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Sunday',200166,'D','a586e26e-9daf-4aff-8a53-973bd95817ce','Sunday','Y',TO_TIMESTAMP('2013-04-04 11:04:16','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:04:16','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:04:16 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200166 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:04:39 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','5 Days',200167,'D','7b5a1228-284b-47c1-a3c0-bb1899b8cd60','5Days','Y',TO_TIMESTAMP('2013-04-04 11:04:38','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:04:38','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:04:39 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200167 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:04:59 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','Events Analysis',200168,'D','730ed6ed-ba76-4b8c-8d13-7ab27f8ad603','EventsAnalysis','Y',TO_TIMESTAMP('2013-04-04 11:04:58','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:04:58','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:04:59 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200168 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +-- Apr 4, 2013 11:05:27 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Org_ID,Created,AD_Client_ID) VALUES ('I','First Day of Week',200169,'D','98506145-5a38-4cf2-bde0-11cbff6a4ced','FirstDayofWeek','Y',TO_TIMESTAMP('2013-04-04 11:05:26','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-04-04 11:05:26','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Apr 4, 2013 11:05:27 AM COT +-- IDEMPIERE-788 , Translation support for dashboard calendar +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200169 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +SELECT register_migration_script('201304041108_IDEMPIERE-788.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304091604_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304091604_IDEMPIERE-794.sql new file mode 100644 index 0000000000..1b5be97542 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304091604_IDEMPIERE-794.sql @@ -0,0 +1,1368 @@ +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Element SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', PrintName='AD_User_C_BPartner_ID',Updated=TO_TIMESTAMP('2013-04-04 11:54:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200425 +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Column SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200425 +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL, AD_Element_ID=200425 WHERE UPPER(ColumnName)='AD_USER_C_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200425 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200425 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200425) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:54:26 AM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200425) +; + +-- Apr 4, 2013 11:54:43 AM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_BPartner_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 11:54:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210163 +; + +-- Apr 4, 2013 11:58:20 AM COT +UPDATE AD_Element SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', PrintName='AD_User_C_Greeting_ID',Updated=TO_TIMESTAMP('2013-04-04 11:58:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200427 +; + +-- Apr 4, 2013 11:58:20 AM COT +UPDATE AD_Column SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200427 +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL, AD_Element_ID=200427 WHERE UPPER(ColumnName)='AD_USER_C_GREETING_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200427 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200427 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_Field SET Name='AD_User_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200427) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 11:58:21 AM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200427) +; + +-- Apr 4, 2013 12:03:13 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_Greeting_ID', Name='AD_User_C_Greeting_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 12:03:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210164 +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', PrintName='C_BPartner_PO_PriceList_ID',Updated=TO_TIMESTAMP('2013-04-04 12:08:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200385 +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200385 +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL, AD_Element_ID=200385 WHERE UPPER(ColumnName)='C_BPARTNER_PO_PRICELIST_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200385 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200385 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_Field SET Name='C_BPartner_PO_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200385) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:08:06 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200385) +; + +-- Apr 4, 2013 12:09:04 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_BPartner_PO_PriceList_ID', Name='C_BPartner_PO_PriceList_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 12:09:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210162 +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Element SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', PrintName='SalesRep_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-04 12:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200458 +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Column SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200458 +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200458 WHERE UPPER(ColumnName)='SALESREP_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200458 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_InfoColumn SET ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200458 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_Field SET Name='SalesRep_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200458) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:13:40 PM COT +UPDATE AD_PrintFormatItem SET PrintName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200458) +; + +-- Apr 4, 2013 12:14:05 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='SalesRep_AD_Org_ID', Name='SalesRep_AD_Org_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 12:14:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210166 +; + +-- Apr 4, 2013 12:16:09 PM COT +UPDATE AD_Element SET ColumnName='SalesRep_C_BP_Location_ID',Updated=TO_TIMESTAMP('2013-04-04 12:16:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200462 +; + +-- Apr 4, 2013 12:16:09 PM COT +UPDATE AD_Column SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL WHERE AD_Element_ID=200462 +; + +-- Apr 4, 2013 12:16:10 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL, AD_Element_ID=200462 WHERE UPPER(ColumnName)='SALESREP_C_BP_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 12:16:10 PM COT +UPDATE AD_Process_Para SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL WHERE AD_Element_ID=200462 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:16:10 PM COT +UPDATE AD_InfoColumn SET ColumnName='SalesRep_C_BP_Location_ID', Name='Sales Representative Location', Description=NULL, Help=NULL WHERE AD_Element_ID=200462 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 12:16:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='SalesRep_C_BP_Location_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 12:16:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210167 +; + +-- Apr 4, 2013 2:28:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:28:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=201273 +; + +-- Apr 4, 2013 2:29:42 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:29:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210165 +; + +-- Apr 4, 2013 2:30:50 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:30:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210168 +; + +-- Apr 4, 2013 2:33:07 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:33:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210171 +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Element SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', PrintName='C_Invoice_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-04 14:35:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200544 +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Column SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200544 +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200544 WHERE UPPER(ColumnName)='C_INVOICE_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200544 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200544 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_Field SET Name='C_Invoice_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200544) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:35:08 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_Invoice_AD_Org_ID', Name='C_Invoice_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200544) +; + +-- Apr 4, 2013 2:35:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:35:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210169 +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Element SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', PrintName='C_Payment_C_Charge_ID',Updated=TO_TIMESTAMP('2013-04-04 14:36:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200564 +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Column SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200564 +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL, AD_Element_ID=200564 WHERE UPPER(ColumnName)='C_PAYMENT_C_CHARGE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200564 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200564 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_Field SET Name='C_Payment_C_Charge_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200564) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:36:58 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_Payment_C_Charge_ID', Name='C_Payment_C_Charge_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200564) +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Element SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', PrintName='C_Payment_C_Invoice_ID',Updated=TO_TIMESTAMP('2013-04-04 14:38:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200566 +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Column SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200566 +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL, AD_Element_ID=200566 WHERE UPPER(ColumnName)='C_PAYMENT_C_INVOICE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200566 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200566 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_Field SET Name='C_Payment_C_Invoice_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200566) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:38:14 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_Payment_C_Invoice_ID', Name='C_Payment_C_Invoice_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200566) +; + +-- Apr 4, 2013 2:39:28 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210176 +; + +-- Apr 4, 2013 2:40:07 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:40:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210175 +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Element SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', PrintName='C_PaymentTerm_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-04 14:43:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200558 +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Column SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200558 +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200558 WHERE UPPER(ColumnName)='C_PAYMENTTERM_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200558 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200558 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_Field SET Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200558) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:43:11 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200558) +; + +-- Apr 4, 2013 2:43:59 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:43:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210174 +; + +-- Apr 4, 2013 2:44:41 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:44:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210172 +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Element SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', PrintName='AD_User_AD_OrgTrx_ID',Updated=TO_TIMESTAMP('2013-04-04 14:53:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200423 +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Column SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200423 +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL, AD_Element_ID=200423 WHERE UPPER(ColumnName)='AD_USER_AD_ORGTRX_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200423 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200423 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_Field SET Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200423) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:53:01 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200423) +; + +-- Apr 4, 2013 2:53:30 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:53:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210182 +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Element SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', PrintName='AD_User_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-04 14:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200422 +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Column SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200422 +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200422 WHERE UPPER(ColumnName)='AD_USER_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200422 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200422 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:55:03 PM COT +UPDATE AD_Field SET Name='AD_User_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200422) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 2:55:04 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_AD_Org_ID', Name='AD_User_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200422) +; + +-- Apr 4, 2013 2:55:33 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 14:55:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210181 +; + +-- Apr 4, 2013 3:21:57 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='BPartner_Parent_ID', Name='BPartner_Parent_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 15:21:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210177 +; + +-- Apr 4, 2013 3:21:57 PM COT +UPDATE AD_Field SET Name='BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=210177 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_BP_Group_ID', Name='C_BPartner_C_BP_Group_ID', PrintName='C_BPartner_C_BP_Group_ID',Updated=TO_TIMESTAMP('2013-04-04 15:33:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200349 +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Column SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=210178 +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL, AD_Element_ID=200349 WHERE UPPER(ColumnName)='C_BP_GROUP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200349 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BP_Group_ID', Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200349 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_Field SET Name='C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200349) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:33:09 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BP_Group_ID', Name='C_BP_Group_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200349) +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', PrintName='C_BPartner_C_Dunning_ID',Updated=TO_TIMESTAMP('2013-04-04 15:38:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200978 +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200978 +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL, AD_Element_ID=200978 WHERE UPPER(ColumnName)='C_BPartner_C_Dunning_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200978 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200978 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_Dunning_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200978) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:38:14 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_Dunning_ID', Name='C_BPartner_C_Dunning_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200978) +; + +-- Apr 4, 2013 3:39:45 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 15:39:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210179 +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Element SET Name='C_BPartner_InvoiceSchedule_ID', PrintName='C_BPartner_InvoiceSchedule_ID',Updated=TO_TIMESTAMP('2013-04-04 15:42:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200980 +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Column SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200980 +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Process_Para SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL, AD_Element_ID=200980 WHERE UPPER(ColumnName)='BP_C_INVOICESCHEDULE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Process_Para SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200980 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_InfoColumn SET ColumnName='bp_c_invoiceschedule_id', Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200980 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_Field SET Name='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200980) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:42:08 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_InvoiceSchedule_ID', Name='C_BPartner_InvoiceSchedule_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200980) +; + +-- Apr 4, 2013 3:42:31 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_InvoiceSchedule_ID', Name='C_BPartner_InvoiceSchedule_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 15:42:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210180 +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', PrintName='C_BPartner_SalesRep_ID',Updated=TO_TIMESTAMP('2013-04-04 15:46:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200389 +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200389 +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL, AD_Element_ID=200389 WHERE UPPER(ColumnName)='C_BPARTNER_SALESREP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200389 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200389 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_Field SET Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200389) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:46:57 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200389) +; + +-- Apr 4, 2013 3:47:31 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_BPartner_SalesRep_ID', Name='C_BPartner_SalesRep_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 15:47:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=203538 +; + +-- Apr 4, 2013 3:47:31 PM COT +UPDATE AD_Field SET Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=203538 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:55:36 PM COT +UPDATE AD_Column SET AD_Element_ID=200348, ColumnName='c_bpartner_bpartner_parent_id', Description=NULL, Help=NULL, Name='c_bpartner_bpartner_parent_id',Updated=TO_TIMESTAMP('2013-04-04 15:55:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210177 +; + +-- Apr 4, 2013 3:55:36 PM COT +UPDATE AD_Field SET Name='c_bpartner_bpartner_parent_id', Description=NULL, Help=NULL WHERE AD_Column_ID=210177 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', PrintName='C_BPartner_BPartner_Parent_ID',Updated=TO_TIMESTAMP('2013-04-04 15:56:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200348 +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200348 +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL, AD_Element_ID=200348 WHERE UPPER(ColumnName)='C_BPARTNER_BPARTNER_PARENT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200348 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200348 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_Field SET Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200348) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 3:56:57 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_BPartner_Parent_ID', Name='C_BPartner_BPartner_Parent_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200348) +; + +-- Apr 4, 2013 3:59:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-04 15:59:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210178 +; + +-- Apr 4, 2013 4:06:17 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200351, ColumnName='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL, Name='C_BPartner_InvoiceSchedule_ID',Updated=TO_TIMESTAMP('2013-04-04 16:06:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210180 +; + +-- Apr 4, 2013 4:08:47 PM COT +UPDATE AD_Column SET AD_Element_ID=200389, ColumnName='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL, Name='C_BPartner_SalesRep_ID',Updated=TO_TIMESTAMP('2013-04-04 16:08:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=203538 +; + +-- Apr 4, 2013 4:12:32 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:12:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205741 +; + +-- Apr 4, 2013 4:15:01 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:15:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205915 +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Element SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', PrintName='AD_User_Supervisor_ID',Updated=TO_TIMESTAMP('2013-04-04 16:19:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200439 +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Column SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200439 +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL, AD_Element_ID=200439 WHERE UPPER(ColumnName)='AD_USER_SUPERVISOR_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200439 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200439 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_Field SET Name='AD_User_Supervisor_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200439) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:19:51 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_Supervisor_ID', Name='AD_User_Supervisor_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200439) +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', PrintName='C_BPartner_AD_OrgBP_ID',Updated=TO_TIMESTAMP('2013-04-04 16:24:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200346 +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200346 +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL, AD_Element_ID=200346 WHERE UPPER(ColumnName)='C_BPARTNER_AD_ORGBP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200346 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200346 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_Field SET Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200346) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:24:28 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_AD_OrgBP_ID', Name='C_BPartner_AD_OrgBP_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200346) +; + +-- Apr 4, 2013 4:26:14 PM COT +UPDATE AD_Column SET AD_Element_ID=200346, ColumnName='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL, Name='C_BPartner_AD_OrgBP_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:26:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205820 +; + +-- Apr 4, 2013 4:26:14 PM COT +UPDATE AD_Field SET Name='C_BPartner_AD_OrgBP_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205820 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:26:38 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-04 16:26:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205820 +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Element SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', PrintName='AD_User_C_BPartner_Location_ID',Updated=TO_TIMESTAMP('2013-04-04 16:30:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200426 +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Column SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200426 +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL, AD_Element_ID=200426 WHERE UPPER(ColumnName)='AD_USER_C_BPARTNER_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Process_Para SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200426 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_InfoColumn SET ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200426 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_Location_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200426) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:30:05 PM COT +UPDATE AD_PrintFormatItem SET PrintName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200426) +; + +-- Apr 4, 2013 4:30:37 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_BPartner_Location_ID', Name='AD_User_C_BPartner_Location_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:30:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205916 +; + +-- Apr 4, 2013 4:36:29 PM COT +UPDATE AD_Column SET AD_Element_ID=200347, ColumnName='c_bpartner_ad_org_id', Description=NULL, Help=NULL, Name='c_bpartner_ad_org_id', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205821 +; + +-- Apr 4, 2013 4:36:29 PM COT +UPDATE AD_Field SET Name='c_bpartner_ad_org_id', Description=NULL, Help=NULL WHERE AD_Column_ID=205821 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', PrintName='C_BPartner_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-04 16:37:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200347 +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200347 +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200347 WHERE UPPER(ColumnName)='C_BPARTNER_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200347 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200347 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_Field SET Name='C_BPartner_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200347) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:37:04 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200347) +; + +-- Apr 4, 2013 4:37:51 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_BPartner_AD_Org_ID', Name='C_BPartner_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-04 16:37:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205821 +; + +-- Apr 4, 2013 4:39:28 PM COT +UPDATE AD_Column SET AD_Element_ID=200348, ColumnName='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL, Name='C_BPartner_BPartner_Parent_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205822 +; + +-- Apr 4, 2013 4:39:28 PM COT +UPDATE AD_Field SET Name='C_BPartner_BPartner_Parent_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205822 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:39:45 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-04 16:39:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205822 +; + +-- Apr 4, 2013 4:43:38 PM COT +UPDATE AD_Column SET AD_Element_ID=200349, ColumnName='C_BPartner_C_BP_Group_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_BP_Group_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:43:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205823 +; + +-- Apr 4, 2013 4:43:38 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_BP_Group_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205823 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 4:45:03 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-04 16:45:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205823 +; + +-- Apr 4, 2013 4:49:01 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 16:49:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205824 +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', PrintName='C_BPartner_C_Greeting_ID',Updated=TO_TIMESTAMP('2013-04-04 17:09:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200350 +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200350 +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL, AD_Element_ID=200350 WHERE UPPER(ColumnName)='C_BPARTNER_C_GREETING_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200350 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200350 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200350) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:09:18 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_Greeting_ID', Name='C_BPartner_C_Greeting_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200350) +; + +-- Apr 4, 2013 5:10:14 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200350, ColumnName='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_Greeting_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 17:10:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205825 +; + +-- Apr 4, 2013 5:10:14 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_Greeting_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205825 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:13:00 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200351, ColumnName='C_BPartner_InvoiceSchedule_ID', Description=NULL, Help=NULL, Name='C_BPartner_InvoiceSchedule_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 17:13:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205826 +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', PrintName='C_BPartner_C_PaymentTerm_ID',Updated=TO_TIMESTAMP('2013-04-04 17:22:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200352 +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200352 +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL, AD_Element_ID=200352 WHERE UPPER(ColumnName)='C_BPARTNER_C_PAYMENTTERM_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200352 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200352 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200352) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:22:11 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_PaymentTerm_ID', Name='C_BPartner_C_PaymentTerm_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200352) +; + +-- Apr 4, 2013 5:27:02 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200352, ColumnName='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_PaymentTerm_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 17:27:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205827 +; + +-- Apr 4, 2013 5:27:02 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_PaymentTerm_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205827 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', PrintName='C_BPartner_C_TaxGroup_ID',Updated=TO_TIMESTAMP('2013-04-04 17:31:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200355 +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200355 +; + +-- Apr 4, 2013 5:31:07 PM COT + +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL, AD_Element_ID=200355 WHERE UPPER(ColumnName)='C_BPARTNER_C_TAXGROUP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200355 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200355 AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200355) AND IsCentrallyMaintained='Y' +; + +-- Apr 4, 2013 5:31:07 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_C_TaxGroup_ID', Name='C_BPartner_C_TaxGroup_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200355) +; + +-- Apr 4, 2013 5:32:32 PM COT +UPDATE AD_Column SET AD_Element_ID=200355, ColumnName='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL, Name='C_BPartner_C_TaxGroup_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-04 17:32:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205830 +; + +-- Apr 4, 2013 5:32:32 PM COT +UPDATE AD_Field SET Name='C_BPartner_C_TaxGroup_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205830 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200406, ColumnName='c_bpartner_location_ad_org_id', Description=NULL, Help=NULL, Name='c_bpartner_location_ad_org_id', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 16:44:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205880 +; + +-- Apr 5, 2013 4:44:44 PM COT +UPDATE AD_Field SET Name='c_bpartner_location_ad_org_id', Description=NULL, Help=NULL WHERE AD_Column_ID=205880 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', PrintName='C_BPartner_Location_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-05 16:44:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200406 +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200406 +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL, AD_Element_ID=200406 WHERE UPPER(ColumnName)='C_BPARTNER_LOCATION_AD_ORG_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200406 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200406 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_Field SET Name='C_BPartner_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200406) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 4:44:57 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_Location_AD_Org_ID', Name='C_BPartner_Location_AD_Org_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200406) +; + +-- Apr 5, 2013 5:02:21 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 17:02:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205881 +; + +-- Apr 5, 2013 5:03:18 PM COT +UPDATE AD_Element SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', PrintName='BP_Location_C_SalesRegion_ID',Updated=TO_TIMESTAMP('2013-04-05 17:03:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=201621 +; + +-- Apr 5, 2013 5:03:18 PM COT +UPDATE AD_Column SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=201621 +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_Process_Para SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL, AD_Element_ID=201621 WHERE UPPER(ColumnName)='BP_LOCATION_C_SALESREGION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_Process_Para SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=201621 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_InfoColumn SET ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=201621 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_Field SET Name='BP_Location_C_SalesRegion_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=201621) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:03:19 PM COT +UPDATE AD_PrintFormatItem SET PrintName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=201621) +; + +-- Apr 5, 2013 5:03:28 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='BP_Location_C_SalesRegion_ID', Name='BP_Location_C_SalesRegion_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 17:03:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205884 +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', PrintName='C_BPartner_Logo_ID',Updated=TO_TIMESTAMP('2013-04-05 17:04:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200376 +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200376 +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL, AD_Element_ID=200376 WHERE UPPER(ColumnName)='C_BPARTNER_LOGO_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200376 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200376 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_Field SET Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200376) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:04:56 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_Logo_ID', Name='C_BPartner_Logo_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200376) +; + +-- Apr 5, 2013 5:05:10 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200376, ColumnName='C_BPartner_Logo_ID', Description=NULL, Help=NULL, Name='C_BPartner_Logo_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 17:05:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205851 +; + +-- Apr 5, 2013 5:05:10 PM COT +UPDATE AD_Field SET Name='C_BPartner_Logo_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205851 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', PrintName='C_BPartner_M_DiscountSchema_ID',Updated=TO_TIMESTAMP('2013-04-05 17:07:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200377 +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200377 +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL, AD_Element_ID=200377 WHERE UPPER(ColumnName)='C_BPARTNER_M_DISCOUNTSCHEMA_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200377 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200377 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200377) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:07:35 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_M_DiscountSchema_ID', Name='C_BPartner_M_DiscountSchema_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200377) +; + +-- Apr 5, 2013 5:07:43 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200377, ColumnName='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL, Name='C_BPartner_M_DiscountSchema_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 17:07:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205852 +; + +-- Apr 5, 2013 5:07:43 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_DiscountSchema_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205852 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Element SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', PrintName='C_BPartner_M_PriceList_ID',Updated=TO_TIMESTAMP('2013-04-05 17:08:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=200378 +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Column SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200378 +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL, AD_Element_ID=200378 WHERE UPPER(ColumnName)='C_BPARTNER_M_PRICELIST_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Process_Para SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200378 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_InfoColumn SET ColumnName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Element_ID=200378 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=200378) AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:08:59 PM COT +UPDATE AD_PrintFormatItem SET PrintName='C_BPartner_M_PriceList_ID', Name='C_BPartner_M_PriceList_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=200378) +; + +-- Apr 5, 2013 5:09:23 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200378, ColumnName='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL, Name='C_BPartner_M_PriceList_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 17:09:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205853 +; + +-- Apr 5, 2013 5:09:23 PM COT +UPDATE AD_Field SET Name='C_BPartner_M_PriceList_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205853 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 5:20:34 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=1717, ColumnName='PO_DiscountSchema_ID', Description='Schema to calculate the purchase trade discount percentage', Help=NULL, Name='PO Discount Schema', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 17:20:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205857 +; + +-- Apr 5, 2013 5:20:34 PM COT +UPDATE AD_Field SET Name='PO Discount Schema', Description='Schema to calculate the purchase trade discount percentage', Help=NULL WHERE AD_Column_ID=205857 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:08:15 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=1576, ColumnName='PO_PaymentTerm_ID', Description='Payment rules for a purchase order', Help='The PO Payment Term indicates the payment term that will be used when this purchase order becomes an invoice.', Name='PO Payment Term', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 18:08:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205858 +; + +-- Apr 5, 2013 6:08:15 PM COT +UPDATE AD_Field SET Name='PO Payment Term', Description='Payment rules for a purchase order', Help='The PO Payment Term indicates the payment term that will be used when this purchase order becomes an invoice.' WHERE AD_Column_ID=205858 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:09:24 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=480, ColumnName='PO_PriceList_ID', Description='Price List used by this Business Partner', Help='Identifies the price list used by a Vendor for products purchased by this organization.', Name='Purchase Pricelist', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 18:09:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205859 +; + +-- Apr 5, 2013 6:09:24 PM COT +UPDATE AD_Field SET Name='Purchase Pricelist', Description='Price List used by this Business Partner', Help='Identifies the price list used by a Vendor for products purchased by this organization.' WHERE AD_Column_ID=205859 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:10:37 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, AD_Element_ID=200389, ColumnName='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL, Name='C_BPartner_SalesRep_ID', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 18:10:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205863 +; + +-- Apr 5, 2013 6:10:37 PM COT +UPDATE AD_Field SET Name='C_BPartner_SalesRep_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205863 AND IsCentrallyMaintained='Y' +; + +-- Apr 5, 2013 6:11:02 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-05 18:11:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205749 +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Column SET ColumnName='C_Greeting_AD_Org_ID', Name='C_Greeting_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-08 15:16:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205876 +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Field SET Name='C_Greeting_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205876 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Column SET ColumnName='C_Location_AD_Org_ID', Name='C_Location_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-08 15:16:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205901 +; + +-- Apr 8, 2013 3:16:06 PM COT +UPDATE AD_Field SET Name='C_Location_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205901 AND IsCentrallyMaintained='Y' +; +-- Apr 8, 2013 3:30:12 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_PaymentTerm_AD_Org_ID', Name='C_PaymentTerm_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-08 15:30:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205797 +; + +-- Apr 8, 2013 3:30:12 PM COT +UPDATE AD_Field SET Name='C_PaymentTerm_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205797 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 3:36:17 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_User_Greeting_AD_Org_ID', Name='C_User_Greeting_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-08 15:36:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205932 +; + +-- Apr 8, 2013 3:36:17 PM COT +UPDATE AD_Field SET Name='C_User_Greeting_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205932 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 3:56:27 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_DropShip_BPartner_ID', Name='C_Order_DropShip_BPartner_ID',Updated=TO_TIMESTAMP('2013-04-08 15:56:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205757 +; + +-- Apr 8, 2013 3:56:27 PM COT +UPDATE AD_Field SET Name='C_Order_DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Column_ID=205757 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:04:15 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_DropShip_Location_ID', Name='Drop Shipment Location',Updated=TO_TIMESTAMP('2013-04-08 16:04:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205758 +; + +-- Apr 8, 2013 4:04:15 PM COT +UPDATE AD_Field SET Name='Drop Shipment Location', Description='Business Partner Location for shipping to', Help=NULL WHERE AD_Column_ID=205758 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:11:55 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_DropShip_User_ID', Name='Drop Shipment Contact',Updated=TO_TIMESTAMP('2013-04-08 16:11:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205759 +; + +-- Apr 8, 2013 4:11:55 PM COT +UPDATE AD_Field SET Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Column_ID=205759 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:14:08 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_Link_Order_ID', Name='Linked Order',Updated=TO_TIMESTAMP('2013-04-08 16:14:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205773 +; + +-- Apr 8, 2013 4:14:08 PM COT +UPDATE AD_Field SET Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Column_ID=205773 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:14:58 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='M_Warehouse_AD_Org_ID', Name='M_Warehouse_AD_Org_ID',Updated=TO_TIMESTAMP('2013-04-08 16:14:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205787 +; + +-- Apr 8, 2013 4:14:58 PM COT +UPDATE AD_Field SET Name='M_Warehouse_AD_Org_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205787 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:17:56 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='M_WarehouseSource_ID', Name='Source Warehouse',Updated=TO_TIMESTAMP('2013-04-08 16:17:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205792 +; + +-- Apr 8, 2013 4:17:56 PM COT +UPDATE AD_Field SET Name='Source Warehouse', Description='Optional Warehouse to replenish from', Help='If defined, the warehouse selected is used to replenish the product(s)' WHERE AD_Column_ID=205792 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 4:22:07 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='Pay_BPartner_ID',Updated=TO_TIMESTAMP('2013-04-08 16:22:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205776 +; + + +-- Apr 8, 2013 5:27:37 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_Ref_Order_ID', Name='C_Order_Ref_Order_ID',Updated=TO_TIMESTAMP('2013-04-08 17:27:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205783 +; + +-- Apr 8, 2013 5:27:37 PM COT +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Field SET Name='C_Order_Ref_Order_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205783 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:30:29 PM COT +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET AD_Reference_ID=19, ColumnName='C_Order_User1_ID ', Name='C_Order_User1_ID ',Updated=TO_TIMESTAMP('2013-04-08 17:30:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205785 +; + +-- Apr 8, 2013 5:30:29 PM COT +UPDATE AD_Field SET Name='C_Order_User1_ID ', Description=NULL, Help=NULL WHERE AD_Column_ID=205785 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:30:39 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_Order_User1_ID', Name='C_Order_User1_ID',Updated=TO_TIMESTAMP('2013-04-08 17:30:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=205785 +; + +-- Apr 8, 2013 5:30:39 PM COT +UPDATE AD_Field SET Name='C_Order_User1_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=205785 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:51:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='C_OrderLine_User1_ID', Name='C_OrderLine_User1_ID',Updated=TO_TIMESTAMP('2013-04-08 17:51:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=210184 +; + +-- Apr 8, 2013 5:51:47 PM COT +UPDATE AD_Field SET Name='C_OrderLine_User1_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=210184 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:56:09 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_AD_OrgTrx_ID', Name='AD_User_AD_OrgTrx_ID',Updated=TO_TIMESTAMP('2013-04-08 17:56:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=206959 +; + +-- Apr 8, 2013 5:56:09 PM COT +UPDATE AD_Field SET Name='AD_User_AD_OrgTrx_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=206959 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 5:56:39 PM COT +UPDATE AD_Column SET AD_Reference_ID=19, ColumnName='AD_User_C_BPartner_ID ', Name='AD_User_C_BPartner_ID ',Updated=TO_TIMESTAMP('2013-04-08 17:56:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=206961 +; + +-- Apr 8, 2013 5:56:39 PM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_ID ', Description=NULL, Help=NULL WHERE AD_Column_ID=206961 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 6:10:25 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, ColumnName='AD_User_C_BPartner_ID', Name='AD_User_C_BPartner_ID',Updated=TO_TIMESTAMP('2013-04-08 18:10:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=206961 +; + +-- Apr 8, 2013 6:10:25 PM COT +UPDATE AD_Field SET Name='AD_User_C_BPartner_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=206961 AND IsCentrallyMaintained='Y' +; + +-- Apr 8, 2013 6:49:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:49:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57593 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57598 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57597 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59577 +; + + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207021 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207205 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207056 +; + +-- Apr 8, 2013 6:58:48 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,FieldLength=10, Name='C_OrderLine_M_Shipper_ID',Updated=TO_TIMESTAMP('2013-04-08 18:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=207056 +; + +-- Apr 8, 2013 7:56:10 PM COT +UPDATE AD_Column SET AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-08 19:56:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=57338 +; + +-- Apr 8, 2013 7:57:52 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-08 19:57:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=204815 +; + +-- Apr 8, 2013 7:57:52 PM COT +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-08 19:57:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=204815 +; + +-- Apr 9, 2013 10:07:55 AM COT +UPDATE AD_Column SET ColumnName='DropShip_User_ID',Updated=TO_TIMESTAMP('2013-04-09 10:07:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205759 +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Element SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', PrintName='DropShip_BPartner_ID',Updated=TO_TIMESTAMP('2013-04-09 10:39:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53458 +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Column SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Element_ID=53458 +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.', AD_Element_ID=53458 WHERE UPPER(ColumnName)='DROPSHIP_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Element_ID=53458 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_InfoColumn SET ColumnName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Element_ID=53458 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:39:53 AM COT +UPDATE AD_Field SET Name='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53458) AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:39:54 AM COT +UPDATE AD_PrintFormatItem SET PrintName='DropShip_BPartner_ID', Name='DropShip_BPartner_ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53458) +; + +-- Apr 9, 2013 10:40:50 AM COT +UPDATE AD_Column SET ColumnName='AD_Client_ID',Updated=TO_TIMESTAMP('2013-04-09 10:40:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7086 +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Element SET ColumnName='DropShip_User_ID',Updated=TO_TIMESTAMP('2013-04-09 10:53:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53460 +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Column SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Element_ID=53460 +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL, AD_Element_ID=53460 WHERE UPPER(ColumnName)='DROPSHIP_USER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_Process_Para SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Element_ID=53460 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 10:53:45 AM COT +UPDATE AD_InfoColumn SET ColumnName='DropShip_User_ID', Name='Drop Shipment Contact', Description='Business Partner Contact for drop shipment', Help=NULL WHERE AD_Element_ID=53460 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Element SET ColumnName='Link_Order_ID',Updated=TO_TIMESTAMP('2013-04-09 11:05:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53462 +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Column SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Element_ID=53462 +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Process_Para SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL, AD_Element_ID=53462 WHERE UPPER(ColumnName)='LINK_ORDER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_Process_Para SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Element_ID=53462 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 11:05:15 AM COT +UPDATE AD_InfoColumn SET ColumnName='Link_Order_ID', Name='Linked Order', Description='This field links a sales order to the purchase order that is generated from it.', Help=NULL WHERE AD_Element_ID=53462 AND IsCentrallyMaintained='Y' +; + + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Element SET ColumnName='Pay_Location_ID',Updated=TO_TIMESTAMP('2013-04-09 11:08:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2421 +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Column SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL WHERE AD_Element_ID=2421 +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Process_Para SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL, AD_Element_ID=2421 WHERE UPPER(ColumnName)='PAY_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_Process_Para SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL WHERE AD_Element_ID=2421 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 11:08:36 AM COT +UPDATE AD_InfoColumn SET ColumnName='Pay_Location_ID', Name='Payment Location', Description='Location of the Business Partner responsible for the payment', Help=NULL WHERE AD_Element_ID=2421 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 12:06:58 PM COT +UPDATE AD_Column SET AD_Element_ID=455, ColumnName='M_Shipper_ID', Description='Method or manner of product delivery', Help='The Shipper indicates the method of delivering product', Name='Shipper',Updated=TO_TIMESTAMP('2013-04-09 12:06:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +-- Apr 9, 2013 12:06:58 PM COT +UPDATE AD_Field SET Name='Shipper', Description='Method or manner of product delivery', Help='The Shipper indicates the method of delivering product' WHERE AD_Column_ID=208087 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 1:43:32 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200037,Updated=TO_TIMESTAMP('2013-04-09 13:43:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208053 +; + +-- Apr 9, 2013 2:10:48 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200037,Updated=TO_TIMESTAMP('2013-04-09 14:10:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +-- Apr 9, 2013 2:31:03 PM COT +UPDATE AD_Column SET AD_Element_ID=201126, ColumnName='C_OrderLine_M_Shipper_ID', Description=NULL, Help=NULL, Name='C_OrderLine_M_Shipper_ID',Updated=TO_TIMESTAMP('2013-04-09 14:31:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +-- Apr 9, 2013 2:31:03 PM COT +UPDATE AD_Field SET Name='C_OrderLine_M_Shipper_ID', Description=NULL, Help=NULL WHERE AD_Column_ID=208087 AND IsCentrallyMaintained='Y' +; + +-- Apr 9, 2013 2:39:53 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=271,Updated=TO_TIMESTAMP('2013-04-09 14:39:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210206 +; + +SELECT register_migration_script('201304091604_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304101720_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304101720_IDEMPIERE-794.sql new file mode 100644 index 0000000000..f18610cd92 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304101720_IDEMPIERE-794.sql @@ -0,0 +1,16 @@ +-- Apr 10, 2013 5:13:51 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=271,Updated=TO_TIMESTAMP('2013-04-10 17:13:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204815 +; + +-- Apr 10, 2013 5:14:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290,Updated=TO_TIMESTAMP('2013-04-10 17:14:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204935 +; + +-- Apr 12, 2013 8:04:22 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_Value_ID=200037, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-12 20:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=204935 +; + +SELECT register_migration_script('201304101720_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304111530_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304111530_IDEMPIERE-794.sql new file mode 100644 index 0000000000..2104c1aaae --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304111530_IDEMPIERE-794.sql @@ -0,0 +1,22 @@ +-- Apr 11, 2013 3:33:35 PM COT +UPDATE AD_ReportView SET WhereClause='(QtyToDeliver<>0 OR QtyToInvoice<>0) AND RV_OrderDetail.DocStatus NOT IN (''VO'',''CL'')',Updated=TO_TIMESTAMP('2013-04-11 15:33:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=104 +; + +-- Apr 12, 2013 8:20:50 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-12 20:20:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208053 +; + +-- Apr 12, 2013 8:21:42 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_Value_ID=134, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-12 20:21:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210206 +; + +-- Apr 12, 2013 8:22:05 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-12 20:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208087 +; + +SELECT register_migration_script('201304111530_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304111600_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304111600_IDEMPIERE-794.sql new file mode 100644 index 0000000000..40672060e6 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304111600_IDEMPIERE-794.sql @@ -0,0 +1,11 @@ +-- Apr 11, 2013 3:57:16 PM COT +UPDATE AD_ReportView SET WhereClause='RV_InOutDetails.IsSOTrx=''N''',Updated=TO_TIMESTAMP('2013-04-11 15:57:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=152 +; + +-- Apr 11, 2013 3:57:24 PM COT +UPDATE AD_ReportView SET WhereClause='RV_InOutDetails.IsSOTrx=''Y''',Updated=TO_TIMESTAMP('2013-04-11 15:57:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=151 +; + +SELECT register_migration_script('201304111600_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304121120_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304121120_IDEMPIERE-794.sql new file mode 100644 index 0000000000..96d1b5072d --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304121120_IDEMPIERE-794.sql @@ -0,0 +1,11 @@ +-- Apr 12, 2013 10:41:36 AM COT +UPDATE AD_Column SET AD_Reference_Value_ID=170,Updated=TO_TIMESTAMP('2013-04-12 10:41:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205479 +; + +-- Apr 13, 2013 10:53:48 AM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 10:53:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205479 +; + +SELECT register_migration_script('201304121120_IDEMPIERE-794.sql') FROM dual +; diff --git a/migration/i1.0a-release/postgresql/201304121145_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304121145_IDEMPIERE-794.sql new file mode 100644 index 0000000000..f8bf5cabca --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304121145_IDEMPIERE-794.sql @@ -0,0 +1,6 @@ +-- Apr 12, 2013 11:41:32 AM COT +UPDATE AD_ReportView SET WhereClause='NOT EXISTS (SELECT * FROM C_AllocationLine al WHERE al.C_Invoice_ID=RV_C_Invoice.C_Invoice_ID) AND RV_C_Invoice.DocStatus IN (''CO'',''CL'')',Updated=TO_TIMESTAMP('2013-04-12 11:41:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ReportView_ID=154 +; + +SELECT register_migration_script('201304121145_IDEMPIERE-794.sql') FROM dual +; diff --git a/migration/i1.0a-release/postgresql/201304121710_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304121710_IDEMPIERE-794.sql new file mode 100644 index 0000000000..2e22c7650c --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304121710_IDEMPIERE-794.sql @@ -0,0 +1,7 @@ +-- Apr 12, 2013 5:03:05 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200060, AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-12 17:03:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208337 +; + +SELECT register_migration_script('201304121710_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304131343_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304131343_IDEMPIERE-794.sql new file mode 100644 index 0000000000..97729e7c98 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304131343_IDEMPIERE-794.sql @@ -0,0 +1,575 @@ +-- Apr 13, 2013 12:59:40 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2013-04-13 12:59:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50212 +; + +-- Apr 13, 2013 1:00:45 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138,Updated=TO_TIMESTAMP('2013-04-13 13:00:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210163 +; + +-- Apr 13, 2013 1:01:00 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356,Updated=TO_TIMESTAMP('2013-04-13 13:01:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210164 +; + +-- Apr 13, 2013 1:01:37 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166,Updated=TO_TIMESTAMP('2013-04-13 13:01:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210162 +; + +-- Apr 13, 2013 1:02:22 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=259,Updated=TO_TIMESTAMP('2013-04-13 13:02:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=201273 +; + +-- Apr 13, 2013 1:02:49 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210165 +; + +-- Apr 13, 2013 1:03:07 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:03:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210166 +; + +-- Apr 13, 2013 1:03:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227,Updated=TO_TIMESTAMP('2013-04-13 13:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210168 +; + +-- Apr 13, 2013 1:04:13 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=159,Updated=TO_TIMESTAMP('2013-04-13 13:04:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210167 +; + +-- Apr 13, 2013 1:04:43 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=170,Updated=TO_TIMESTAMP('2013-04-13 13:04:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210171 +; + +-- Apr 13, 2013 1:05:01 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:05:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210169 +; + +-- Apr 13, 2013 1:05:14 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200,Updated=TO_TIMESTAMP('2013-04-13 13:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210175 +; + +-- Apr 13, 2013 1:05:26 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=336,Updated=TO_TIMESTAMP('2013-04-13 13:05:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210176 +; + +-- Apr 13, 2013 1:05:39 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:05:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210174 +; + +-- Apr 13, 2013 1:06:19 PM COT +UPDATE AD_Column SET AD_Reference_ID=13,Updated=TO_TIMESTAMP('2013-04-13 13:06:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210172 +; + +-- Apr 13, 2013 1:06:49 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210181 +; + +-- Apr 13, 2013 1:06:58 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:06:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210182 +; + +-- Apr 13, 2013 1:07:50 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200045, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:07:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210178 +; + +-- Apr 13, 2013 1:09:44 PM COT +UPDATE AD_Column SET AD_Reference_ID=13,Updated=TO_TIMESTAMP('2013-04-13 13:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210177 +; + +-- Apr 13, 2013 1:10:03 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044,Updated=TO_TIMESTAMP('2013-04-13 13:10:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210179 +; + +-- Apr 13, 2013 1:10:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046,Updated=TO_TIMESTAMP('2013-04-13 13:10:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210180 +; + +-- Apr 13, 2013 1:11:04 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_TIMESTAMP('2013-04-13 13:11:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=203538 +; + +-- Apr 13, 2013 1:11:35 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:11:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205741 +; + +-- Apr 13, 2013 1:11:52 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:11:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205912 +; + +-- Apr 13, 2013 1:12:18 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138,Updated=TO_TIMESTAMP('2013-04-13 13:12:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205915 +; + +-- Apr 13, 2013 1:12:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=159,Updated=TO_TIMESTAMP('2013-04-13 13:12:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205916 +; + +-- Apr 13, 2013 1:12:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:12:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205917 +; + +-- Apr 13, 2013 1:13:44 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, AD_Reference_ID=30, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:13:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205928 +; + +-- Apr 13, 2013 1:14:29 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138,Updated=TO_TIMESTAMP('2013-04-13 13:14:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205881 +; + +-- Apr 13, 2013 1:14:41 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=144,Updated=TO_TIMESTAMP('2013-04-13 13:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205884 +; + +-- Apr 13, 2013 1:16:07 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:16:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205820 +; + +-- Apr 13, 2013 1:16:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:16:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205821 +; + +-- Apr 13, 2013 1:16:23 PM COT +UPDATE AD_Column SET AD_Reference_ID=13,Updated=TO_TIMESTAMP('2013-04-13 13:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205822 +; + +-- Apr 13, 2013 1:16:30 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200045,Updated=TO_TIMESTAMP('2013-04-13 13:16:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205823 +; + +-- Apr 13, 2013 1:16:35 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044,Updated=TO_TIMESTAMP('2013-04-13 13:16:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205824 +; + +-- Apr 13, 2013 1:16:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356,Updated=TO_TIMESTAMP('2013-04-13 13:16:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205825 +; + +-- Apr 13, 2013 1:16:47 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227,Updated=TO_TIMESTAMP('2013-04-13 13:16:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205827 +; + +-- Apr 13, 2013 1:16:58 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200047, AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-13 13:16:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205830 +; + +-- Apr 13, 2013 1:17:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046,Updated=TO_TIMESTAMP('2013-04-13 13:17:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205826 +; + +-- Apr 13, 2013 1:17:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205880 +; + +-- Apr 13, 2013 1:17:47 PM COT +UPDATE AD_Column SET AD_Reference_ID=32,Updated=TO_TIMESTAMP('2013-04-13 13:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205851 +; + +-- Apr 13, 2013 1:18:42 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249,Updated=TO_TIMESTAMP('2013-04-13 13:18:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205852 +; + +-- Apr 13, 2013 1:18:50 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166,Updated=TO_TIMESTAMP('2013-04-13 13:18:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205853 +; + +-- Apr 13, 2013 1:19:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_TIMESTAMP('2013-04-13 13:19:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205863 +; + +-- Apr 13, 2013 1:19:29 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=170,Updated=TO_TIMESTAMP('2013-04-13 13:19:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205749 +; + +-- Apr 13, 2013 1:19:46 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:19:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205876 +; + +-- Apr 13, 2013 1:20:06 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:20:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205901 +; + +-- Apr 13, 2013 1:20:13 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:20:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205797 +; + +-- Apr 13, 2013 1:20:22 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:20:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205932 +; + +-- Apr 13, 2013 1:20:42 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:20:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205757 +; + +-- Apr 13, 2013 1:21:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=159, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:21:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205758 +; + +-- Apr 13, 2013 1:21:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:21:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205759 +; + +-- Apr 13, 2013 1:22:01 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:22:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205773 +; + +-- Apr 13, 2013 1:22:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:22:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205787 +; + +-- Apr 13, 2013 1:22:39 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=197, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:22:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205792 +; + +-- Apr 13, 2013 1:23:03 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:23:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205776 +; + +-- Apr 13, 2013 1:23:27 PM COT +UPDATE AD_Column SET AD_Reference_ID=13, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:23:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205777 +; + +-- Apr 13, 2013 1:23:52 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249,Updated=TO_TIMESTAMP('2013-04-13 13:23:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205857 +; + +-- Apr 13, 2013 1:23:58 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227,Updated=TO_TIMESTAMP('2013-04-13 13:23:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205858 +; + +-- Apr 13, 2013 1:24:05 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166,Updated=TO_TIMESTAMP('2013-04-13 13:24:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205859 +; + +-- Apr 13, 2013 1:24:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290, AD_Reference_ID=30, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:24:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205783 +; + +-- Apr 13, 2013 1:24:57 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=134, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:24:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205785 +; + +-- Apr 13, 2013 1:25:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=137, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:25:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=205786 +; + +-- Apr 13, 2013 1:26:01 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=134, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:26:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210184 +; + +-- Apr 13, 2013 1:26:29 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:26:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=206959 +; + +-- Apr 13, 2013 1:26:41 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=138, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:26:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=206961 +; + +-- Apr 13, 2013 1:27:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=290, AD_Reference_ID=30,Updated=TO_TIMESTAMP('2013-04-13 13:27:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53914 +; + +-- Apr 13, 2013 1:28:02 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2013-04-13 13:28:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57593 +; + +-- Apr 13, 2013 1:28:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130,Updated=TO_TIMESTAMP('2013-04-13 13:28:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57593 +; + +-- Apr 13, 2013 1:28:55 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_TIMESTAMP('2013-04-13 13:28:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57598 +; + +-- Apr 13, 2013 1:29:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_TIMESTAMP('2013-04-13 13:29:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57597 +; + +-- Apr 13, 2013 1:29:34 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_TIMESTAMP('2013-04-13 13:29:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55489 +; + +-- Apr 13, 2013 1:29:39 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=133,Updated=TO_TIMESTAMP('2013-04-13 13:29:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55490 +; + +-- Apr 13, 2013 1:33:43 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130,Updated=TO_TIMESTAMP('2013-04-13 13:33:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59577 +; + +-- Apr 13, 2013 1:34:04 PM COT +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2013-04-13 13:34:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58991 +; + +-- Apr 13, 2013 1:34:38 PM COT +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2013-04-13 13:34:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58992 +; + +-- Apr 13, 2013 1:34:56 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_TIMESTAMP('2013-04-13 13:34:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59016 +; + +-- Apr 13, 2013 1:35:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110,Updated=TO_TIMESTAMP('2013-04-13 13:35:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56113 +; + +-- Apr 13, 2013 1:35:41 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:35:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207021 +; + +-- Apr 13, 2013 1:36:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=197, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:36:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207205 +; + +-- Apr 13, 2013 1:37:17 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=337, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:37:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207056 +; + +-- Apr 13, 2013 1:38:09 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200037, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 13:38:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=207335 +; + +-- Apr 13, 2013 1:39:00 PM COT +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_TIMESTAMP('2013-04-13 13:39:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57338 +; + +-- Apr 13, 2013 1:39:20 PM COT +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_TIMESTAMP('2013-04-13 13:39:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=57341 +; + +-- Apr 13, 2013 1:39:50 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=134, AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-13 13:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59754 +; + +-- Apr 13, 2013 1:39:56 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=137, AD_Reference_ID=18,Updated=TO_TIMESTAMP('2013-04-13 13:39:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59761 +; + +/* set columns createdby/updatedby */ +/* +SELECT c.ad_column_id, tb.tablename,c.columnname,c.ad_reference_id,c.ad_reference_value_id +FROM ad_column c + JOIN ad_table tb ON tb.ad_table_id = c.ad_table_id +WHERE c.isactive='Y' and upper(c.columnname) like '%ATEDBY' +and (coalesce(c.ad_reference_id,0)!=18 or coalesce(c.ad_reference_value_id,0)!=110) +ORDER BY 2, 3; +*/ + +update ad_column set ad_reference_id=18, ad_reference_value_id=110 +where ad_column_id in ( +55539, -- A_Asset_Reval_Index.UpdatedBy +50116, -- AD_Package_Exp_Detail.CreatedBy +50118, -- AD_Package_Exp_Detail.UpdatedBy +201408, -- C_Dunning_Header_v.ad_orginfo_createdby +201421, -- C_Dunning_Header_v.ad_orginfo_updatedby +201387, -- C_Dunning_Header_v.ad_user_createdby +201398, -- C_Dunning_Header_v.ad_user_updatedby +201295, -- C_Dunning_Header_v.c_bpartner_createdby +201349, -- C_Dunning_Header_v.c_bpartner_location_createdby +201362, -- C_Dunning_Header_v.c_bpartner_location_updatedby +201341, -- C_Dunning_Header_v.c_bpartner_updatedby +201260, -- C_Dunning_Header_v.c_dunningrunentry_createdby +201264, -- C_Dunning_Header_v.c_dunningrunentry_updatedby +201372, -- C_Dunning_Header_v.c_location_createdby +201378, -- C_Dunning_Header_v.c_location_updatedby +201453, -- C_Dunning_Header_v.salesrep_bpartner_createdby +201499, -- C_Dunning_Header_v.salesrep_bpartner_updatedby +201430, -- C_Dunning_Header_v.salesrep_createdby +201440, -- C_Dunning_Header_v.salesrep_updatedby +201520, -- C_Dunning_Line_v.c_invoice_createdby +201544, -- C_Dunning_Line_v.c_invoice_updatedby +201584, -- C_Dunning_Line_v.c_payment_createdby +201618, -- C_Dunning_Line_v.c_payment_updatedby +203613, -- C_Invoice_Header_v.ad_orginfo_createdby +203626, -- C_Invoice_Header_v.ad_orginfo_updatedby +203594, -- C_Invoice_Header_v.ad_user_createdby +203604, -- C_Invoice_Header_v.ad_user_updatedby +203661, -- C_Invoice_Header_v.bpartner_createdby +203711, -- C_Invoice_Header_v.bpartner_updatedby +203503, -- C_Invoice_Header_v.bp_createdby +203557, -- C_Invoice_Header_v.bp_location_createdby +203570, -- C_Invoice_Header_v.bp_location_updatedby +203549, -- C_Invoice_Header_v.bp_updatedby +203580, -- C_Invoice_Header_v.c_location_createdby +203585, -- C_Invoice_Header_v.c_location_updatedby +203635, -- C_Invoice_Header_v.salesrep_createdby +203647, -- C_Invoice_Header_v.salesrep_updatedby +205711, -- C_Invoice_LineTax_v.c_bp_product_createdby +205720, -- C_Invoice_LineTax_v.c_bp_product_updatedby +205587, -- C_Invoice_LineTax_v.c_invoice_createdby +205624, -- C_Invoice_LineTax_v.c_invoice_updatedby +205736, -- C_Invoice_LineTax_v.M_ASI_CreatedBy +205740, -- C_Invoice_LineTax_v.M_ASI_UpdatedBy +205651, -- C_Invoice_LineTax_v.m_product_createdby +205694, -- C_Invoice_LineTax_v.m_product_updatedby +205733, -- C_Invoice_LineTax_v.s_rassignment_updatedby +206133, -- C_Order_Header_v.ad_orginfo_createdby +206146, -- C_Order_Header_v.ad_orginfo_updatedby +205920, -- C_Order_Header_v.ad_user_createdby +205930, -- C_Order_Header_v.ad_user_updatedby +206246, -- C_Order_Header_v.bill_bp_createdby +206299, -- C_Order_Header_v.bill_bp_location_createdby +206312, -- C_Order_Header_v.bill_bp_location_updatedby +206294, -- C_Order_Header_v.bill_bp_updatedby +206321, -- C_Order_Header_v.bill_user_createdby +206331, -- C_Order_Header_v.bill_user_updatedby +205829, -- C_Order_Header_v.bp_createdby +205883, -- C_Order_Header_v.bp_location_createdby +205896, -- C_Order_Header_v.bp_location_updatedby +205874, -- C_Order_Header_v.bp_updatedby +205906, -- C_Order_Header_v.c_location_createdby +205911, -- C_Order_Header_v.c_location_updatedby +206181, -- C_Order_Header_v.salesrep_bp_createdby +206231, -- C_Order_Header_v.salesrep_bp_updatedby +206155, -- C_Order_Header_v.salesrep_createdby +206167, -- C_Order_Header_v.salesrep_updatedby +204045, -- C_Order_LineTax_v.c_bpartner_createdby +204102, -- C_Order_LineTax_v.c_bpartner_location_createdby +204115, -- C_Order_LineTax_v.c_bpartner_location_updatedby +204022, -- C_Order_LineTax_v.c_bpartner_product_createdby +204031, -- C_Order_LineTax_v.c_bpartner_product_updatedby +204096, -- C_Order_LineTax_v.c_bpartner_updatedby +203861, -- C_Order_LineTax_v.c_order_createdby +203912, -- C_Order_LineTax_v.c_order_updatedby +203921, -- C_Order_LineTax_v.m_product_createdby +203974, -- C_Order_LineTax_v.m_product_po_createdby +203995, -- C_Order_LineTax_v.m_product_po_updatedby +203965, -- C_Order_LineTax_v.m_product_updatedby +204008, -- C_Order_LineTax_v.s_resourceassignment_updatedby +206646, -- C_PaySelection_Check_v.ad_orginfo_createdby +206659, -- C_PaySelection_Check_v.ad_orginfo_updatedby +206592, -- C_PaySelection_Check_v.c_bp_createdby +206636, -- C_PaySelection_Check_v.c_bp_updatedby +206534, -- C_PaySelection_Check_v.c_payment_createdby +206575, -- C_PaySelection_Check_v.c_payment_updatedby +206491, -- C_PaySelection_Check_v.c_payselectioncheck_createdby +206499, -- C_PaySelection_Check_v.c_payselectioncheck_updatedby +206503, -- C_PaySelection_Check_v.c_payselection_createdby +206511, -- C_PaySelection_Check_v.c_payselection_updatedby +204264, -- C_PaySelection_Remittance_v.c_invoice_createdby +204296, -- C_PaySelection_Remittance_v.c_invoice_updatedby +204239, -- C_PaySelection_Remittance_v.c_payselectionline_createdby +204246, -- C_PaySelection_Remittance_v.c_payselectionline_updatedby +206682, -- C_Project_Details_v.c_project_createdby +206709, -- C_Project_Details_v.c_project_updatedby +206715, -- C_Project_Details_v.m_product_createdby +206761, -- C_Project_Details_v.m_product_updatedby +206839, -- C_Project_Header_v.ad_orginfo_createdby +206852, -- C_Project_Header_v.ad_orginfo_updatedby +206966, -- C_Project_Header_v.ad_user_createdby +206976, -- C_Project_Header_v.ad_user_updatedby +206788, -- C_Project_Header_v.c_bp_createdby +206986, -- C_Project_Header_v.c_bp_location_createdby +206999, -- C_Project_Header_v.c_bp_location_updatedby +206833, -- C_Project_Header_v.c_bp_updatedby +206901, -- C_Project_Header_v.salesrep_bp_createdby +206951, -- C_Project_Header_v.salesrep_bp_updatedby +206875, -- C_Project_Header_v.salesrep_createdby +206887, -- C_Project_Header_v.salesrep_updatedby +58981, -- I_ProductPlanning.CreatedBy +58984, -- I_ProductPlanning.UpdatedBy +207186, -- M_InOut_Header_v.ad_orginfo_createdby +207199, -- M_InOut_Header_v.ad_orginfo_updatedby +207166, -- M_InOut_Header_v.ad_user_createdby +207176, -- M_InOut_Header_v.ad_user_updatedby +207075, -- M_InOut_Header_v.c_bp_createdby +207129, -- M_InOut_Header_v.c_bp_location_createdby +207142, -- M_InOut_Header_v.c_bp_location_updatedby +207120, -- M_InOut_Header_v.c_bp_updatedby +207152, -- M_InOut_Header_v.c_location_createdby +207157, -- M_InOut_Header_v.c_location_updatedby +207317, -- M_InOut_Line_v.c_orderline_createdby +207352, -- M_InOut_Line_v.c_orderline_updatedby +207295, -- M_InOut_Line_v.M_ASI_CreatedBy +207299, -- M_InOut_Line_v.M_ASI_UpdatedBy +207236, -- M_InOut_Line_v.m_product_createdby +207280, -- M_InOut_Line_v.m_product_updatedby +57560, -- PA_ReportCube.CreatedBy +57565, -- PA_ReportCube.UpdatedBy +53739, -- PP_Order_Node_Product.UpdatedBy +5420, -- R_Request.CreatedBy +204617, -- RV_Allocation.c_allocationline_createdby +204622, -- RV_Allocation.c_allocationline_updatedby +207392, -- RV_BPartner.ad_user_createdby +207395, -- RV_BPartner.ad_user_updatedby +207374, -- RV_BPartner.c_bp_location_createdby +207387, -- RV_BPartner.c_bp_location_updatedby +207402, -- RV_BPartner.c_location_createdby +207406, -- RV_BPartner.c_location_updatedby +207447, -- RV_C_Invoice.c_bp_createdby +207505, -- RV_C_Invoice.c_bp_location_createdby +207518, -- RV_C_Invoice.c_bp_location_updatedby +207498, -- RV_C_Invoice.c_bp_updatedby +207526, -- RV_C_Invoice.c_location_createdby +207531, -- RV_C_Invoice.c_location_updatedby +204699, -- RV_C_InvoiceLine.m_product_createdby +204745, -- RV_C_InvoiceLine.m_product_updatedby +207594, -- RV_C_InvoiceTax.c_bp_createdby +207642, -- RV_C_InvoiceTax.c_bp_updatedby +207550, -- RV_C_InvoiceTax.c_invoice_createdby +207579, -- RV_C_InvoiceTax.c_invoice_updatedby +204761, -- RV_CommissionRunDetail.c_commission_createdby +204781, -- RV_CommissionRunDetail.c_commissiondetail_createdby +204784, -- RV_CommissionRunDetail.c_commissiondetail_updatedby +204771, -- RV_CommissionRunDetail.c_commission_updatedby +204775, -- RV_CommissionRunDetail.c_commmissionamt_createdby +204778, -- RV_CommissionRunDetail.c_commssionamt_updatedby +204968, -- RV_CommissionRunDetail.c_invoice_createdby +204848, -- RV_CommissionRunDetail.c_invoiceline_createdby +204874, -- RV_CommissionRunDetail.c_invoiceline_updatedby +205002, -- RV_CommissionRunDetail.c_invoice_updatedby +204901, -- RV_CommissionRunDetail.c_order_createdby +204798, -- RV_CommissionRunDetail.c_orderline_createdby +204833, -- RV_CommissionRunDetail.c_orderline_updatedby +205014, -- RV_Cost.m_product_createdby +205059, -- RV_Cost.m_product_updatedby +207718, -- RV_CostDetail.M_ASI_CreatedBy +207724, -- RV_CostDetail.M_ASI_UpdatedBy +207664, -- RV_CostDetail.m_product_createdby +207709, -- RV_CostDetail.m_product_updatedby +207753, -- RV_Fact_Acct.c_bp_createdby +207803, -- RV_Fact_Acct.c_bp_updatedby +207809, -- RV_Fact_Acct.m_product_createdby +207855, -- RV_Fact_Acct.m_product_updatedby +207907, -- RV_InOutDetails.M_ASI_CreatedBy +207911, -- RV_InOutDetails.M_ASI_UpdatedBy +207864, -- RV_InOutDetails.m_inout_createdby +207882, -- RV_InOutDetails.m_inout_updatedby +207927, -- RV_M_Transaction.m_product_createdby +207983, -- RV_M_Transaction.m_product_po_createdby +208001, -- RV_M_Transaction.m_product_po_updatedby +207975, -- RV_M_Transaction.m_product_updatedby +207914, -- RV_M_Transaction.m_transaction_createdby +207922, -- RV_M_Transaction.m_transation_updatedby +208024, -- RV_OrderDetail.c_order_createdby +208068, -- RV_OrderDetail.c_order_updatedby +208100, -- RV_OrderDetail.M_ASI_CreatedBy +208104, -- RV_OrderDetail.M_ASI_UpdatedBy +208161, -- RV_Storage.M_ASI_CreatedBy +208165, -- RV_Storage.M_ASI_UpdatedBy +208116, -- RV_Storage.m_product_createdby +208158, -- RV_Storage.m_product_updatedby +208107, -- RV_Storage.m_storage_updatedby +208324, -- RV_Transaction.c_prjctissue_createdby +208339, -- RV_Transaction.c_prjctissue_updatedby +208273, -- RV_Transaction.m_inoutline_createdby +208293, -- RV_Transaction.m_inoutline_updatedby +208228, -- RV_Transaction.m_inventoryline_createdby +208242, -- RV_Transaction.m_inventoryline_updatedby +208246, -- RV_Transaction.m_movementline_createdby +208261, -- RV_Transaction.m_movementline_updatedby +208180, -- RV_Transaction.m_product_createdby +208298, -- RV_Transaction.m_productionline_createdby +208308, -- RV_Transaction.m_productionline_updatedby +208311, -- RV_Transaction.m_productionplan_createdby +208320, -- RV_Transaction.m_productionplan_updatedby +208224, -- RV_Transaction.m_product_updatedby +208167, -- RV_Transaction.m_transaction_createdby +208171, -- RV_Transaction.m_transction_updatedby +205524, -- T_InvoiceGL_v.fact_acct_updatedby +205473, -- T_InvoiceGL_v.t_invoicegl_createdby +205477 -- T_InvoiceGL_v.t_invoicegl_updatedby +) +; + +SELECT register_migration_script('201304131343_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304131454_IDEMPIERE-794.sql b/migration/i1.0a-release/postgresql/201304131454_IDEMPIERE-794.sql new file mode 100644 index 0000000000..7612ed3cd2 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304131454_IDEMPIERE-794.sql @@ -0,0 +1,2127 @@ +-- Apr 13, 2013 2:39:11 PM COT +-- IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210217,'U','N','N','N','N',10,'N',19,'N',200976,'8a5428d7-a189-41c0-b463-fbcd5baa9d6b','N','bp_bpartner_parent_id','bp_bpartner_parent_id',TO_TIMESTAMP('2013-04-13 14:39:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:10','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:11 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210217 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:11 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('bp_c_dunning_id',202507,'U','bp_c_dunning_id','bp_c_dunning_id','f41500eb-afc6-4ded-927b-a304709929c6',TO_TIMESTAMP('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 2:39:11 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202507 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210218,'U','N','N','N','N',10,'N',19,'N',202507,'e1e394b3-5ba4-468f-9c72-f46498c4e7dd','N','bp_c_dunning_id','bp_c_dunning_id',TO_TIMESTAMP('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:11','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210218 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210219,'U','N','N','N','N',10,'N',19,'N',200980,'55f02d1d-5283-46a4-8a96-fddd9baad530','N','bp_c_invoiceschedule_id','C_BPartner_InvoiceSchedule_ID',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210219 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210220,'U','N','N','N','N',10,'N',19,'N',201018,'ff03bf8c-b3dc-4c83-8627-296cc2a79a4b','N','bp_salesrep_id','bp_salesrep_id',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:12 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210220 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('ad_user_ad_ad_orgtrx_id',202508,'U','ad_user_ad_ad_orgtrx_id','ad_user_ad_ad_orgtrx_id','a03a6695-f47d-49a1-b5b0-4ab7f9023da2',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202508 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210221,'U','N','N','N','N',10,'N',19,'N',202508,'b49260d8-c4d4-4e40-89aa-603776c57c45','N','ad_user_ad_ad_orgtrx_id','ad_user_ad_ad_orgtrx_id',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:13 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210221 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210222,'U','N','N','N','N',10,'N',10,'N',250,'898f107b-c06a-466b-be73-611cd259039b','N','CurSymbol','Symbol of the currency (opt used for printing only)','The Currency Symbol defines the symbol that will print when this currency is used.','Symbol',TO_TIMESTAMP('2013-04-13 14:39:13','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:13','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210222 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('cur_description',202509,'U','cur_description','cur_description','eca51543-f194-45b8-9c04-050b3028c1ec',TO_TIMESTAMP('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 2:39:14 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202509 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 2:39:15 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,516,210223,'U','N','N','N','N',255,'N',10,'N',202509,'e54ca6fb-80e8-4747-b972-99ef15ca03cf','N','cur_description','cur_description',TO_TIMESTAMP('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:39:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:39:15 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210223 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:42:56 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=124, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:42:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210217 +; + +-- Apr 13, 2013 2:43:12 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:43:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210218 +; + +-- Apr 13, 2013 2:43:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:43:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210219 +; + +-- Apr 13, 2013 2:43:53 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:43:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210220 +; + +-- Apr 13, 2013 2:44:32 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:44:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210221 +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Element SET EntityType='D', Name='Currency Description', PrintName='Currency Description',Updated=TO_TIMESTAMP('2013-04-13 14:45:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=202509 +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Column SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202509 +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Process_Para SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL, AD_Element_ID=202509 WHERE UPPER(ColumnName)='CUR_DESCRIPTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Process_Para SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202509 AND IsCentrallyMaintained='Y' +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_InfoColumn SET ColumnName='cur_description', Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Element_ID=202509 AND IsCentrallyMaintained='Y' +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_Field SET Name='Currency Description', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=202509) AND IsCentrallyMaintained='Y' +; + +-- Apr 13, 2013 2:45:30 PM COT +UPDATE AD_PrintFormatItem SET PrintName='Currency Description', Name='Currency Description' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=202509) +; + +-- Apr 13, 2013 2:45:37 PM COT +UPDATE AD_Column SET EntityType='D', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:45:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210223 +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210224,'U','N','N','N','N',10,'N',19,'N',200974,'9fe59660-5896-49f8-85ea-02c99612c998','N','bp_ad_orgbp_id','bp_ad_orgbp_id',TO_TIMESTAMP('2013-04-13 14:46:01','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:01','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210224 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210225,'U','N','N','N','N',10,'N',19,'N',200975,'81e4b5a4-1633-4243-9e55-16fa81b74754','N','bp_ad_org_id','bp_ad_org_id',TO_TIMESTAMP('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:02 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210225 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210226,'U','N','N','N','N',10,'N',19,'N',200976,'fc37b29b-7112-4b76-8d01-7f28074fe09d','N','bp_bpartner_parent_id','bp_bpartner_parent_id',TO_TIMESTAMP('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210226 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210227,'U','N','N','N','N',10,'N',19,'N',200977,'b28c8267-84dd-487f-8377-127b7adaedd5','N','bp_c_bp_group_id','bp_c_bp_group_id',TO_TIMESTAMP('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:03 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210227 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210228,'U','N','N','N','N',10,'N',19,'N',202507,'f963bec3-9370-41bf-b143-b1ef1c0c3542','N','bp_c_dunning_id','bp_c_dunning_id',TO_TIMESTAMP('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210228 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210229,'U','N','N','N','N',10,'N',19,'N',200979,'f867a688-b864-4b74-938b-174d85242623','N','bp_c_greeting_id','bp_c_greeting_id',TO_TIMESTAMP('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210229 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210230,'U','N','N','N','N',10,'N',19,'N',200980,'d9815838-cad2-423a-8c9c-37a256f566e3','N','bp_c_invoiceschedule_id','C_BPartner_InvoiceSchedule_ID',TO_TIMESTAMP('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:04 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210230 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210231,'U','N','N','N','N',10,'N',19,'N',200981,'8f16bd74-260c-44ce-88cc-850f3a43f66d','N','bp_c_paymentterm_id','bp_c_paymentterm_id',TO_TIMESTAMP('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210231 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210232,'U','N','N','N','N',10,'N',19,'N',200984,'64fc66c6-9107-4480-9a42-5f054c47fd2a','N','bp_c_taxgroup_id','bp_c_taxgroup_id',TO_TIMESTAMP('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:05 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210232 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210233,'U','N','N','N','N',10,'N',19,'N',201005,'3af4c269-69ea-430d-bbb8-4d42119d7713','N','bp_logo_id','bp_logo_id',TO_TIMESTAMP('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210233 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210234,'U','N','N','N','N',10,'N',19,'N',201006,'9caafb7d-2c62-4977-96fb-ccaba093dfbf','N','bp_m_discountschema_id','bp_m_discountschema_id',TO_TIMESTAMP('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:06 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210234 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210235,'U','N','N','N','N',10,'N',19,'N',201007,'c14fb274-5874-4e0b-8e00-7c6247d246c9','N','bp_m_pricelist_id','bp_m_pricelist_id',TO_TIMESTAMP('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:06','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210235 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210236,'U','N','N','N','N',10,'N',19,'N',201012,'fb314bcb-fb12-4f58-8c74-e8f78697e594','N','bp_po_discountschema_id','bp_po_discountschema_id',TO_TIMESTAMP('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:07 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210236 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210237,'U','N','N','N','N',10,'N',19,'N',201013,'d627722c-1bdf-49d9-9c19-7d4cbdc32a78','N','bp_po_paymentterm_id','bp_po_paymentterm_id',TO_TIMESTAMP('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:07','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210237 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210238,'U','N','N','N','N',10,'N',19,'N',201014,'8638c73a-276a-4c13-8087-49942268a50c','N','bp_po_pricelist_id','bp_po_pricelist_id',TO_TIMESTAMP('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210238 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210239,'U','N','N','N','N',10,'N',19,'N',201018,'8aa509f6-dbb2-47b8-a5d5-7c835374087b','N','bp_salesrep_id','bp_salesrep_id',TO_TIMESTAMP('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:08 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210239 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210240,'U','N','N','N','N',10,'N',19,'N',201033,'49ca0e51-d50d-4a36-98bc-2f5b661d97b9','N','bp_location_ad_org_id','bp_location_ad_org_id',TO_TIMESTAMP('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:08','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210240 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210241,'U','N','N','N','N',10,'N',19,'N',200423,'c5aa52b4-d9be-4d9d-b8de-7f6f36ab8d0f','N','AD_User_AD_OrgTrx_ID','AD_User_AD_OrgTrx_ID',TO_TIMESTAMP('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:09 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210241 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210242,'U','N','N','N','N',10,'N',10,'N',250,'b7bdc4a6-bd41-4b80-8499-5ae8b183e7ff','N','CurSymbol','Symbol of the currency (opt used for printing only)','The Currency Symbol defines the symbol that will print when this currency is used.','Symbol',TO_TIMESTAMP('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:09','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210242 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (0.0,496,210243,'U','N','N','N','N',255,'N',10,'N',202509,'77e21b24-4565-44f9-82c6-c9c1844ec920','N','cur_description','Currency Description',TO_TIMESTAMP('2013-04-13 14:46:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 14:46:10','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 2:46:10 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210243 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 2:47:08 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:47:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210224 +; + +-- Apr 13, 2013 2:47:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:47:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210225 +; + +-- Apr 13, 2013 2:47:38 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=124, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:47:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210226 +; + +-- Apr 13, 2013 2:47:54 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200045, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:47:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210227 +; + +-- Apr 13, 2013 2:48:14 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200044, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210228 +; + +-- Apr 13, 2013 2:49:18 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=356, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:49:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210229 +; + +-- Apr 13, 2013 2:49:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200046, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:49:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210230 +; + +-- Apr 13, 2013 2:49:40 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:49:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210231 +; + +-- Apr 13, 2013 2:49:52 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=200047, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:49:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210232 +; + +-- Apr 13, 2013 2:50:34 PM COT +UPDATE AD_Column SET AD_Reference_ID=32, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:50:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210233 +; + +-- Apr 13, 2013 2:50:46 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210234 +; + +-- Apr 13, 2013 2:50:53 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:50:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210235 +; + +-- Apr 13, 2013 2:51:07 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=249, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210236 +; + +-- Apr 13, 2013 2:51:16 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=227, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:51:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210237 +; + +-- Apr 13, 2013 2:51:28 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=166, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:51:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210238 +; + +-- Apr 13, 2013 2:51:47 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=110, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:51:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210239 +; + +-- Apr 13, 2013 2:52:10 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=276, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:52:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210240 +; + +-- Apr 13, 2013 2:52:34 PM COT +UPDATE AD_Column SET AD_Reference_Value_ID=130, AD_Reference_ID=18, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-13 14:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210241 +; + +DROP VIEW c_invoice_header_v; + +CREATE OR REPLACE VIEW c_invoice_header_v AS +SELECT i.ad_client_id, + i.ad_org_id, + i.isactive, + i.created, + i.createdby, + i.updated, + i.updatedby, + 'en_US'::character varying AS ad_language, + i.c_invoice_id, + i.issotrx, + i.documentno, + i.docstatus, + i.c_doctype_id, + i.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + i.c_order_id, + i.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + i.dateinvoiced, + bpg.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcg.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + bp.referenceno, + l.postal || l.postal_add AS postal, + i.description, + i.poreference, + i.dateordered, + i.c_currency_id, + pt.name AS paymentterm, + pt.documentnote AS paymenttermnote, + i.c_charge_id, + i.chargeamt, + i.totallines, + i.grandtotal, + i.grandtotal AS amtinwords, + i.m_pricelist_id, + i.istaxincluded, + i.c_campaign_id, + i.c_project_id, + i.c_activity_id, + i.ispaid, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id, + i.ad_user_id, + i.c_bpartner_location_id, + i.c_conversiontype_id, + i.c_doctypetarget_id, + i.c_dunninglevel_id, + i.c_payment_id, + i.dateacct, + i.dateprinted, + i.docaction, + i.dunninggrace, + i.generateto, + i.invoicecollectiontype, + i.isapproved, + i.isdiscountprinted, + i.isindispute, + i.ispayschedulevalid, + i.isprinted, + i.isselfservice AS c_invoice_isselfservice, + i.istransferred, + i.m_rma_id, + i.paymentrule, + i.posted, + i.processedon, + i.processing, + i.ref_invoice_id, + i.reversal_id, + i.sendemail, + i.user1_id, + i.user2_id, + pt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + pt.c_paymentterm_id, + pt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + pt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS c_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.naics AS bp_naics, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpg.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpg.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto, + bpl.isdn, + bpl.ispayfrom, + bpl.isremitto, + bpl.isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcg.isactive AS user_greeting_isactive, + bpcg.isfirstnameonly AS user_greeting_isfirstnameonly, + bpcg.name AS user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS bpartner_acqusitioncost, + ubp.actuallifetimevalue AS bpartner_actuallifetimevalue, + ubp.ad_language AS bpartner_ad_language, + ubp.ad_orgbp_id AS bpartner_ad_orgbp_id, + ubp.ad_org_id AS bpartner_ad_org_id, + ubp.bpartner_parent_id AS bpartner_bpartner_parent_id, + ubp.c_bp_group_id AS bpartner_c_bp_group_id, + ubp.c_dunning_id AS bpartner_c_dunning_id, + ubp.c_greeting_id AS bpartner_c_greeting_id, + ubp.c_invoiceschedule_id AS bpartner_c_invoiceschedule_id, + ubp.c_paymentterm_id AS bpartner_c_paymentterm_id, + ubp.created AS bpartner_created, + ubp.createdby AS bpartner_createdby, + ubp.c_taxgroup_id AS bpartner_c_taxgroup_id, + ubp.deliveryrule AS bpartner_deliveryrule, + ubp.deliveryviarule AS bpartner_deliveryviarule, + ubp.description AS bpartner_description, + ubp.dunninggrace AS bpartner_dunninggrace, + ubp.duns AS bpartner_duns, + ubp.firstsale AS bpartner_firstsale, + ubp.flatdiscount AS bpartner_flatdiscount, + ubp.freightcostrule AS bpartner_freightcostrule, + ubp.invoicerule AS bpartner_invoicerule, + ubp.isactive AS bpartner_isactive, + ubp.iscustomer AS bpartner_iscustomer, + ubp.isdiscountprinted AS bpartner_isdiscountprinted, + ubp.isemployee AS bpartner_isemployee, + ubp.ismanufacturer AS bpartner_ismanufacturer, + ubp.isonetime AS bpartner_isonetime, + ubp.ispotaxexempt AS bpartner_ispotaxexempt, + ubp.isprospect AS bpartner_isprospect, + ubp.issalesrep AS bpartner_issalesrep, + ubp.issummary AS bpartner_issummary, + ubp.istaxexempt AS bpartner_istaxexempt, + ubp.isvendor AS bpartner_isvendor, + ubp.logo_id AS bpartner_logo_id, + ubp.m_discountschema_id AS bpartner_m_discountschema_id, + ubp.m_pricelist_id AS bpartner_m_pricelist_id, + ubp.naics AS bpartner_naics, + ubp.name2 AS bpartner_name2, + ubp.numberemployees AS bpartner_numberemployees, + ubp.paymentrule AS bpartner_paymentrule, + ubp.paymentrulepo AS bpartner_paymentrulepo, + ubp.po_discountschema_id AS bpartner_po_discountschema_id, + ubp.po_paymentterm_id AS bpartner_po_paymentterm_id, + ubp.po_pricelist_id AS bpartner_po_pricelist_id, + ubp.poreference AS bpartner_poreference, + ubp.potentiallifetimevalue AS bpartner_potentiallifetimeval, + ubp.rating AS bpartner_rating, + ubp.referenceno AS bpartner_referenceno, + ubp.salesrep_id AS bpartner_salesrep_id, + ubp.salesvolume AS bpartner_salesvolume, + ubp.sendemail AS bpartner_sendemail, + ubp.shareofcustomer AS bpartner_shareofcustomer, + ubp.shelflifeminpct AS bpartner_shelflifeminpct, + ubp.so_creditlimit AS bpartner_so_creditlimit, + ubp.socreditstatus AS bpartner_socreditstatus, + ubp.so_creditused AS bpartner_so_creditused, + ubp.so_description AS bpartner_so_description, + ubp.taxid AS bpartner_taxid, + ubp.totalopenbalance AS bpartner_totalopenbalance, + ubp.updated AS bpartner_updated, + ubp.updatedby AS bpartner_updatedby, + ubp.url AS bpartner_url, + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description +FROM c_invoice i + JOIN c_doctype dt + ON i.c_doctype_id = dt.c_doctype_id + JOIN c_paymentterm pt + ON i.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_bpartner bp + ON i.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + JOIN c_bpartner_location bpl + ON i.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON i.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + JOIN ad_orginfo oi + ON i.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON i.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON i.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency cur + ON i.c_currency_id = cur.c_currency_id +; +DROP VIEW c_invoice_header_vt; + +CREATE OR REPLACE VIEW c_invoice_header_vt AS +SELECT i.ad_client_id, + i.ad_org_id, + i.isactive, + i.created, + i.createdby, + i.updated, + i.updatedby, + dt.ad_language, + i.c_invoice_id, + i.issotrx, + i.documentno, + i.docstatus, + i.c_doctype_id, + i.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + i.c_order_id, + i.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + i.dateinvoiced, + bpgt.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcgt.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + bp.referenceno, + l.postal || l.postal_add AS postal, + i.description, + i.poreference, + i.dateordered, + i.c_currency_id, + ptt.name AS paymentterm, + ptt.documentnote AS paymenttermnote, + i.c_charge_id, + i.chargeamt, + i.totallines, + i.grandtotal, + i.grandtotal AS amtinwords, + i.m_pricelist_id, + i.istaxincluded, + i.c_campaign_id, + i.c_project_id, + i.c_activity_id, + i.ispaid, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id, + i.ad_user_id, + i.c_bpartner_location_id, + i.c_conversiontype_id, + i.c_doctypetarget_id, + i.c_dunninglevel_id, + i.c_payment_id, + i.dateacct, + i.dateprinted, + i.docaction, + i.dunninggrace, + i.generateto, + i.invoicecollectiontype, + i.isapproved, + i.isdiscountprinted, + i.isindispute, + i.ispayschedulevalid, + i.isprinted, + i.isselfservice AS c_invoice_isselfservice, + i.istransferred, + i.m_rma_id, + i.paymentrule, + i.posted, + i.processedon, + i.processing, + i.ref_invoice_id, + i.reversal_id, + i.sendemail, + i.user1_id, + i.user2_id, + ptt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + pt.c_paymentterm_id, + ptt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + ptt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS c_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.naics AS bp_naics, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpgt.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpgt.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto, + bpl.isdn, + bpl.ispayfrom, + bpl.isremitto, + bpl.isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcgt.isactive AS user_greeting_isactive, + bpcg.isfirstnameonly AS user_greeting_isfirstnameonly, + bpcgt.name AS user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS bpartner_acqusitioncost, + ubp.actuallifetimevalue AS bpartner_actuallifetimevalue, + ubp.ad_language AS bpartner_ad_language, + ubp.ad_orgbp_id AS bpartner_ad_orgbp_id, + ubp.ad_org_id AS bpartner_ad_org_id, + ubp.bpartner_parent_id AS bpartner_bpartner_parent_id, + ubp.c_bp_group_id AS bpartner_c_bp_group_id, + ubp.c_dunning_id AS bpartner_c_dunning_id, + ubp.c_greeting_id AS bpartner_c_greeting_id, + ubp.c_invoiceschedule_id AS bpartner_c_invoiceschedule_id, + ubp.c_paymentterm_id AS bpartner_c_paymentterm_id, + ubp.created AS bpartner_created, + ubp.createdby AS bpartner_createdby, + ubp.c_taxgroup_id AS bpartner_c_taxgroup_id, + ubp.deliveryrule AS bpartner_deliveryrule, + ubp.deliveryviarule AS bpartner_deliveryviarule, + ubp.description AS bpartner_description, + ubp.dunninggrace AS bpartner_dunninggrace, + ubp.duns AS bpartner_duns, + ubp.firstsale AS bpartner_firstsale, + ubp.flatdiscount AS bpartner_flatdiscount, + ubp.freightcostrule AS bpartner_freightcostrule, + ubp.invoicerule AS bpartner_invoicerule, + ubp.isactive AS bpartner_isactive, + ubp.iscustomer AS bpartner_iscustomer, + ubp.isdiscountprinted AS bpartner_isdiscountprinted, + ubp.isemployee AS bpartner_isemployee, + ubp.ismanufacturer AS bpartner_ismanufacturer, + ubp.isonetime AS bpartner_isonetime, + ubp.ispotaxexempt AS bpartner_ispotaxexempt, + ubp.isprospect AS bpartner_isprospect, + ubp.issalesrep AS bpartner_issalesrep, + ubp.issummary AS bpartner_issummary, + ubp.istaxexempt AS bpartner_istaxexempt, + ubp.isvendor AS bpartner_isvendor, + ubp.logo_id AS bpartner_logo_id, + ubp.m_discountschema_id AS bpartner_m_discountschema_id, + ubp.m_pricelist_id AS bpartner_m_pricelist_id, + ubp.naics AS bpartner_naics, + ubp.name2 AS bpartner_name2, + ubp.numberemployees AS bpartner_numberemployees, + ubp.paymentrule AS bpartner_paymentrule, + ubp.paymentrulepo AS bpartner_paymentrulepo, + ubp.po_discountschema_id AS bpartner_po_discountschema_id, + ubp.po_paymentterm_id AS bpartner_po_paymentterm_id, + ubp.po_pricelist_id AS bpartner_po_pricelist_id, + ubp.poreference AS bpartner_poreference, + ubp.potentiallifetimevalue AS bpartner_potentiallifetimeval, + ubp.rating AS bpartner_rating, + ubp.referenceno AS bpartner_referenceno, + ubp.salesrep_id AS bpartner_salesrep_id, + ubp.salesvolume AS bpartner_salesvolume, + ubp.sendemail AS bpartner_sendemail, + ubp.shareofcustomer AS bpartner_shareofcustomer, + ubp.shelflifeminpct AS bpartner_shelflifeminpct, + ubp.so_creditlimit AS bpartner_so_creditlimit, + ubp.socreditstatus AS bpartner_socreditstatus, + ubp.so_creditused AS bpartner_so_creditused, + ubp.so_description AS bpartner_so_description, + ubp.taxid AS bpartner_taxid, + ubp.totalopenbalance AS bpartner_totalopenbalance, + ubp.updated AS bpartner_updated, + ubp.updatedby AS bpartner_updatedby, + ubp.url AS bpartner_url, + ubp.value AS bpartner_value, + cur.cursymbol, + cur.description AS cur_description +FROM c_invoice i + JOIN c_doctype_trl dt + ON i.c_doctype_id = dt.c_doctype_id + JOIN c_paymentterm pt + ON i.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_paymentterm_trl ptt + ON i.c_paymentterm_id = ptt.c_paymentterm_id AND dt.ad_language = ptt.ad_language + JOIN c_bpartner bp + ON i.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + LEFT JOIN c_greeting_trl bpgt + ON bp.c_greeting_id = bpgt.c_greeting_id AND dt.ad_language = bpgt.ad_language + JOIN c_bpartner_location bpl + ON i.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON i.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + LEFT JOIN c_greeting_trl bpcgt + ON bpc.c_greeting_id = bpcgt.c_greeting_id AND dt.ad_language = bpcgt.ad_language + JOIN ad_orginfo oi + ON i.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON i.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON i.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + LEFT JOIN c_currency_trl cur + ON i.c_currency_id = cur.c_currency_id AND dt.ad_language = cur.ad_language +; +DROP VIEW c_order_header_v; + +CREATE OR REPLACE VIEW c_order_header_v AS +SELECT o.ad_client_id, + o.ad_org_id, + o.isactive, + o.created, + o.createdby, + o.updated, + o.updatedby, + 'en_US'::character varying AS ad_language, + o.c_order_id, + o.issotrx, + o.documentno, + o.docstatus, + o.c_doctype_id, + o.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + o.m_warehouse_id, + wh.c_location_id AS warehouse_location_id, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + o.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + o.dateordered, + o.datepromised, + bpg.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcg.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + l.postal || l.postal_add AS postal, + bp.referenceno, + o.bill_bpartner_id, + o.bill_location_id, + o.bill_user_id, + bbp.value AS bill_bpvalue, + bbp.taxid AS bill_bptaxid, + bbp.name AS bill_name, + bbp.name2 AS bill_name2, + bbpc.title AS bill_title, + bbpc.phone AS bill_phone, + NULLIF(bbpc.name, bbp.name) AS bill_contactname, + bbpl.c_location_id AS bill_c_location_id, + o.description, + o.poreference, + o.c_currency_id, + pt.name AS paymentterm, + pt.documentnote AS paymenttermnote, + o.c_charge_id, + o.chargeamt, + o.totallines, + o.grandtotal, + o.grandtotal AS amtinwords, + o.m_pricelist_id, + o.istaxincluded, + o.volume, + o.weight, + o.c_campaign_id, + o.c_project_id, + o.c_activity_id, + o.m_shipper_id, + o.deliveryrule, + o.deliveryviarule, + o.priorityrule, + o.invoicerule, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + o.ad_orgtrx_id, + o.ad_user_id, + o.amountrefunded, + o.amounttendered, + o.c_bpartner_location_id, + o.c_cashline_id, + o.c_cashplanline_id, + o.c_conversiontype_id, + o.c_doctypetarget_id, + o.copyfrom, + o.c_payment_id, + o.c_paymentterm_id, + o.c_pos_id, + o.dateacct, + o.dateprinted, + o.docaction, + o.dropship_bpartner_id, + o.dropship_location_id, + o.dropship_user_id, + o.freightamt, + o.freightcostrule, + o.isapproved, + o.iscreditapproved, + o.isdelivered, + o.isdiscountprinted, + o.isdropship, + o.isinvoiced, + o.ispayschedulevalid, + o.isprinted, + o.isselected, + o.isselfservice, + o.istransferred, + o.link_order_id, + o.m_freightcategory_id, + o.ordertype, + o.pay_bpartner_id, + o.pay_location_id, + o.paymentrule, + o.posted, + o.processed, + o.processedon, + o.promotioncode, + o.ref_order_id, + o.sendemail, + o.user1_id, + o.user2_id, + wh.ad_org_id AS m_warehouse_ad_org_id, + wh.description AS m_warehouse_description, + wh.isactive AS m_warehouse_isactive, + wh.isdisallownegativeinv, + wh.isintransit, + wh.m_warehousesource_id, + wh.name AS m_warehouse_name, + wh.replenishmentclass, + wh.separator, + wh.value AS m_warehouse_value, + pt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + pt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + pt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS m_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpg.ad_org_id AS c_greeting_ad_org_id, + bpg.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpg.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id AS bp_location_c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto AS bp_location_isbillto, + bpl.isdn AS bp_location_isdn, + bpl.ispayfrom AS bp_location_ispayfrom, + bpl.isremitto AS bp_location_isremitto, + bpl.isshipto AS bp_location_isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcg.ad_org_id AS c_user_greeting_ad_org_id, + bpcg.isactive AS c_user_greeting_isactive, + bpcg.isfirstnameonly AS c_user_greeting_isfnameonly, + bpcg.name AS c_user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id AS ad_orginfo_m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS salesrep_bp_acqusitioncost, + ubp.actuallifetimevalue AS salesrep_bp_actuallifetimeval, + ubp.ad_language AS salesrep_bp_ad_language, + ubp.ad_orgbp_id AS salesrep_bp_ad_orgbp_id, + ubp.ad_org_id AS salesrep_bp_ad_org_id, + ubp.bpartner_parent_id AS salesrep_bp_bpartner_parent_id, + ubp.c_bp_group_id AS salesrep_bp_c_bp_group_id, + ubp.c_dunning_id AS salesrep_bp_c_dunning_id, + ubp.c_greeting_id AS salesrep_bp_c_greeting_id, + ubp.c_invoiceschedule_id AS salesrep_bp_c_invoicesched_id, + ubp.c_paymentterm_id AS salesrep_bp_c_paymentterm_id, + ubp.created AS salesrep_bp_created, + ubp.createdby AS salesrep_bp_createdby, + ubp.c_taxgroup_id AS salesrep_bp_c_taxgroup_id, + ubp.deliveryrule AS salesrep_bp_deliveryrule, + ubp.deliveryviarule AS salesrep_bp_deliveryviarule, + ubp.description AS salesrep_bp_description, + ubp.dunninggrace AS salesrep_bp_dunninggrace, + ubp.duns AS salesrep_bp_duns, + ubp.firstsale AS salesrep_bp_firstsale, + ubp.flatdiscount AS salesrep_bp_flatdiscount, + ubp.freightcostrule AS salesrep_bp_freightcostrule, + ubp.invoicerule AS salesrep_bp_invoicerule, + ubp.isactive AS salesrep_bp_isactive, + ubp.iscustomer AS salesrep_bp_iscustomer, + ubp.isdiscountprinted AS salesrep_bp_isdiscountprinted, + ubp.isemployee AS salesrep_bp_isemployee, + ubp.ismanufacturer AS salesrep_bp_ismanufacturer, + ubp.isonetime AS salesrep_bp_isonetime, + ubp.ispotaxexempt AS salesrep_bp_ispotaxexempt, + ubp.isprospect AS salesrep_bp_isprospect, + ubp.issalesrep AS salesrep_bp_issalesrep, + ubp.issummary AS salesrep_bp_issummary, + ubp.istaxexempt AS salesrep_bp_istaxexempt, + ubp.isvendor AS salesrep_bp_isvendor, + ubp.logo_id AS salesrep_bp_logo_id, + ubp.m_discountschema_id AS salesrep_bp_m_discountschm_id, + ubp.m_pricelist_id AS salesrep_bp_m_pricelist_id, + ubp.naics AS salesrep_bp_naics, + ubp.name2 AS salesrep_bp_name2, + ubp.numberemployees AS salesrep_bp_numberemployees, + ubp.paymentrule AS salesrep_bp_paymentrule, + ubp.paymentrulepo AS salesrep_bp_paymentrulepo, + ubp.po_discountschema_id AS salesrep_bp_po_discountschm_id, + ubp.po_paymentterm_id AS salesrep_bp_po_paymentterm_id, + ubp.po_pricelist_id AS salesrep_bp_po_pricelist_id, + ubp.poreference AS salesrep_bp_poreference, + ubp.potentiallifetimevalue AS salesrep_bp_potentiallifetime, + ubp.rating AS salesrep_bp_rating, + ubp.referenceno AS salesrep_bp_referenceno, + ubp.salesrep_id AS salesrep_bp_salesrep_id, + ubp.salesvolume AS salesrep_bp_salesvolume, + ubp.sendemail AS salesrep_bp_sendemail, + ubp.shareofcustomer AS salesrep_bp_shareofcustomer, + ubp.shelflifeminpct AS salesrep_bp_shelflifeminpct, + ubp.so_creditlimit AS salesrep_bp_so_creditlimit, + ubp.socreditstatus AS salesrep_bp_socreditstatus, + ubp.so_creditused AS salesrep_bp_so_creditused, + ubp.so_description AS salesrep_bp_so_description, + ubp.taxid AS salesrep_bp_taxid, + ubp.totalopenbalance AS salesrep_bp_totalopenbalance, + ubp.updated AS salesrep_bp_updated, + ubp.updatedby AS salesrep_bp_updatedby, + ubp.url AS salesrep_bp_url, + ubp.value AS salesrep_bp_value, + bbp.acqusitioncost AS bill_bp_acqusitioncost, + bbp.actuallifetimevalue AS bill_bp_actuallifetimevalue, + bbp.ad_language AS bill_bp_ad_language, + bbp.ad_orgbp_id AS bill_bp_ad_orgbp_id, + bbp.ad_org_id AS bill_bp_ad_org_id, + bbp.bpartner_parent_id AS bill_bp_bpartner_parent_id, + bbp.c_bp_group_id AS bill_bp_c_bp_group_id, + bbp.c_dunning_id AS bill_bp_c_dunning_id, + bbp.c_greeting_id AS bill_bp_c_greeting_id, + bbp.c_invoiceschedule_id AS bill_bp_c_invoiceschedule_id, + bbp.c_paymentterm_id AS bill_bp_c_paymentterm_id, + bbp.created AS bill_bp_created, + bbp.createdby AS bill_bp_createdby, + bbp.c_taxgroup_id AS bill_bp_c_taxgroup_id, + bbp.deliveryrule AS bill_bp_deliveryrule, + bbp.deliveryviarule AS bill_bp_deliveryviarule, + bbp.description AS bill_bp_description, + bbp.dunninggrace AS bill_bp_dunninggrace, + bbp.duns AS bill_bp_duns, + bbp.firstsale AS bill_bp_firstsale, + bbp.flatdiscount AS bill_bp_flatdiscount, + bbp.freightcostrule AS bill_bp_freightcostrule, + bbp.invoicerule AS bill_bp_invoicerule, + bbp.isactive AS bill_bp_isactive, + bbp.iscustomer AS bill_bp_iscustomer, + bbp.isdiscountprinted AS bill_bp_isdiscountprinted, + bbp.isemployee AS bill_bp_isemployee, + bbp.ismanufacturer AS bill_bp_ismanufacturer, + bbp.isonetime AS bill_bp_isonetime, + bbp.ispotaxexempt AS bill_bp_ispotaxexempt, + bbp.isprospect AS bill_bp_isprospect, + bbp.issalesrep AS bill_bp_issalesrep, + bbp.issummary AS bill_bp_issummary, + bbp.istaxexempt AS bill_bp_istaxexempt, + bbp.isvendor AS bill_bp_isvendor, + bbp.logo_id AS bill_bp_logo_id, + bbp.m_discountschema_id AS bill_bp_m_discountschema_id, + bbp.m_pricelist_id AS bill_bp_m_pricelist_id, + bbp.naics AS bill_bp_naics, + bbp.numberemployees AS bill_bp_numberemployees, + bbp.paymentrule AS bill_bp_paymentrule, + bbp.paymentrulepo AS bill_bp_paymentrulepo, + bbp.po_discountschema_id AS bill_bp_po_discountschema_id, + bbp.po_paymentterm_id AS bill_bp_po_paymentterm_id, + bbp.po_pricelist_id AS bill_bp_po_pricelist_id, + bbp.poreference AS bill_bp_poreference, + bbp.potentiallifetimevalue AS bill_bp_potentiallifetimevalue, + bbp.rating AS bill_bp_rating, + bbp.referenceno AS bill_bp_referenceno, + bbp.salesrep_id AS bill_bp_salesrep_id, + bbp.salesvolume AS bill_bp_salesvolume, + bbp.sendemail AS bill_bp_sendemail, + bbp.shareofcustomer AS bill_bp_shareofcustomer, + bbp.shelflifeminpct AS bill_bp_shelflifeminpct, + bbp.so_creditlimit AS bill_bp_so_creditlimit, + bbp.socreditstatus AS bill_bp_socreditstatus, + bbp.so_creditused AS bill_bp_so_creditused, + bbp.so_description AS bill_bp_so_description, + bbp.totalopenbalance AS bill_bp_totalopenbalance, + bbp.updated AS bill_bp_updated, + bbp.updatedby AS bill_bp_updatedby, + bbp.url AS bill_bp_url, + bbpl.ad_org_id AS bill_bp_location_ad_org_id, + bbpl.c_bpartner_id AS bill_bp_location_c_bpartner_id, + bbpl.created AS bill_bp_location_created, + bbpl.createdby AS bill_bp_location_createdby, + bbpl.c_salesregion_id AS bill_bp_location_c_salesreg_id, + bbpl.fax AS bill_bp_location_fax, + bbpl.isactive AS bill_bp_location_isactive, + bbpl.isbillto AS bill_bp_location_isbillto, + bbpl.isdn AS bill_bp_location_isdn, + bbpl.ispayfrom AS bill_bp_location_ispayfrom, + bbpl.isremitto AS bill_bp_location_isremitto, + bbpl.isshipto AS bill_bp_location_isshipto, + bbpl.name AS bill_bp_location_name, + bbpl.phone AS bill_bp_location_phone, + bbpl.phone2 AS bill_bp_location_phone2, + bbpl.updated AS bill_bp_location_updated, + bbpl.updatedby AS bill_bp_location_updatedby, + bbpc.ad_org_id AS bill_user_ad_org_id, + bbpc.ad_orgtrx_id AS bill_user_ad_orgtrx_id, + bbpc.birthday AS bill_user_ad_birthday, + bbpc.c_bpartner_id AS bill_user_c_bpartner_id, + bbpc.c_bpartner_location_id AS bill_user_c_bp_location_id, + bbpc.c_greeting_id AS bill_user_c_greeting_id, + bbpc.comments AS bill_user_comments, + bbpc.created AS bill_user_created, + bbpc.createdby AS bill_user_createdby, + bbpc.description AS bill_user_description, + bbpc.email AS bill_user_email, + bbpc.fax AS bill_user_fax, + bbpc.isactive AS bill_user_isactive, + bbpc.lastcontact AS bill_user_lastcontact, + bbpc.lastresult AS bill_user_lastresult, + bbpc.phone2 AS bill_user_phone2, + bbpc.supervisor_id AS bill_user_supervisor_id, + bbpc.updated AS bill_user_updated, + bbpc.updatedby AS bill_user_updatedby, + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description +FROM c_order o + JOIN c_doctype dt + ON o.c_doctype_id = dt.c_doctype_id + JOIN m_warehouse wh + ON o.m_warehouse_id = wh.m_warehouse_id + JOIN c_paymentterm pt + ON o.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_bpartner bp + ON o.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + JOIN c_bpartner_location bpl + ON o.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON o.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + JOIN ad_orginfo oi + ON o.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON o.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON o.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + JOIN c_bpartner bbp + ON o.bill_bpartner_id = bbp.c_bpartner_id + JOIN c_bpartner_location bbpl + ON o.bill_location_id = bbpl.c_bpartner_location_id + LEFT JOIN ad_user bbpc + ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency cur + ON o.c_currency_id = cur.c_currency_id +; +DROP VIEW c_order_header_vt; + +CREATE OR REPLACE VIEW c_order_header_vt AS +SELECT o.ad_client_id, + o.ad_org_id, + o.isactive, + o.created, + o.createdby, + o.updated, + o.updatedby, + dt.ad_language, + o.c_order_id, + o.issotrx, + o.documentno, + o.docstatus, + o.c_doctype_id, + o.c_bpartner_id, + bp.value AS bpvalue, + bp.taxid AS bptaxid, + bp.naics, + bp.duns, + oi.c_location_id AS org_location_id, + oi.taxid, + o.m_warehouse_id, + wh.c_location_id AS warehouse_location_id, + dt.printname AS documenttype, + dt.documentnote AS documenttypenote, + o.salesrep_id, + COALESCE(ubp.name, u.name) AS salesrep_name, + o.dateordered, + o.datepromised, + bpgt.greeting AS bpgreeting, + bp.name, + bp.name2, + bpcgt.greeting AS bpcontactgreeting, + bpc.title, + bpc.phone, + NULLIF(bpc.name, bp.name) AS contactname, + bpl.c_location_id, + l.postal || l.postal_add AS postal, + bp.referenceno, + o.bill_bpartner_id, + o.bill_location_id, + o.bill_user_id, + bbp.value AS bill_bpvalue, + bbp.taxid AS bill_bptaxid, + bbp.name AS bill_name, + bbp.name2 AS bill_name2, + bbpc.title AS bill_title, + bbpc.phone AS bill_phone, + NULLIF(bbpc.name, bbp.name) AS bill_contactname, + bbpl.c_location_id AS bill_c_location_id, + o.description, + o.poreference, + o.c_currency_id, + ptt.name AS paymentterm, + ptt.documentnote AS paymenttermnote, + o.c_charge_id, + o.chargeamt, + o.totallines, + o.grandtotal, + o.grandtotal AS amtinwords, + o.m_pricelist_id, + o.istaxincluded, + o.volume, + o.weight, + o.c_campaign_id, + o.c_project_id, + o.c_activity_id, + o.m_shipper_id, + o.deliveryrule, + o.deliveryviarule, + o.priorityrule, + o.invoicerule, + COALESCE(oi.logo_id, ci.logo_id) AS logo_id, + o.ad_orgtrx_id, + o.ad_user_id, + o.amountrefunded, + o.amounttendered, + o.c_bpartner_location_id, + o.c_cashline_id, + o.c_cashplanline_id, + o.c_conversiontype_id, + o.c_doctypetarget_id, + o.copyfrom, + o.c_payment_id, + o.c_paymentterm_id, + o.c_pos_id, + o.dateacct, + o.dateprinted, + o.docaction, + o.dropship_bpartner_id, + o.dropship_location_id, + o.dropship_user_id, + o.freightamt, + o.freightcostrule, + o.isapproved, + o.iscreditapproved, + o.isdelivered, + o.isdiscountprinted, + o.isdropship, + o.isinvoiced, + o.ispayschedulevalid, + o.isprinted, + o.isselected, + o.isselfservice, + o.istransferred, + o.link_order_id, + o.m_freightcategory_id, + o.ordertype, + o.pay_bpartner_id, + o.pay_location_id, + o.paymentrule, + o.posted, + o.processed, + o.processedon, + o.promotioncode, + o.ref_order_id, + o.sendemail, + o.user1_id, + o.user2_id, + wh.ad_org_id AS m_warehouse_ad_org_id, + wh.description AS m_warehouse_description, + wh.isactive AS m_warehouse_isactive, + wh.isdisallownegativeinv, + wh.isintransit, + wh.m_warehousesource_id, + wh.name AS m_warehouse_name, + wh.replenishmentclass, + wh.separator, + wh.value AS m_warehouse_value, + ptt.ad_org_id AS c_paymentterm_ad_org_id, + pt.afterdelivery, + ptt.description AS c_paymentterm_description, + pt.discount, + pt.discount2, + pt.discountdays, + pt.discountdays2, + pt.fixmonthcutoff, + pt.fixmonthday, + pt.fixmonthoffset, + pt.gracedays, + ptt.isactive AS c_paymentterm_isactive, + pt.isdefault, + pt.isduefixed, + pt.isnextbusinessday, + pt.isvalid, + pt.netday, + pt.netdays, + pt.paymenttermusage, + pt.value AS m_paymentterm_value, + bp.acqusitioncost AS bp_acqusitioncost, + bp.actuallifetimevalue AS bp_actuallifetimevalue, + bp.ad_language AS bp_ad_language, + bp.ad_orgbp_id AS bp_ad_orgbp_id, + bp.ad_org_id AS bp_ad_org_id, + bp.bpartner_parent_id AS bp_bpartner_parent_id, + bp.c_bp_group_id AS bp_c_bp_group_id, + bp.c_dunning_id AS bp_c_dunning_id, + bp.c_greeting_id AS bp_c_greeting_id, + bp.c_invoiceschedule_id AS bp_c_invoiceschedule_id, + bp.c_paymentterm_id AS bp_c_paymentterm_id, + bp.created AS bp_created, + bp.createdby AS bp_createdby, + bp.c_taxgroup_id AS bp_c_taxgroup_id, + bp.deliveryrule AS bp_deliveryrule, + bp.deliveryviarule AS bp_deliveryviarule, + bp.description AS bp_description, + bp.dunninggrace AS bp_dunninggrace, + bp.firstsale AS bp_firstsale, + bp.flatdiscount AS bp_flatdiscount, + bp.freightcostrule AS bp_freightcostrule, + bp.invoicerule AS bp_invoicerule, + bp.isactive AS bp_isactive, + bp.iscustomer AS bp_iscustomer, + bp.isdiscountprinted AS bp_isdiscountprinted, + bp.isemployee AS bp_isemployee, + bp.ismanufacturer AS bp_ismanufacturer, + bp.isonetime AS bp_isonetime, + bp.ispotaxexempt AS bp_ispotaxexempt, + bp.isprospect AS bp_isprospect, + bp.issalesrep AS bp_issalesrep, + bp.issummary AS bp_issummary, + bp.istaxexempt AS bp_istaxexempt, + bp.isvendor AS bp_isvendor, + bp.logo_id AS bp_logo_id, + bp.m_discountschema_id AS bp_m_discountschema_id, + bp.m_pricelist_id AS bp_m_pricelist_id, + bp.numberemployees AS bp_numberemployees, + bp.paymentrule AS bp_paymentrule, + bp.paymentrulepo AS bp_paymentrulepo, + bp.po_discountschema_id AS bp_po_discountschema_id, + bp.po_paymentterm_id AS bp_po_paymentterm_id, + bp.po_pricelist_id AS bp_po_pricelist_id, + bp.poreference AS bp_poreference, + bp.potentiallifetimevalue AS bp_potentiallifetimevalue, + bp.rating AS bp_rating, + bp.salesrep_id AS bp_salesrep_id, + bp.salesvolume AS bp_salesvolume, + bp.sendemail AS bp_sendemail, + bp.shareofcustomer AS bp_shareofcustomer, + bp.shelflifeminpct AS bp_shelflifeminpct, + bp.so_creditlimit AS bp_so_creditlimit, + bp.socreditstatus AS bp_socreditstatus, + bp.so_creditused AS bp_so_creditused, + bp.so_description AS bp_so_description, + bp.totalopenbalance AS bp_totalopenbalance, + bp.updated AS bp_updated, + bp.updatedby AS bp_updatedby, + bp.url AS bp_url, + bpgt.ad_org_id AS c_greeting_ad_org_id, + bpgt.isactive AS c_greeting_isactive, + bpg.isfirstnameonly, + bpgt.name AS c_greeting_name, + bpl.ad_org_id AS bp_location_ad_org_id, + bpl.c_bpartner_id AS bp_location_c_bpartner_id, + bpl.created AS bp_location_created, + bpl.createdby AS bp_location_createdby, + bpl.c_salesregion_id AS bp_location_c_salesregion_id, + bpl.fax AS bp_location_fax, + bpl.isactive AS bp_location_isactive, + bpl.isbillto AS bp_location_isbillto, + bpl.isdn AS bp_location_isdn, + bpl.ispayfrom AS bp_location_ispayfrom, + bpl.isremitto AS bp_location_isremitto, + bpl.isshipto AS bp_location_isshipto, + bpl.name AS bp_location_name, + bpl.phone AS bp_location_phone, + bpl.phone2 AS bp_location_phone2, + bpl.updated AS bp_location_updated, + bpl.updatedby AS bp_location_updatedby, + l.address1, + l.address2, + l.address3, + l.address4, + l.ad_org_id AS c_location_ad_org_id, + l.c_city_id, + l.c_country_id, + l.city, + l.created AS c_location_created, + l.createdby AS c_location_createdby, + l.c_region_id, + l.isactive AS c_location_isactive, + l.regionname, + l.updated AS c_location_updated, + l.updatedby AS c_location_updatedby, + bpc.ad_org_id AS ad_user_ad_org_id, + bpc.ad_orgtrx_id AS ad_user_ad_orgtrx_id, + bpc.birthday AS ad_user_ad_birthday, + bpc.c_bpartner_id AS ad_user_c_bpartner_id, + bpc.c_bpartner_location_id AS ad_user_c_bpartner_location_id, + bpc.c_greeting_id AS ad_user_c_greeting_id, + bpc.comments AS ad_user_comments, + bpc.created AS ad_user_created, + bpc.createdby AS ad_user_createdby, + bpc.description AS ad_user_description, + bpc.email AS ad_user_email, + bpc.fax AS ad_user_fax, + bpc.isactive AS ad_user_isactive, + bpc.lastcontact AS ad_user_lastcontact, + bpc.lastresult AS ad_user_lastresult, + bpc.phone2 AS ad_user_phone2, + bpc.supervisor_id AS ad_user_supervisor_id, + bpc.updated AS ad_user_updated, + bpc.updatedby AS ad_user_updatedby, + bpc.value AS ad_user_value, + bpcgt.ad_org_id AS c_user_greeting_ad_org_id, + bpcgt.isactive AS c_user_greeting_isactive, + bpcg.isfirstnameonly AS c_user_greeting_isfnameonly, + bpcgt.name AS c_user_greeting_name, + oi.ad_org_id AS ad_orginfo_ad_org_id, + oi.ad_orgtype_id, + oi.c_calendar_id, + oi.created AS ad_orginfo_created, + oi.createdby AS ad_orginfo_createdby, + oi.dropship_warehouse_id, + oi.duns AS ad_orginfo_duns, + oi.email AS ad_orginfo_email, + oi.fax AS ad_orginfo_fax, + oi.isactive AS ad_orginfo_isactive, + oi.m_warehouse_id AS ad_orginfo_m_warehouse_id, + oi.parent_org_id, + oi.phone AS ad_orginfo_phone, + oi.phone2 AS ad_orginfo_phone2, + oi.receiptfootermsg, + oi.supervisor_id, + oi.updated AS ad_orginfo_updated, + oi.updatedby AS ad_orginfo_updatedby, + u.ad_org_id AS salesrep_ad_org_id, + u.ad_orgtrx_id AS salesrep_ad_orgtrx_id, + u.birthday AS salesrep_ad_birthday, + u.c_bpartner_id AS salesrep_c_bpartner_id, + u.c_bpartner_location_id AS salesrep_c_bp_location_id, + u.c_greeting_id AS salesrep_c_greeting_id, + u.comments AS salesrep_comments, + u.created AS salesrep_created, + u.createdby AS salesrep_createdby, + u.description AS salesrep_description, + u.email AS salesrep_email, + u.fax AS salesrep_fax, + u.isactive AS salesrep_isactive, + u.lastcontact AS salesrep_lastcontact, + u.lastresult AS salesrep_lastresult, + u.phone AS salesrep_phone, + u.phone2 AS salesrep_phone2, + u.supervisor_id AS salesrep_supervisor_id, + u.title AS salesrep_title, + u.updated AS salesrep_updated, + u.updatedby AS salesrep_updatedby, + u.value AS salesrep_value, + ubp.acqusitioncost AS salesrep_bp_acqusitioncost, + ubp.actuallifetimevalue AS salesrep_bp_actuallifetimeval, + ubp.ad_language AS salesrep_bp_ad_language, + ubp.ad_orgbp_id AS salesrep_bp_ad_orgbp_id, + ubp.ad_org_id AS salesrep_bp_ad_org_id, + ubp.bpartner_parent_id AS salesrep_bp_bpartner_parent_id, + ubp.c_bp_group_id AS salesrep_bp_c_bp_group_id, + ubp.c_dunning_id AS salesrep_bp_c_dunning_id, + ubp.c_greeting_id AS salesrep_bp_c_greeting_id, + ubp.c_invoiceschedule_id AS salesrep_bp_c_invoicesched_id, + ubp.c_paymentterm_id AS salesrep_bp_c_paymentterm_id, + ubp.created AS salesrep_bp_created, + ubp.createdby AS salesrep_bp_createdby, + ubp.c_taxgroup_id AS salesrep_bp_c_taxgroup_id, + ubp.deliveryrule AS salesrep_bp_deliveryrule, + ubp.deliveryviarule AS salesrep_bp_deliveryviarule, + ubp.description AS salesrep_bp_description, + ubp.dunninggrace AS salesrep_bp_dunninggrace, + ubp.duns AS salesrep_bp_duns, + ubp.firstsale AS salesrep_bp_firstsale, + ubp.flatdiscount AS salesrep_bp_flatdiscount, + ubp.freightcostrule AS salesrep_bp_freightcostrule, + ubp.invoicerule AS salesrep_bp_invoicerule, + ubp.isactive AS salesrep_bp_isactive, + ubp.iscustomer AS salesrep_bp_iscustomer, + ubp.isdiscountprinted AS salesrep_bp_isdiscountprinted, + ubp.isemployee AS salesrep_bp_isemployee, + ubp.ismanufacturer AS salesrep_bp_ismanufacturer, + ubp.isonetime AS salesrep_bp_isonetime, + ubp.ispotaxexempt AS salesrep_bp_ispotaxexempt, + ubp.isprospect AS salesrep_bp_isprospect, + ubp.issalesrep AS salesrep_bp_issalesrep, + ubp.issummary AS salesrep_bp_issummary, + ubp.istaxexempt AS salesrep_bp_istaxexempt, + ubp.isvendor AS salesrep_bp_isvendor, + ubp.logo_id AS salesrep_bp_logo_id, + ubp.m_discountschema_id AS salesrep_bp_m_discountschm_id, + ubp.m_pricelist_id AS salesrep_bp_m_pricelist_id, + ubp.naics AS salesrep_bp_naics, + ubp.name2 AS salesrep_bp_name2, + ubp.numberemployees AS salesrep_bp_numberemployees, + ubp.paymentrule AS salesrep_bp_paymentrule, + ubp.paymentrulepo AS salesrep_bp_paymentrulepo, + ubp.po_discountschema_id AS salesrep_bp_po_discountsch_id, + ubp.po_paymentterm_id AS salesrep_bp_po_paymentterm_id, + ubp.po_pricelist_id AS salesrep_bp_po_pricelist_id, + ubp.poreference AS salesrep_bp_poreference, + ubp.potentiallifetimevalue AS salesrep_bp_potentiallifetime, + ubp.rating AS salesrep_bp_rating, + ubp.referenceno AS salesrep_bp_referenceno, + ubp.salesrep_id AS salesrep_bp_salesrep_id, + ubp.salesvolume AS salesrep_bp_salesvolume, + ubp.sendemail AS salesrep_bp_sendemail, + ubp.shareofcustomer AS salesrep_bp_shareofcustomer, + ubp.shelflifeminpct AS salesrep_bp_shelflifeminpct, + ubp.so_creditlimit AS salesrep_bp_so_creditlimit, + ubp.socreditstatus AS salesrep_bp_socreditstatus, + ubp.so_creditused AS salesrep_bp_so_creditused, + ubp.so_description AS salesrep_bp_so_description, + ubp.taxid AS salesrep_bp_taxid, + ubp.totalopenbalance AS salesrep_bp_totalopenbalance, + ubp.updated AS salesrep_bp_updated, + ubp.updatedby AS salesrep_bp_updatedby, + ubp.url AS salesrep_bp_url, + ubp.value AS salesrep_bp_value, + bbp.acqusitioncost AS bill_bp_acqusitioncost, + bbp.actuallifetimevalue AS bill_bp_actuallifetimevalue, + bbp.ad_language AS bill_bp_ad_language, + bbp.ad_orgbp_id AS bill_bp_ad_orgbp_id, + bbp.ad_org_id AS bill_bp_ad_org_id, + bbp.bpartner_parent_id AS bill_bp_bpartner_parent_id, + bbp.c_bp_group_id AS bill_bp_c_bp_group_id, + bbp.c_dunning_id AS bill_bp_c_dunning_id, + bbp.c_greeting_id AS bill_bp_c_greeting_id, + bbp.c_invoiceschedule_id AS bill_bp_c_invoiceschedule_id, + bbp.c_paymentterm_id AS bill_bp_c_paymentterm_id, + bbp.created AS bill_bp_created, + bbp.createdby AS bill_bp_createdby, + bbp.c_taxgroup_id AS bill_bp_c_taxgroup_id, + bbp.deliveryrule AS bill_bp_deliveryrule, + bbp.deliveryviarule AS bill_bp_deliveryviarule, + bbp.description AS bill_bp_description, + bbp.dunninggrace AS bill_bp_dunninggrace, + bbp.duns AS bill_bp_duns, + bbp.firstsale AS bill_bp_firstsale, + bbp.flatdiscount AS bill_bp_flatdiscount, + bbp.freightcostrule AS bill_bp_freightcostrule, + bbp.invoicerule AS bill_bp_invoicerule, + bbp.isactive AS bill_bp_isactive, + bbp.iscustomer AS bill_bp_iscustomer, + bbp.isdiscountprinted AS bill_bp_isdiscountprinted, + bbp.isemployee AS bill_bp_isemployee, + bbp.ismanufacturer AS bill_bp_ismanufacturer, + bbp.isonetime AS bill_bp_isonetime, + bbp.ispotaxexempt AS bill_bp_ispotaxexempt, + bbp.isprospect AS bill_bp_isprospect, + bbp.issalesrep AS bill_bp_issalesrep, + bbp.issummary AS bill_bp_issummary, + bbp.istaxexempt AS bill_bp_istaxexempt, + bbp.isvendor AS bill_bp_isvendor, + bbp.logo_id AS bill_bp_logo_id, + bbp.m_discountschema_id AS bill_bp_m_discountschema_id, + bbp.m_pricelist_id AS bill_bp_m_pricelist_id, + bbp.naics AS bill_bp_naics, + bbp.numberemployees AS bill_bp_numberemployees, + bbp.paymentrule AS bill_bp_paymentrule, + bbp.paymentrulepo AS bill_bp_paymentrulepo, + bbp.po_discountschema_id AS bill_bp_po_discountschema_id, + bbp.po_paymentterm_id AS bill_bp_po_paymentterm_id, + bbp.po_pricelist_id AS bill_bp_po_pricelist_id, + bbp.poreference AS bill_bp_poreference, + bbp.potentiallifetimevalue AS bill_bp_potentiallifetimevalue, + bbp.rating AS bill_bp_rating, + bbp.referenceno AS bill_bp_referenceno, + bbp.salesrep_id AS bill_bp_salesrep_id, + bbp.salesvolume AS bill_bp_salesvolume, + bbp.sendemail AS bill_bp_sendemail, + bbp.shareofcustomer AS bill_bp_shareofcustomer, + bbp.shelflifeminpct AS bill_bp_shelflifeminpct, + bbp.so_creditlimit AS bill_bp_so_creditlimit, + bbp.socreditstatus AS bill_bp_socreditstatus, + bbp.so_creditused AS bill_bp_so_creditused, + bbp.so_description AS bill_bp_so_description, + bbp.totalopenbalance AS bill_bp_totalopenbalance, + bbp.updated AS bill_bp_updated, + bbp.updatedby AS bill_bp_updatedby, + bbp.url AS bill_bp_url, + bbpl.ad_org_id AS bill_bp_location_ad_org_id, + bbpl.c_bpartner_id AS bill_bp_location_c_bpartner_id, + bbpl.created AS bill_bp_location_created, + bbpl.createdby AS bill_bp_location_createdby, + bbpl.c_salesregion_id AS bill_bp_location_c_salesreg_id, + bbpl.fax AS bill_bp_location_fax, + bbpl.isactive AS bill_bp_location_isactive, + bbpl.isbillto AS bill_bp_location_isbillto, + bbpl.isdn AS bill_bp_location_isdn, + bbpl.ispayfrom AS bill_bp_location_ispayfrom, + bbpl.isremitto AS bill_bp_location_isremitto, + bbpl.isshipto AS bill_bp_location_isshipto, + bbpl.name AS bill_bp_location_name, + bbpl.phone AS bill_bp_location_phone, + bbpl.phone2 AS bill_bp_location_phone2, + bbpl.updated AS bill_bp_location_updated, + bbpl.updatedby AS bill_bp_location_updatedby, + bbpc.ad_org_id AS bill_user_ad_org_id, + bbpc.ad_orgtrx_id AS bill_user_ad_orgtrx_id, + bbpc.birthday AS bill_user_ad_birthday, + bbpc.c_bpartner_id AS bill_user_c_bpartner_id, + bbpc.c_bpartner_location_id AS bill_user_c_bp_location_id, + bbpc.c_greeting_id AS bill_user_c_greeting_id, + bbpc.comments AS bill_user_comments, + bbpc.created AS bill_user_created, + bbpc.createdby AS bill_user_createdby, + bbpc.description AS bill_user_description, + bbpc.email AS bill_user_email, + bbpc.fax AS bill_user_fax, + bbpc.isactive AS bill_user_isactive, + bbpc.lastcontact AS bill_user_lastcontact, + bbpc.lastresult AS bill_user_lastresult, + bbpc.phone2 AS bill_user_phone2, + bbpc.supervisor_id AS bill_user_supervisor_id, + bbpc.updated AS bill_user_updated, + bbpc.updatedby AS bill_user_updatedby, + bbpc.value AS bill_user_value, + cur.cursymbol, + cur.description AS cur_description +FROM c_order o + JOIN c_doctype_trl dt + ON o.c_doctype_id = dt.c_doctype_id + JOIN m_warehouse wh + ON o.m_warehouse_id = wh.m_warehouse_id + JOIN c_paymentterm pt + ON o.c_paymentterm_id = pt.c_paymentterm_id + JOIN c_paymentterm_trl ptt + ON o.c_paymentterm_id = ptt.c_paymentterm_id AND dt.ad_language = ptt.ad_language + JOIN c_bpartner bp + ON o.c_bpartner_id = bp.c_bpartner_id + LEFT JOIN c_greeting bpg + ON bp.c_greeting_id = bpg.c_greeting_id + LEFT JOIN c_greeting_trl bpgt + ON bp.c_greeting_id = bpgt.c_greeting_id AND dt.ad_language = bpgt.ad_language + JOIN c_bpartner_location bpl + ON o.c_bpartner_location_id = bpl.c_bpartner_location_id + JOIN c_location l + ON bpl.c_location_id = l.c_location_id + LEFT JOIN ad_user bpc + ON o.ad_user_id = bpc.ad_user_id + LEFT JOIN c_greeting bpcg + ON bpc.c_greeting_id = bpcg.c_greeting_id + LEFT JOIN c_greeting_trl bpcgt + ON bpc.c_greeting_id = bpcgt.c_greeting_id AND dt.ad_language = bpcgt.ad_language + JOIN ad_orginfo oi + ON o.ad_org_id = oi.ad_org_id + JOIN ad_clientinfo ci + ON o.ad_client_id = ci.ad_client_id + LEFT JOIN ad_user u + ON o.salesrep_id = u.ad_user_id + LEFT JOIN c_bpartner ubp + ON u.c_bpartner_id = ubp.c_bpartner_id + JOIN c_bpartner bbp + ON o.bill_bpartner_id = bbp.c_bpartner_id + JOIN c_bpartner_location bbpl + ON o.bill_location_id = bbpl.c_bpartner_location_id + LEFT JOIN ad_user bbpc + ON o.bill_user_id = bbpc.ad_user_id + LEFT JOIN c_currency_trl cur + ON o.c_currency_id = cur.c_currency_id AND dt.ad_language = cur.ad_language +; + +SELECT register_migration_script('201304131454_IDEMPIERE-794.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304131924_IDEMPIERE-790.sql b/migration/i1.0a-release/postgresql/201304131924_IDEMPIERE-790.sql new file mode 100644 index 0000000000..787f6b8a7c --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304131924_IDEMPIERE-790.sql @@ -0,0 +1,12 @@ +-- Apr 13, 2013 7:23:49 PM COT +-- IDEMPIERE-790 Voiding PO should unlink SO it was created from +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-04-13 19:23:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55322 +; + +-- Apr 13, 2013 7:24:14 PM COT +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-04-13 19:24:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55323 +; + +SELECT register_migration_script('201304131924_IDEMPIERE-790.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304132014_IDEMPIERE-489.sql b/migration/i1.0a-release/postgresql/201304132014_IDEMPIERE-489.sql new file mode 100644 index 0000000000..2f2230f021 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304132014_IDEMPIERE-489.sql @@ -0,0 +1,8 @@ +-- Apr 13, 2013 8:13:48 PM COT +-- IDEMPIERE-489 Make use of AD_Language configuration +UPDATE AD_Column SET AD_Reference_Value_ID=NULL, AD_Reference_ID=20, Updated=TO_TIMESTAMP('2013-04-13 20:13:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13080 +; + +SELECT register_migration_script('201304132014_IDEMPIERE-489.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304132144_UUID_Generator.sql b/migration/i1.0a-release/postgresql/201304132144_UUID_Generator.sql new file mode 100644 index 0000000000..265213ed69 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304132144_UUID_Generator.sql @@ -0,0 +1,1128 @@ +-- Apr 13, 2013 9:43:34 PM COT +-- UUID Generator +UPDATE AD_Column SET AD_Column_UU='01a4af50-035b-4083-8a15-97e962bca37e' WHERE AD_Column_ID=200621 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='8ca6582a-6adf-496f-b317-18726fac0b95' WHERE AD_Column_ID=200622 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='af2b3983-1922-43d8-8338-013bab39965a' WHERE AD_Column_ID=200623 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='e7a3eb1f-51bb-42cb-8c38-81d50d36e351' WHERE AD_Column_ID=200626 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='3235655e-94ab-4598-9819-7b16cdf0633d' WHERE AD_Column_ID=200627 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='8bdb8f4b-68c8-4abf-b1a2-e6a6f651e3e4' WHERE AD_Column_ID=200628 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='15cf9b2a-cf49-4c4d-aa25-6e5b699e2d55' WHERE AD_Column_ID=200629 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='dffe47b0-afc7-4023-b5a8-a29e3fe57136' WHERE AD_Column_ID=200630 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='126161fe-f9ea-4314-9da4-08058d165193' WHERE AD_Column_ID=200631 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='141a79b0-1a53-4fc3-8782-854646fda511' WHERE AD_Column_ID=200632 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='067242b7-a784-408f-8b4c-0912ea38daff' WHERE AD_Column_ID=200633 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='1854e1bc-88da-4245-947b-8ea4a006be2e' WHERE AD_Column_ID=200634 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='f7fd3e2c-1197-4d9b-81ef-d249ecffa102' WHERE AD_Column_ID=200639 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='48b4a601-7e99-4b85-a758-b55ddb09735f' WHERE AD_Column_ID=200636 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='1714b2d4-f66e-44b9-be14-7e9b9932cc25' WHERE AD_Column_ID=200638 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='24d12f7e-5eb5-43b5-8c60-0221ec3dbaac' WHERE AD_Column_ID=200637 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='1324ba19-0f14-4929-af8c-030593d53a0c' WHERE AD_Column_ID=200614 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='ccfb506d-3c22-452f-ad6c-ee5c815e585a' WHERE AD_Column_ID=200615 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='8783e72f-e74b-46e0-867d-598ff3c3dded' WHERE AD_Column_ID=200616 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='c2c7bdca-c08e-48ab-a62c-cd6fdb78ce70' WHERE AD_Column_ID=200617 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='889c260b-b21a-4f58-a497-ab7a9897088b' WHERE AD_Column_ID=200618 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='f778998b-327d-4998-a745-968bfc2cbc9c' WHERE AD_Column_ID=200619 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='b6c8135b-a4f6-4bdb-b2c7-6b432d4e4349' WHERE AD_Column_ID=200620 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='7e54fc25-4b31-451a-95d1-7a3744e583a5' WHERE AD_Column_ID=200635 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='13553e5c-051e-42f8-bb8c-4a25ee92560f' WHERE AD_Column_ID=200640 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='a7cf56b4-27ce-4730-8e96-368ab1a464af' WHERE AD_Column_ID=200704 +; + +-- Apr 13, 2013 9:43:34 PM COT +UPDATE AD_Column SET AD_Column_UU='3ac2d4aa-b904-4ef7-9015-bf8895688149' WHERE AD_Column_ID=56695 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='4b86a0db-216b-40d4-992e-9aaba873f4ec' WHERE AD_Column_ID=200585 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f76258f9-9449-4ebc-a143-918af5acb471' WHERE AD_Column_ID=61939 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='9e2aa74a-41bf-4f2b-b925-cd84ca1c3f4d' WHERE AD_Column_ID=56694 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d68007b5-a66b-4443-933b-bddc77549bcc' WHERE AD_Column_ID=56696 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='87041bdd-f6cc-48d1-953b-76ce86ed9659' WHERE AD_Column_ID=56697 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='28f57261-fb76-432f-bb3c-02f25ea48c54' WHERE AD_Column_ID=56698 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e4875a2a-83bd-4f76-a73f-685dd301db04' WHERE AD_Column_ID=56699 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ac60c3d5-3d18-431a-873e-9b20d24190a6' WHERE AD_Column_ID=56700 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f2c6486a-0f9d-4b9f-bcfb-e440741f6a78' WHERE AD_Column_ID=56701 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='021f048a-1337-4383-b122-a6f52d8037ed' WHERE AD_Column_ID=56702 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e7a706a0-4cb8-4bc3-b279-ac3247ef68a7' WHERE AD_Column_ID=56703 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7cee1f17-76ba-4ba8-832e-44fe105c10a2' WHERE AD_Column_ID=56704 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='71b475f7-89b3-432d-9e49-ed94dda7ee9d' WHERE AD_Column_ID=56705 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='81cd2924-22e5-41eb-abb9-98b3839a237c' WHERE AD_Column_ID=56706 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f7fed18a-d7a9-4deb-979e-f03ad496c02f' WHERE AD_Column_ID=56707 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f23f8182-3a19-4b3f-88b4-b01274ef9c54' WHERE AD_Column_ID=56708 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='b88f59d9-aefc-4230-8301-466fce68c911' WHERE AD_Column_ID=56709 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ae5c7bc7-2d9a-4a53-9b6b-1ccbb97ac161' WHERE AD_Column_ID=56710 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='3128b1b5-9a05-4123-88c8-4209eb7f2bb7' WHERE AD_Column_ID=56711 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='165203f6-c7d4-4a85-a56f-23aefabfc769' WHERE AD_Column_ID=56712 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='20bfdcb6-6ce6-4d4f-8a7c-c2a09021b757' WHERE AD_Column_ID=56713 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='dcaff0ac-c216-460d-815d-678510746b36' WHERE AD_Column_ID=56715 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ee288b11-1b03-4e39-86d2-2738d08bae97' WHERE AD_Column_ID=56716 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='b90f818e-5562-45b9-ba73-a2b95064eb50' WHERE AD_Column_ID=56717 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='08e7a5bf-603e-438e-b129-b227bba0f3b4' WHERE AD_Column_ID=56718 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='94309cd2-d83d-4479-8fb8-9cc146ca17ef' WHERE AD_Column_ID=56719 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='bc75cf77-16c2-4ff7-b3bc-294b9562aa0b' WHERE AD_Column_ID=56720 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='41554e33-ee30-44fb-84a8-9eda95584668' WHERE AD_Column_ID=56721 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='f02523e0-b992-4180-b6f4-2a4608dbd11a' WHERE AD_Column_ID=56722 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e28ea624-dc7d-4f38-b7ba-101d2e7cbc81' WHERE AD_Column_ID=56723 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='fc108646-bf30-43bf-beb6-38ea5206aba7' WHERE AD_Column_ID=56724 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ce695b97-3d8b-4876-a02b-525b877b3613' WHERE AD_Column_ID=56725 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d7dabac8-29ec-44f9-9f13-0c1a35292830' WHERE AD_Column_ID=56726 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='c980df81-4f24-4be2-b436-3af60c8fb3d4' WHERE AD_Column_ID=56727 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='11c76862-3864-4642-a83e-f11ad06854f5' WHERE AD_Column_ID=56728 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='e542b49b-13f7-4761-b08c-417d6d88810d' WHERE AD_Column_ID=56729 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='fbc03b32-7ce7-4b2e-b1f8-9080e54e5c69' WHERE AD_Column_ID=56731 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7684bf41-1d8d-4505-bb2b-b58b016bab8e' WHERE AD_Column_ID=56732 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ca15e44b-cab9-46c4-a85f-23bdced56122' WHERE AD_Column_ID=56733 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='caca95ec-4efc-4e3f-84a2-d1b77c54c5fb' WHERE AD_Column_ID=56735 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='96f2c984-7e0c-46fd-85f4-22619a70ada7' WHERE AD_Column_ID=56737 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='146833ae-4b2f-4934-9041-b11e02845178' WHERE AD_Column_ID=56738 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d658c12c-6dff-49b7-9628-633d04942460' WHERE AD_Column_ID=56739 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='39a72da7-4352-4618-a2ec-17a7d0a39e0d' WHERE AD_Column_ID=56740 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='ada48fcc-89dc-4f64-a58d-f6211880c824' WHERE AD_Column_ID=56741 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='5a5e1a5c-32b9-4020-834b-8fe9f35b8a89' WHERE AD_Column_ID=56736 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='6e989148-c01d-462b-9be8-26ec5a55ff46' WHERE AD_Column_ID=56742 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='75e987e1-98c2-4ab8-863b-a46282f86592' WHERE AD_Column_ID=56743 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7c697594-5b99-493d-ac49-29fc0352b750' WHERE AD_Column_ID=56744 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='2ee426c1-7066-4c75-b406-fbd566f37633' WHERE AD_Column_ID=56734 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='a9e663c2-dfea-4fe2-b4a0-def0606f5289' WHERE AD_Column_ID=56747 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='4eea1d33-be41-41df-a7be-0e812f811a12' WHERE AD_Column_ID=56749 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='46038268-89d8-4e9e-bcfe-32d1f3e47870' WHERE AD_Column_ID=56750 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='dc214e11-5c38-448f-98fb-4403b664b49d' WHERE AD_Column_ID=56751 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='c9eb1528-b3f1-4fc1-a8c4-12970d94f5ea' WHERE AD_Column_ID=56752 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='7c5ed753-39d7-4393-95ea-573c6836e29b' WHERE AD_Column_ID=56753 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='5af19bb6-a427-473a-b290-72974244e491' WHERE AD_Column_ID=56754 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='d1ba1047-fe5d-4aba-b454-7603f56bb328' WHERE AD_Column_ID=56748 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='a1fd4f9b-3019-4a8d-b898-91eebaf41502' WHERE AD_Column_ID=56755 +; + +-- Apr 13, 2013 9:43:35 PM COT +UPDATE AD_Column SET AD_Column_UU='a33483ae-d394-4a06-9ed9-79965e0dffbf' WHERE AD_Column_ID=56757 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='3978f586-3cb4-451b-b077-ef980a1e36ff' WHERE AD_Column_ID=56758 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='8ea8c702-641f-432f-80a1-6adfc901d679' WHERE AD_Column_ID=56759 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='611e7302-3dca-4cf8-8088-8b389eb42312' WHERE AD_Column_ID=56760 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='0a35a96c-182a-4fc3-b340-4ba92f409b0d' WHERE AD_Column_ID=56761 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='1d897342-8d20-4e18-a03c-0f40073f0c08' WHERE AD_Column_ID=56762 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='617681e3-a087-4de7-bdb1-bd1468fe97ae' WHERE AD_Column_ID=56763 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='b99677ee-af96-48da-940b-8f75c480d93a' WHERE AD_Column_ID=56764 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='4fba0f46-91da-4101-9ba6-c5ac8d47f21d' WHERE AD_Column_ID=56765 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='5b002e8e-3ef6-4363-91e1-b9675e05f3ce' WHERE AD_Column_ID=56767 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='21bf3822-51c1-4eef-b0cf-0db2ef09b41d' WHERE AD_Column_ID=56768 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='f0504125-cffc-4d64-9565-af6810e5eee7' WHERE AD_Column_ID=56770 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='c51d9cd1-5757-4929-9aaa-0ed479d023b8' WHERE AD_Column_ID=56771 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='4b18c324-755b-4e56-83a1-3cd6282f7af6' WHERE AD_Column_ID=56772 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='3ab48953-158f-4050-908a-7e5b455277b8' WHERE AD_Column_ID=56773 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='ac37c7fa-3486-458e-ae1b-d3190f7ca1a9' WHERE AD_Column_ID=56774 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='d0f641d3-dd5d-4fab-b055-3314e18a3f7d' WHERE AD_Column_ID=56775 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='ae9e1d9c-d020-41d3-89fb-da83dffa5ae9' WHERE AD_Column_ID=56769 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='c24d5f8c-96ea-4def-8b59-b4c0402f50af' WHERE AD_Column_ID=56745 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='bfaf2d56-ef68-432c-bf95-7cfa66920302' WHERE AD_Column_ID=56714 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='a7ac9f27-54cf-45f8-b903-a502595b6a14' WHERE AD_Column_ID=56730 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='0c14c682-49db-4fe4-9184-3100d0473df5' WHERE AD_Column_ID=56746 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='77be2dc1-8741-457e-acc3-faf2f831e9f9' WHERE AD_Column_ID=56756 +; + +-- Apr 13, 2013 9:43:36 PM COT +UPDATE AD_Column SET AD_Column_UU='d5373920-54b9-4718-bee4-30950cf942df' WHERE AD_Column_ID=56766 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='7134841c-d138-43d5-b275-01b861901be7' WHERE AD_Element_ID=53766 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='f6abafb9-0954-49e5-9fe8-d625189c1479' WHERE AD_Element_ID=53767 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='6c8d3b80-f036-4093-9f7f-6f7a50c6f77f' WHERE AD_Element_ID=53768 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='f1aa9a7f-76db-47f0-be1c-2840e449472d' WHERE AD_Element_ID=53769 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='e93755d2-e066-442d-8e2c-1b320f87057d' WHERE AD_Element_ID=53770 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='02023e27-24cb-40e1-b6ea-2764da45bf3f' WHERE AD_Element_ID=53771 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='4addaeaf-875f-4ebe-ab98-69794edeb456' WHERE AD_Element_ID=53772 +; + +-- Apr 13, 2013 9:43:47 PM COT +UPDATE AD_Element SET AD_Element_UU='8b8c0e1b-b73b-44fc-b941-903aa5bc9e2b' WHERE AD_Element_ID=200188 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='f7f37a72-3270-45d8-bc86-ca800bb9f7a4' WHERE AD_Field_ID=200649 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='a4f9c220-715f-4db1-9575-16419f11fb1c' WHERE AD_Field_ID=200843 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='5240bf98-1ab3-49e5-9ea2-e75b3af368c9' WHERE AD_Field_ID=200839 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='52a4f881-0969-4f76-b22a-0dc0c1a28de7' WHERE AD_Field_ID=200840 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='4d647a46-9526-44c8-9b69-703cfb3f6451' WHERE AD_Field_ID=200844 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='11af92f6-1fd8-4236-b211-b7024ab7aa5b' WHERE AD_Field_ID=200846 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='498a7af2-3090-48ee-901d-2bf798d6571b' WHERE AD_Field_ID=200842 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='85152ad2-357f-4266-a1b6-dbb9f57a7e25' WHERE AD_Field_ID=200847 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='16e707f7-21de-48bc-a047-d4d84c40f2ca' WHERE AD_Field_ID=200845 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='4b6a7663-ab60-4ca0-b809-989e86960776' WHERE AD_Field_ID=56644 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='424a9cee-c382-4205-b6bf-5d99b0742894' WHERE AD_Field_ID=56629 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='277004ac-e69f-4533-9923-df34770901c2' WHERE AD_Field_ID=56634 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='2b467a1e-af47-4140-a742-af70b400e62a' WHERE AD_Field_ID=56647 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='853672fc-69c2-4779-a30e-6884bbecec48' WHERE AD_Field_ID=56648 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='c69401a1-9f68-4416-a648-ec1c64bffd02' WHERE AD_Field_ID=200599 +; + +-- Apr 13, 2013 9:43:49 PM COT +UPDATE AD_Field SET AD_Field_UU='6339c5f6-4ae2-4cac-b9e5-5d870f24f850' WHERE AD_Field_ID=200600 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='d68096da-0692-4647-8f47-8c6472f17fab' WHERE AD_Field_ID=61967 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='d6feb078-a9e4-46df-9a48-86fd469eabfe' WHERE AD_Field_ID=56628 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='21447469-d7c4-46d0-a65e-6de08136acae' WHERE AD_Field_ID=56630 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='b5a9fd60-494c-4219-9482-d2faa290d612' WHERE AD_Field_ID=56631 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='35135637-dad0-4b61-ab28-1f0b0ac994ed' WHERE AD_Field_ID=56632 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='08e73bee-7bdd-4c33-85aa-e47abc50c6b0' WHERE AD_Field_ID=56633 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='7f7bb152-9728-4b3e-938a-55c46f190687' WHERE AD_Field_ID=56635 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='bca0cdd6-e5c4-4c60-b4bb-d343f713b335' WHERE AD_Field_ID=56636 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='fa13473a-8447-41d5-985b-33e52b35ed28' WHERE AD_Field_ID=56637 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='8e8d4130-1e15-4127-a3fb-f25ee5e3ac17' WHERE AD_Field_ID=56638 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='dfb164cf-835c-44f8-a894-a253aa857831' WHERE AD_Field_ID=56639 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='ae915110-a314-404f-b34a-dda6c7ab6b21' WHERE AD_Field_ID=56640 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='86259757-bfed-4f40-adb7-0234c9470fda' WHERE AD_Field_ID=56641 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='f25897d0-e5c1-4a6a-a873-eae872d78a7f' WHERE AD_Field_ID=56642 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='2863260a-d439-4a9c-bad6-7d6326411838' WHERE AD_Field_ID=56643 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='3eaa1502-5d32-43f1-b709-ee01a35e8c83' WHERE AD_Field_ID=56649 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='4c91f076-b72d-4eea-9b25-7f1880a42482' WHERE AD_Field_ID=56650 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='a30cec37-8e39-4379-9ce9-6ea67798db10' WHERE AD_Field_ID=56651 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='0f33a205-c487-402d-82dc-7f90caeecddb' WHERE AD_Field_ID=56652 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='7f56eb32-5ea3-46cb-a5b8-ce33a0485fe3' WHERE AD_Field_ID=56653 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='3cbdc01e-b0e4-4b69-a3a1-7ab15d269f75' WHERE AD_Field_ID=56654 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='4eb45235-01c4-42f9-8b47-c7aabff0cc5c' WHERE AD_Field_ID=56655 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='37a514eb-3ef0-45b1-b591-6f53e5381d10' WHERE AD_Field_ID=56646 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='64b763a0-a94d-4540-97f2-8271b5c1c75b' WHERE AD_Field_ID=56662 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='d8df6125-489d-4a10-8f54-354a6ce59209' WHERE AD_Field_ID=56645 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='b2b4ea9a-05db-410c-a758-91aaa100ead7' WHERE AD_Field_ID=56656 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='c81dd63d-6f01-4c68-b087-a8466bc5f68c' WHERE AD_Field_ID=56658 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='51e17761-de55-445d-8644-7d9888f6eccc' WHERE AD_Field_ID=56659 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='335b83b3-c879-4206-b2e5-40a9f865e175' WHERE AD_Field_ID=56660 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='62dbccc1-c667-41bd-ae7b-8710536336da' WHERE AD_Field_ID=56661 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='67276e92-768c-459f-9df5-bf86f289b377' WHERE AD_Field_ID=56663 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='7b0510e8-5ce3-40a8-9d5c-513070140fbc' WHERE AD_Field_ID=56666 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='dbcb2dd4-6ecc-41f2-bea1-42e65e1a4e2b' WHERE AD_Field_ID=56667 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='3ccd28bf-81fa-4032-a1bc-5d4fa642614b' WHERE AD_Field_ID=56668 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='ef7d1b53-2c16-4f58-a82b-573a9de6747f' WHERE AD_Field_ID=56665 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='814ff41e-ecbf-4872-82ff-93e61e635a8d' WHERE AD_Field_ID=56669 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='f47617d8-f567-4cb4-8dfe-d36b65f5a433' WHERE AD_Field_ID=56664 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='c4f515f8-d9af-4354-9eb6-9921ef9786b9' WHERE AD_Field_ID=56670 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='9de9487e-83d5-41ac-8e7a-4bbca1177595' WHERE AD_Field_ID=56672 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='81de7b2a-516a-4294-89b5-90386a272dc9' WHERE AD_Field_ID=56673 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='8a6f3e8b-00f5-48d2-9e8a-e204649a233d' WHERE AD_Field_ID=56674 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='f6c7acb0-5d8c-4965-9802-7634f73993cb' WHERE AD_Field_ID=56675 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='9bb32bd9-8a7e-4839-acfe-b445b06e0c43' WHERE AD_Field_ID=56676 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='32b8ef8e-bd33-491e-b150-0722f247e3ec' WHERE AD_Field_ID=56677 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='52856242-e6d1-43b9-beac-30a3a3a23bb7' WHERE AD_Field_ID=56678 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='af669990-8079-4c9a-8d97-8bdc90245216' WHERE AD_Field_ID=56679 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='370c4f71-7df8-4d80-b573-7b6aea955303' WHERE AD_Field_ID=56680 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='72d6244b-56a2-4122-8cb1-cbec981821ad' WHERE AD_Field_ID=56681 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='739cf6db-9151-43ad-bfb8-a71142bf075b' WHERE AD_Field_ID=200841 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='67c07d05-168f-4c2c-a688-ff2e0fe74603' WHERE AD_Field_ID=56657 +; + +-- Apr 13, 2013 9:43:50 PM COT +UPDATE AD_Field SET AD_Field_UU='c0844439-118f-425f-8ee6-e83ac2d1382e' WHERE AD_Field_ID=56671 +; + +-- Apr 13, 2013 9:44:02 PM COT +UPDATE AD_Menu SET AD_Menu_UU='57d16e27-60fa-47ea-b686-4747b18e7532' WHERE AD_Menu_ID=53200 +; + +-- Apr 13, 2013 9:44:02 PM COT +UPDATE AD_Menu SET AD_Menu_UU='7be85b76-2f0b-43cd-b807-bd6c47a6e6c7' WHERE AD_Menu_ID=53201 +; + +-- Apr 13, 2013 9:44:04 PM COT +UPDATE AD_Process SET AD_Process_UU='7f5402d4-9b91-4ac8-9bcd-a5b6b995d918' WHERE AD_Process_ID=200012 +; + +-- Apr 13, 2013 9:44:04 PM COT +UPDATE AD_Process_Para SET AD_Process_Para_UU='e3d63000-d28f-4c41-8bfb-4cb49fd1a017' WHERE AD_Process_Para_ID=200043 +; + +-- Apr 13, 2013 9:44:05 PM COT +UPDATE AD_Reference SET AD_Reference_UU='1b6497fd-bd10-4974-9877-09874cbe4885' WHERE AD_Reference_ID=53288 +; + +-- Apr 13, 2013 9:44:05 PM COT +UPDATE AD_Ref_List SET AD_Ref_List_UU='a06cad2b-3c86-4add-8093-4478a8b55cb2' WHERE AD_Ref_List_ID=53452 +; + +-- Apr 13, 2013 9:44:05 PM COT +UPDATE AD_Ref_List SET AD_Ref_List_UU='4faecb14-90aa-4546-97bb-750e2b92a981' WHERE AD_Ref_List_ID=53451 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Role SET AD_Role_UU='d9507a38-d669-4ea2-8e26-51c16614b934' WHERE AD_Role_ID=50004 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='34926aac-6f08-4517-90d0-0a443278b349' WHERE AD_Sequence_ID=53270 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='114ec463-e43e-4409-b8db-6918dd9a3e71' WHERE AD_Sequence_ID=53269 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='1982ebca-3984-46d4-9c39-af93badaf59d' WHERE AD_Sequence_ID=53268 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='5790969a-c494-4cef-818e-5d005d4ab0e2' WHERE AD_Sequence_ID=53266 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='44cc7d37-81a6-427b-ad2b-028651ead3c1' WHERE AD_Sequence_ID=53265 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='84beca7c-d07a-4755-937f-3090c0d0d735' WHERE AD_Sequence_ID=53264 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='371734de-998b-4d44-b1b1-0c6aad68d13e' WHERE AD_Sequence_ID=53262 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='f5b86ae0-ef0e-4cf9-b6e2-c730c6a566ee' WHERE AD_Sequence_ID=53261 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='714304c0-a319-498b-a139-bd9d6d7cb721' WHERE AD_Sequence_ID=53260 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='47de001f-3e22-4bcc-b706-1a4713ee469a' WHERE AD_Sequence_ID=53259 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='bfc1b4dc-21b8-4d62-98bf-4575b0f4a42c' WHERE AD_Sequence_ID=53258 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='2eecea2e-6096-4a3a-9d61-3a6ac73b1ba0' WHERE AD_Sequence_ID=53257 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='07ebff64-efe0-428a-8f41-d1c7932db721' WHERE AD_Sequence_ID=53256 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='84f56c57-752d-4457-85ce-3d7675604089' WHERE AD_Sequence_ID=200027 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Sequence SET AD_Sequence_UU='2ea6d9c7-e635-4667-b787-e774da16915b' WHERE AD_Sequence_ID=200026 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='b519bc95-9d3b-4623-a0db-df00df1f0a48' WHERE AD_Tab_ID=200031 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='21a4440d-067c-45cc-bfef-16ff2e272ce7' WHERE AD_Tab_ID=53191 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='21d967ed-2e82-4ddc-b13a-d8846406f253' WHERE AD_Tab_ID=53190 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='06d30678-94b4-4957-bd4b-813e2f1f2e87' WHERE AD_Tab_ID=53185 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='3785dc7a-d157-4d82-a52a-52d237d5567b' WHERE AD_Tab_ID=53186 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='280c3da6-7228-4db2-a74e-1e0e9538a2bb' WHERE AD_Tab_ID=53187 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='a1ea44a6-213a-4028-bc4f-16bb8ded6222' WHERE AD_Tab_ID=53188 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Tab SET AD_Tab_UU='5fd0b27f-8cbe-4207-9cee-828215d55319' WHERE AD_Tab_ID=53189 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='8f644730-2f5b-4ff9-a6c1-f04d199278c3' WHERE AD_Table_ID=53168 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='edc84751-b64a-4b5e-b57d-3ba4c247d08a' WHERE AD_Table_ID=53167 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='7994f729-7c9d-426f-999b-791c9d0009f9' WHERE AD_Table_ID=53166 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='91c1be6d-08d7-4575-9676-fafe7687dd04' WHERE AD_Table_ID=53165 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='1d170e1d-9f22-4299-985a-6f713b19cd06' WHERE AD_Table_ID=53164 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='06637401-49d6-438b-912e-7e5901337bb2' WHERE AD_Table_ID=53163 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='6fc05546-b51a-4990-b163-9c228b84a61b' WHERE AD_Table_ID=53162 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='05c8c42f-bc0d-4fa4-9e76-d7e6194efd62' WHERE AD_Table_ID=200027 +; + +-- Apr 13, 2013 9:44:06 PM COT +UPDATE AD_Table SET AD_Table_UU='d0fb9988-fb24-4d38-88c3-93ec15662b6c' WHERE AD_Table_ID=200026 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_TreeBar SET AD_TreeBar_UU='3e9969f0-3f00-460c-bf31-f0198e806654',Updated=TO_TIMESTAMP('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE Node_ID=495 AND AD_Tree_ID=10 AND AD_User_ID=0 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='632973fc-4ed9-43c9-a61f-a83874807ea3',Updated=TO_TIMESTAMP('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53201 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_TreeNodeMM SET AD_TreeNodeMM_UU='318f234c-7140-4400-b409-198179ae47bd',Updated=TO_TIMESTAMP('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53200 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_User SET AD_User_UU='e904b07d-e23b-4494-8bff-066efc7cae83' WHERE AD_User_ID=50001 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_User_Roles SET AD_User_Roles_UU='9777948f-e98f-42eb-afd3-75a433c09bff',Updated=TO_TIMESTAMP('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND AD_User_ID=100 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_User_Roles SET AD_User_Roles_UU='8f246aed-d8da-421a-bd4d-73c4c258ab85',Updated=TO_TIMESTAMP('2013-04-13 21:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND AD_User_ID=50001 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_Val_Rule SET AD_Val_Rule_UU='a7083858-e66a-46d4-a0c3-de7d225134ed' WHERE AD_Val_Rule_ID=52044 +; + +-- Apr 13, 2013 9:44:07 PM COT +UPDATE AD_Val_Rule SET AD_Val_Rule_UU='81451e7b-4f8d-4233-a8a0-4bae2b9a9f7c' WHERE AD_Val_Rule_ID=200008 +; + +-- Apr 13, 2013 9:44:08 PM COT +UPDATE AD_Window SET AD_Window_UU='a9874196-95b5-445b-8de5-0b31fce0c765' WHERE AD_Window_ID=53068 +; + +-- Apr 13, 2013 9:44:08 PM COT +UPDATE AD_Window SET AD_Window_UU='0d708224-ee1d-4d60-9df4-c1963f32908e' WHERE AD_Window_ID=53067 +; + +-- Apr 13, 2013 9:44:11 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (1.00,200070,210244,'U','N','N','N','N',36,'N',10,'N',202253,'27c17fc3-9fed-46a0-9140-cf066fe26aed','Y','T_BankRegister_UU','T_BankRegister_UU',TO_TIMESTAMP('2013-04-13 21:44:10','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 21:44:10','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 9:44:11 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210244 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 9:44:11 PM COT +ALTER TABLE T_BankRegister ADD COLUMN T_BankRegister_UU VARCHAR(36) DEFAULT NULL +; + +-- Apr 13, 2013 9:44:11 PM COT +CREATE UNIQUE INDEX T_BankRegister_UU_idx ON t_bankregister(T_BankRegister_UU) +; + +-- Apr 13, 2013 9:44:12 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('WS_WebService_UU',202510,'U','WS_WebService_UU','WS_WebService_UU','0999f664-7498-4f21-b9a9-23928c9eb3b1',TO_TIMESTAMP('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 9:44:12 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202510 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 9:44:13 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (1.00,53162,210245,'U','N','N','N','N',36,'N',10,'N',202510,'d44a3ff8-1030-4d25-bc59-eb9375556e28','Y','WS_WebService_UU','WS_WebService_UU',TO_TIMESTAMP('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 21:44:12','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 9:44:13 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210245 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 9:44:13 PM COT +ALTER TABLE WS_WebService ADD COLUMN WS_WebService_UU VARCHAR(36) DEFAULT NULL +; + +-- Apr 13, 2013 9:44:13 PM COT +CREATE UNIQUE INDEX WS_WebService_UU_idx ON ws_webservice(WS_WebService_UU) +; + +-- Apr 13, 2013 9:44:13 PM COT +UPDATE WS_WebService SET WS_WebService_UU='55fbf210-3daa-49d4-b3d6-a82558cbdc78' WHERE WS_WebService_ID=50001 +; + +-- Apr 13, 2013 9:44:13 PM COT +UPDATE WS_WebService SET WS_WebService_UU='294ebf4d-6661-4074-9a75-4dd7d80bd539' WHERE WS_WebService_ID=200001 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='f5b29ff7-7be3-422e-ae03-3c1cc3ddaeb8' WHERE WS_WebServiceFieldInput_ID=50000 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='8d09bba0-e542-4a78-b229-9ca492060365' WHERE WS_WebServiceFieldInput_ID=50001 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='78211c03-dd6c-4f25-9fa6-6b7584b34c15' WHERE WS_WebServiceFieldInput_ID=50002 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='29bf9b91-6159-46df-8883-e1bdd80ac05b' WHERE WS_WebServiceFieldInput_ID=50003 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='a69bdeb1-c736-4f0d-bde5-1eba00d7a007' WHERE WS_WebServiceFieldInput_ID=50004 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='ae1867fe-23b0-4a53-9224-a7b9592f3b78' WHERE WS_WebServiceFieldInput_ID=50005 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='84880422-b857-45b8-9490-e792703935b3' WHERE WS_WebServiceFieldInput_ID=50006 +; + +-- Apr 13, 2013 9:44:14 PM COT +UPDATE WS_WebServiceFieldInput SET WS_WebServiceFieldInput_UU='1d8a44e2-9b2a-4be9-b09d-843009388616' WHERE WS_WebServiceFieldInput_ID=50007 +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID) VALUES ('WS_WebServiceMethod_UU',202511,'U','WS_WebServiceMethod_UU','WS_WebServiceMethod_UU','f8cbb4f8-3e5b-4bcb-876d-49e4e33e366d',TO_TIMESTAMP('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0) +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202511 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,AD_Client_ID) VALUES (1.00,53163,210246,'U','N','N','N','N',36,'N',10,'N',202511,'87b8210a-638c-4120-af13-73d13f2b35cc','Y','WS_WebServiceMethod_UU','WS_WebServiceMethod_UU',TO_TIMESTAMP('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-04-13 21:44:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0) +; + +-- Apr 13, 2013 9:44:15 PM COT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210246 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Apr 13, 2013 9:44:15 PM COT +ALTER TABLE WS_WebServiceMethod ADD COLUMN WS_WebServiceMethod_UU VARCHAR(36) DEFAULT NULL +; + +-- Apr 13, 2013 9:44:16 PM COT +CREATE UNIQUE INDEX WS_WebServiceMethod_UU_idx ON ws_webservicemethod(WS_WebServiceMethod_UU) +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='8a1b0ca4-4744-493e-8118-094ebcbda4c9' WHERE WS_WebServiceMethod_ID=50021 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='96888688-eb3f-4742-b63c-f717d563ca0d' WHERE WS_WebServiceMethod_ID=50022 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='2ba1359c-b3b6-4ac2-89dd-7410c9974597' WHERE WS_WebServiceMethod_ID=50023 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='13d93556-a526-4459-9011-58eda6fb9adc' WHERE WS_WebServiceMethod_ID=50024 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='ecb19fd4-d235-4877-a87a-633c06e6ae04' WHERE WS_WebServiceMethod_ID=50025 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='9284c78a-bd93-4d1a-9b32-f11b5dd728bd' WHERE WS_WebServiceMethod_ID=50026 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='586c21e5-2e1c-4ebe-a292-d034df938db8' WHERE WS_WebServiceMethod_ID=50027 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='f4031e95-93e1-4719-a3a1-fe775667c920' WHERE WS_WebServiceMethod_ID=50028 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceMethod SET WS_WebServiceMethod_UU='a7d42f74-c069-440d-b28e-4cf0aba87c2b' WHERE WS_WebServiceMethod_ID=200001 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='decd86e1-093d-431e-be4a-127d5a235bfd' WHERE WS_WebService_Para_ID=50000 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='e4df7266-3948-4c47-bf33-710f7dd71230' WHERE WS_WebService_Para_ID=50001 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='fb9d4028-9ce5-4836-80b3-2e67032f9df2' WHERE WS_WebService_Para_ID=50002 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='6c551234-fec0-4518-80b8-78dc79b3714f' WHERE WS_WebService_Para_ID=50003 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='e8c27528-7715-48eb-9bd0-10a3ae44832d' WHERE WS_WebService_Para_ID=50004 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='de8a1882-dcae-4166-9b34-f623d3314281' WHERE WS_WebService_Para_ID=50005 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebService_Para SET WS_WebService_Para_UU='595c04ff-f227-4f67-a12d-2bd59cde154d' WHERE WS_WebService_Para_ID=50006 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceType SET WS_WebServiceType_UU='90c6a206-62ac-4a77-9192-2cf9cb5f3e7b' WHERE WS_WebServiceType_ID=50000 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceType SET WS_WebServiceType_UU='e69debe3-0b96-424b-82cf-8a93eda53568' WHERE WS_WebServiceType_ID=50001 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceTypeAccess SET WS_WebServiceTypeAccess_UU='ee03a61b-2b1d-447f-a2ba-6281a62db226',Updated=TO_TIMESTAMP('2013-04-13 21:44:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND WS_WebServiceType_ID=50000 +; + +-- Apr 13, 2013 9:44:16 PM COT +UPDATE WS_WebServiceTypeAccess SET WS_WebServiceTypeAccess_UU='f684e71c-d611-40d0-980c-3b7fe23fc2a9',Updated=TO_TIMESTAMP('2013-04-13 21:44:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50004 AND WS_WebServiceType_ID=50001 +; + +SELECT register_migration_script('201304132144_UUID_Generator.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql b/migration/i1.0a-release/postgresql/201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql new file mode 100644 index 0000000000..4685ac9956 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql @@ -0,0 +1,105 @@ +-- 06 Mar 13 17:14:53 +-- BF: Database Error.: ERROR: null value in column "isapproved" violates not-null constraint +UPDATE AD_Column SET DefaultValue='N', IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-03-06 17:14:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59482 +; + +-- 06 Mar 13 17:14:58 +INSERT INTO t_alter_column values('a_asset_disposed','IsApproved','CHAR(1)',null,'N') +; + +-- 06 Mar 13 17:14:58 +UPDATE A_Asset_Disposed SET IsApproved='N' WHERE IsApproved IS NULL +; + +-- 06 Mar 13 17:20:07 +UPDATE AD_Column SET DefaultValue='0',Updated=TO_TIMESTAMP('2013-03-06 17:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55844 +; + +-- 06 Mar 13 17:20:15 +INSERT INTO t_alter_column values('a_asset_change','AssetValueAmt','NUMERIC',null,'0') +; + +-- 06 Mar 13 17:20:15 +UPDATE A_Asset_Change SET AssetValueAmt=0 WHERE AssetValueAmt IS NULL +; + +-- 06 Mar 13 17:43:54 +UPDATE AD_Column SET ColumnSQL=NULL, DefaultValue='''N''', IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-03-06 17:43:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59319 +; + +-- 06 Mar 13 17:44:01 +ALTER TABLE A_Asset_Info_Fin ADD COLUMN Processed CHAR(1) DEFAULT 'N' CHECK (Processed IN ('Y','N')) +; + +-- 06 Mar 13 17:42:19 +UPDATE AD_Column SET ColumnSQL=NULL, DefaultValue='''N''', IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-03-06 17:42:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59320 +; + +-- 06 Mar 13 17:42:22 +ALTER TABLE A_Asset_Info_Lic ADD COLUMN Processed CHAR(1) DEFAULT 'N' CHECK (Processed IN ('Y','N')) +; +-- 08 Mar 13 15:20:40 +-- On Create Depreciation Entry, Accounting Date set default to Doc Date +UPDATE AD_Column SET DefaultValue='@#Date@', Callout='org.compiere.model.CalloutEngine.dateAcct',Updated=TO_TIMESTAMP('2013-03-08 15:20:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55551 +; + +-- Asset Disposed Process +Update ad_process set isbetafunctionality='N' where ad_process_id=53210; + + +-- 11 Mar 13 14:29:08 +-- A_AssetGroup.AD_Org_ID +UPDATE AD_Column SET IsUpdateable='N',DefaultValue='0', Updated=TO_TIMESTAMP('2013-03-11 14:29:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=8110 +; + +-- 11 Mar 13 14:32:22 +-- A_Asset.AD_Org_ID must use AD_Org Trx Security validation +UPDATE AD_Column SET AD_Val_Rule_ID=130,Updated=TO_TIMESTAMP('2013-03-11 14:32:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=8052 +; + +-- 12 Mar 13 15:50:01 +UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2013-03-12 15:50:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=59516 +; + +-- 12 Mar 13 15:50:06 +INSERT INTO t_alter_column values('i_fixedasset','UseLifeMonths','NUMERIC(10)',null,'NULL') +; + +-- 12 Mar 13 15:50:06 +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +INSERT INTO t_alter_column values('i_fixedasset','UseLifeMonths',null,'NULL',null) +; + +-- 12 Mar 13 15:50:15 +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-29 13:07:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59517 +; + +-- 12 Mar 13 15:50:23 +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +INSERT INTO t_alter_column values('i_fixedasset','UseLifeMonths_F','NUMERIC(10)',null,'NULL') +; + +-- 12 Mar 13 15:50:23 +--BF: "ERROR: null value in column "uselifemonths" violates not-null constraint +INSERT INTO t_alter_column values('i_fixedasset','UseLifeMonths_F',null,'NULL',null) +; + +-- 12 Mar 13 16:03:50 +-- Import Fixed Asset does not has tree +UPDATE AD_Tab SET HasTree='N',Updated=TO_TIMESTAMP('2013-03-12 16:03:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53334 +; + +-- 12 Mar 13 16:20:13 +-- Missing message +INSERT INTO AD_Message (MsgType,MsgText,EntityType,Value,AD_Message_ID,IsActive,Updated,AD_Client_ID,AD_Org_ID,CreatedBy,Created,UpdatedBy) VALUES ('I','Asset Depreciation Amount','D','AssetDepreciationAmt',20001,'Y',TO_TIMESTAMP('2013-03-12 16:20:13','YYYY-MM-DD HH24:MI:SS'),0,0,0,TO_TIMESTAMP('2013-03-12 16:20:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 12 Mar 13 16:20:13 +-- Missing message +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=20001 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID) +; + +SELECT register_migration_script('201304170927_IDEMPIERE-796_1_armen_fix_dictionary.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304170928_IDEMPIERE-796_2.sql b/migration/i1.0a-release/postgresql/201304170928_IDEMPIERE-796_2.sql new file mode 100644 index 0000000000..f23baed2a0 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304170928_IDEMPIERE-796_2.sql @@ -0,0 +1,931 @@ +-- Mar 24, 2013 8:41:39 PM ICT +INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200139,183,'U','Fixed Assets Document','fef8f9ac-de6a-4ea9-b117-3a6bcfb2f3d4','FAA',TO_TIMESTAMP('2013-03-24 20:41:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-24 20:41:37','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0) +; + +-- Mar 24, 2013 8:41:39 PM ICT +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200139 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + +-- Mar 24, 2013 8:42:03 PM ICT +UPDATE AD_Ref_List SET EntityType='D',Updated=TO_TIMESTAMP('2013-03-24 20:42:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200139 +; + +-- Mar 24, 2013 8:44:07 PM ICT +INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Client_ID,IsActive,AD_Org_ID) VALUES ('C_DocType.DocBaseType=''FAA'' AND C_DocType.AD_Org_ID IN (0, @AD_Org_ID@)',200035,'D','C_DocType Fixed Assets','S','7305a6f8-6b50-498e-b5ec-c1dc94902817',100,100,TO_TIMESTAMP('2013-03-24 20:44:05','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-03-24 20:44:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',0) +; + +-- Mar 24, 2013 8:44:23 PM ICT +UPDATE AD_Column SET AD_Val_Rule_ID=200035,Updated=TO_TIMESTAMP('2013-03-24 20:44:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55563 +; + +-- Mar 24, 2013 8:56:46 PM ICT +UPDATE AD_Menu SET Name='Asset Disposal', Description='Dispose of Assets',Updated=TO_TIMESTAMP('2013-03-24 20:56:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:56:46 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Window SET Description='Dispose of Assets',Updated=TO_TIMESTAMP('2013-03-24 20:57:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Menu SET Name='Asset Activation/Disposal', Description='Dispose of Assets', IsActive='Y',Updated=TO_TIMESTAMP('2013-03-24 20:57:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:57:45 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Window SET Name='Asset Disposal2', IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 20:58:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53049 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53049 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Menu SET Name='Asset Disposal2', Description='Dispose of Assets', IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 20:58:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53145 +; + +-- Mar 24, 2013 8:58:07 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53145 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Window SET Name='Asset Disposal',Updated=TO_TIMESTAMP('2013-03-24 20:58:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53114 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Menu SET Name='Asset Disposal', Description='Dispose of Assets', IsActive='Y',Updated=TO_TIMESTAMP('2013-03-24 20:58:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 8:58:15 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53274 +; + +-- Mar 24, 2013 9:14:57 PM ICT +INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,53137,210209,'U','N','N','N',0,'N',10,'N',19,200035,'N',196,'N','Y','34a3e305-8dd5-4e41-9953-8dbde442ceaf','Y','C_DocType_ID','Document type or rules','The Document Type determines document sequence and processing rules','Document Type','Y',TO_TIMESTAMP('2013-03-24 21:14:55','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-03-24 21:14:55','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 24, 2013 9:14:57 PM ICT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210209 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 24, 2013 9:15:05 PM ICT +ALTER TABLE A_Asset_Addition ADD COLUMN C_DocType_ID NUMERIC(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:15:42 PM ICT +UPDATE AD_Tab SET Name='Asset Disposal', Description='Process the Disposal',Updated=TO_TIMESTAMP('2013-03-24 21:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53325 +; + +-- Mar 24, 2013 9:15:42 PM ICT +UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53325 +; + +-- Mar 24, 2013 9:16:12 PM ICT +INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',0,53127,210210,'U','N','N','N',0,'N',10,'N',19,200035,'N',196,'N','Y','928a0f0a-da92-405a-bedc-176cee363dee','Y','C_DocType_ID','Document type or rules','The Document Type determines document sequence and processing rules','Document Type','Y',TO_TIMESTAMP('2013-03-24 21:16:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-03-24 21:16:11','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N') +; + +-- Mar 24, 2013 9:16:12 PM ICT +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210210 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- Mar 24, 2013 9:16:18 PM ICT +ALTER TABLE A_Asset_Disposed ADD COLUMN C_DocType_ID NUMERIC(10) DEFAULT NULL +; + +-- Mar 24, 2013 9:16:33 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:16:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53127 +; + +-- Mar 24, 2013 9:16:50 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:16:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53123 +; + +-- Mar 24, 2013 9:17:01 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:17:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53130 +; + +-- Mar 24, 2013 9:17:04 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:17:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53132 +; + +-- Mar 24, 2013 9:17:06 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:17:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53135 +; + +-- Mar 24, 2013 9:17:09 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:17:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53134 +; + +-- Mar 24, 2013 9:17:11 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:17:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53136 +; + +-- Mar 24, 2013 9:17:31 PM ICT +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2013-03-24 21:17:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53131 +; + +-- Mar 24, 2013 9:17:50 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,36,'N','N',60357,'Y',201887,'N','D','A_Asset_Disposed_UU','Y','N','aa5f43db-8a63-46bb-8132-a8a0db473e36',100,0,TO_TIMESTAMP('2013-03-24 21:17:49','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:17:49','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:50 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201887 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:51 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,10,'N','N',210210,'Y',201888,'N','The Document Type determines document sequence and processing rules','U','Document type or rules','Document Type','Y','N','c28d47c5-5c1c-4040-8190-967e0ae37c5c',100,0,TO_TIMESTAMP('2013-03-24 21:17:50','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:17:50','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:51 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201888 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:52 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,10,'N','N',200075,'Y',201889,'N','The Invoice Document.','D','Invoice Identifier','Invoice','Y','N','d7270c7e-841e-49cf-bae0-8041a17d9509',100,0,TO_TIMESTAMP('2013-03-24 21:17:51','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:17:51','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:52 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201889 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:54 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,10,'N','N',200076,'Y',201890,'N','The Invoice Line uniquely identifies a single line of an Invoice.','D','Invoice Detail Line','Invoice Line','Y','N','e15d85a5-f240-414d-87ac-9cbde577caf4',100,0,TO_TIMESTAMP('2013-03-24 21:17:52','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:17:52','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:54 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201890 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:17:55 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53325,20,'N','N',59588,'Y',201891,'N','The ProcessedOn Date+Time save the exact moment (nanoseconds precision if allowed by the DB) when a document has been processed.','D','The date+time (expressed in decimal format) when the document has been processed','Processed On','Y','N','20f54461-f9f4-46e5-9262-2fad03b7f38c',100,0,TO_TIMESTAMP('2013-03-24 21:17:54','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:17:54','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:17:55 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201891 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201887 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201889 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201890 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201891 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=201888 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=59396 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=59136 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=59138 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=59139 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59137 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=59140 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=59402 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=59141 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=59405 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59398 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59401 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59399 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=59400 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=59403 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=59404 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=59406 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=59408 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=59407 +; + +-- Mar 24, 2013 9:18:22 PM ICT +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=59409 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201887 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=59407 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=59134 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201889 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201890 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201891 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=59135 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=59395 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201888 +; + +-- Mar 24, 2013 9:18:46 PM ICT +UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=59409 +; + +-- Mar 24, 2013 9:19:11 PM ICT +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-03-24 21:19:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201888 +; + +-- Mar 24, 2013 9:20:43 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53324,36,'N','N',60354,'Y',201892,'N','D','A_Asset_Addition_UU','Y','N','9d33d304-53c6-4aec-a126-b2e20505cfe8',100,0,TO_TIMESTAMP('2013-03-24 21:20:43','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:20:43','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:20:44 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201892 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:20:44 PM ICT +INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive) VALUES ('N',53324,10,'N','N',210209,'Y',201893,'N','The Document Type determines document sequence and processing rules','U','Document type or rules','Document Type','Y','N','384fc5d9-fcc7-43f4-8de1-dbbe912aedef',100,0,TO_TIMESTAMP('2013-03-24 21:20:44','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-03-24 21:20:44','YYYY-MM-DD HH24:MI:SS'),'Y') +; + +-- Mar 24, 2013 9:20:44 PM ICT +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=201893 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=201892 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=201893 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=59118 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=59367 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=59368 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=59369 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59119 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=59121 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=59120 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=59122 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=59123 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59370 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59371 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59124 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=59372 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=59373 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=59374 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=59375 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=59376 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=59377 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=59125 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=59378 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=59126 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=59379 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=200159 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=59127 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=59380 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=59381 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=59382 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=59383 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=59384 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=59385 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=59386 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=59387 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=59388 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=59389 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=59390 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=59393 +; + +-- Mar 24, 2013 9:21:13 PM ICT +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=59394 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=201892 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=59115 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=59116 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=59117 +; + +-- Mar 24, 2013 9:21:31 PM ICT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201893 +; + +-- Mar 24, 2013 9:21:50 PM ICT +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-03-24 21:21:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201893 +; + +-- Mar 24, 2013 9:22:12 PM ICT +UPDATE AD_Menu SET Name='Create Asset From Project',Updated=TO_TIMESTAMP('2013-03-24 21:22:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200006 +; + +-- Mar 24, 2013 9:22:12 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=200006 +; + +-- Mar 24, 2013 9:22:42 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 21:22:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53175 +; + +-- Mar 24, 2013 9:22:46 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 21:22:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53176 +; + +-- Mar 24, 2013 9:31:15 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56075 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56075 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56069 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56063 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56052 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56064 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56057 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56073 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56074 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56068 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56078 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56079 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56076 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56077 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56080 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56062 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56053 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56054 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56055 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=56056 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=59256 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=59258 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=59259 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=59260 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=59261 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=56065 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=59262 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=56066 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=56067 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=59263 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=56070 +; + +-- Mar 24, 2013 9:31:18 PM ICT +UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=56071 +; + +-- Mar 24, 2013 9:31:19 PM ICT +UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=59264 +; + +-- Mar 24, 2013 9:31:19 PM ICT +UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=56072 +; + +-- Mar 24, 2013 9:31:19 PM ICT +UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=59265 +; + +-- Mar 24, 2013 9:31:50 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-24 21:31:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59403 +; + +-- Mar 24, 2013 9:31:56 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Conv_F_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:31:57 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Conv_F_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:32:06 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-24 21:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59404 +; + +-- Mar 24, 2013 9:32:10 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Conv_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:32:10 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Conv_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:32:21 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-24 21:32:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59405 +; + +-- Mar 24, 2013 9:32:24 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Method_F_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:32:24 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Method_F_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:32:34 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-24 21:32:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59402 +; + +-- Mar 24, 2013 9:32:38 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Method_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:32:38 PM ICT +INSERT INTO t_alter_column values('a_asset_group_acct','A_Depreciation_Method_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59260 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59261 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59258 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59259 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56065 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=56066 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=59262 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=56067 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=59263 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56070 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56071 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=56072 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59264 +; + +-- Mar 24, 2013 9:32:53 PM ICT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=59265 +; + +-- Mar 24, 2013 9:33:18 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-24 21:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59307 +; + +-- Mar 24, 2013 9:33:22 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Conv_F_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:33:22 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Conv_F_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:33:33 PM ICT +UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2013-03-24 21:33:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55632 +; + +-- Mar 24, 2013 9:33:37 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Conv_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:33:37 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Conv_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:33:44 PM ICT +UPDATE AD_Column SET IsMandatory='N', IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-03-24 21:33:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=59305 +; + +-- Mar 24, 2013 9:33:46 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Method_F_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:33:46 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Method_F_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:33:51 PM ICT +UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2013-03-24 21:33:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55628 +; + +-- Mar 24, 2013 9:33:53 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Method_ID','NUMERIC(10)',null,'NULL') +; + +-- Mar 24, 2013 9:33:53 PM ICT +INSERT INTO t_alter_column values('a_asset_acct','A_Depreciation_Method_ID',null,'NULL',null) +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55877 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59033 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55876 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=59032 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=55880 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=55881 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=55882 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59034 +; + +-- Mar 24, 2013 9:34:03 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59035 +; + +-- Mar 24, 2013 9:34:35 PM ICT +UPDATE AD_Tab SET IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 21:34:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=451 +; + +-- Mar 24, 2013 9:34:45 PM ICT +UPDATE AD_Tab SET IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 21:34:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53164 +; + +-- Mar 24, 2013 9:36:18 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 21:36:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53138 +; + +-- Mar 24, 2013 9:36:21 PM ICT +UPDATE AD_Menu SET IsActive='N',Updated=TO_TIMESTAMP('2013-03-24 21:36:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53136 +; + +-- Mar 24, 2013 9:37:19 PM ICT +UPDATE AD_Menu SET Name='Asset Transactions ', Description='Asset Transactions (Addition, Disposal, Split & Transfer)',Updated=TO_TIMESTAMP('2013-03-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53139 +; + +-- Mar 24, 2013 9:37:19 PM ICT +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53139 +; + +-- Mar 24, 2013 9:39:55 PM ICT +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,IsOrgLevelSequence,StartNo,StartNewMonth) VALUES ('N',100,'N',1000000,'N','Y',200070,'Asset Addition',1,'bb13be47-97be-4334-b9de-b10d31722bac',0,11,TO_TIMESTAMP('2013-03-24 21:39:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-24 21:39:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',1000000,'N') +; + +-- Mar 24, 2013 9:40:10 PM ICT +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,IsOrgLevelSequence,StartNo,StartNewMonth) VALUES ('N',100,'N',1000000,'N','Y',200071,'Asset Depreciation',1,'d134f7ea-3d17-43e1-82a1-45764d57a835',0,11,TO_TIMESTAMP('2013-03-24 21:40:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-24 21:40:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',1000000,'N') +; + +-- Mar 24, 2013 9:40:18 PM ICT +INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive,IsOrgLevelSequence,StartNo,StartNewMonth) VALUES ('N',100,'N',1000000,'N','Y',200072,'Asset Disposal',1,'a30f77d3-1d39-4ec4-8187-bb402877f605',0,11,TO_TIMESTAMP('2013-03-24 21:40:16','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-03-24 21:40:16','YYYY-MM-DD HH24:MI:SS'),100,'Y','N',1000000,'N') +; + +-- Mar 24, 2013 9:40:29 PM ICT +INSERT INTO C_DocType (DocNoSequence_ID,GL_Category_ID,C_DocType_ID,IsDefault,DocBaseType,IsSOTrx,DocumentCopies,IsCreateCounter,IsIndexed,IsShipConfirm,IsSplitWhenDifference,IsDefaultCounterDoc,IsInTransit,IsPickQAConfirm,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,C_DocType_UU,IsPrepareSplitDocument,PrintName,Name,IsDocNoControlled,HasCharges,HasProforma,CreatedBy,UpdatedBy,Updated,AD_Org_ID,IsActive,Created,AD_Client_ID,IsChargeOrProductMandatory) VALUES (200070,108,200001,'N','FAA','N',1,'Y','Y','N','N','N','N','N','N','N','7b210fc5-489c-4ff3-9d9a-2fbe8b4c5136','Y','Asset Addition','Asset Addition','Y','N','N',100,100,TO_TIMESTAMP('2013-03-24 21:40:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-24 21:40:28','YYYY-MM-DD HH24:MI:SS'),11,'N') +; + +-- Mar 24, 2013 9:40:29 PM ICT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,C_DocType_Trl_UU ) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=200001 AND NOT EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) +; + +-- Mar 24, 2013 9:40:42 PM ICT +INSERT INTO C_DocType (DocNoSequence_ID,GL_Category_ID,C_DocType_ID,IsDefault,DocBaseType,IsSOTrx,DocumentCopies,IsCreateCounter,IsIndexed,IsShipConfirm,IsSplitWhenDifference,IsDefaultCounterDoc,IsInTransit,IsPickQAConfirm,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,C_DocType_UU,IsPrepareSplitDocument,PrintName,Name,IsDocNoControlled,HasCharges,HasProforma,CreatedBy,UpdatedBy,Updated,AD_Org_ID,IsActive,Created,AD_Client_ID,IsChargeOrProductMandatory) VALUES (200071,108,200002,'N','FAA','N',1,'Y','Y','N','N','N','N','N','N','N','2d0701af-23b4-4c8c-9c48-9fb238db69fb','Y','Asset Depreciation','Asset Depreciation','Y','N','N',100,100,TO_TIMESTAMP('2013-03-24 21:40:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-24 21:40:41','YYYY-MM-DD HH24:MI:SS'),11,'N') +; + +-- Mar 24, 2013 9:40:42 PM ICT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,C_DocType_Trl_UU ) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=200002 AND NOT EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) +; + +-- Mar 24, 2013 9:40:56 PM ICT +INSERT INTO C_DocType (DocNoSequence_ID,GL_Category_ID,C_DocType_ID,IsDefault,DocBaseType,IsSOTrx,DocumentCopies,IsCreateCounter,IsIndexed,IsShipConfirm,IsSplitWhenDifference,IsDefaultCounterDoc,IsInTransit,IsPickQAConfirm,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,C_DocType_UU,IsPrepareSplitDocument,PrintName,Name,IsDocNoControlled,HasCharges,HasProforma,CreatedBy,UpdatedBy,Updated,AD_Org_ID,IsActive,Created,AD_Client_ID,IsChargeOrProductMandatory) VALUES (200072,108,200003,'N','FAA','N',1,'Y','Y','N','N','N','N','N','N','N','0fac34f1-aa81-49d7-be50-88b566ca81c8','Y','Asset Disposal','Asset Disposal','Y','N','N',100,100,TO_TIMESTAMP('2013-03-24 21:40:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2013-03-24 21:40:55','YYYY-MM-DD HH24:MI:SS'),11,'N') +; + +-- Mar 24, 2013 9:40:56 PM ICT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,C_DocType_Trl_UU ) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=200003 AND NOT EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) +; + +-- Mar 24, 2013 9:43:42 PM ICT +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2013-03-24 21:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55803 +; + +-- Mar 24, 2013 9:44:04 PM ICT +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2013-03-24 21:44:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59395 +; + +SELECT register_migration_script('201304170928_IDEMPIERE-796_2.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304170929_IDEMPIERE-796_3.sql b/migration/i1.0a-release/postgresql/201304170929_IDEMPIERE-796_3.sql new file mode 100644 index 0000000000..fa1dacbd72 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304170929_IDEMPIERE-796_3.sql @@ -0,0 +1,468 @@ +-- Apr 4, 2013 1:15:30 PM ICT +-- IDEMPIERE-796 +UPDATE AD_Ref_List SET Name='Fixed Assets Addition',Updated=TO_TIMESTAMP('2013-04-04 13:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200139 +; + +-- Apr 4, 2013 1:15:46 PM ICT +INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200140,183,'U','Fixed Assets Disposal','98b85394-b7cb-40df-b310-825d53744733','FAD',TO_TIMESTAMP('2013-04-04 13:15:45','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-04-04 13:15:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0) +; + +-- Apr 4, 2013 1:15:46 PM ICT +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200140 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + +-- Apr 4, 2013 1:15:56 PM ICT +UPDATE AD_Ref_List SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-04 13:15:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200140 +; + +-- Apr 4, 2013 1:16:16 PM ICT +INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200141,183,'D','Fixed Assets Depreciation','68763ab2-7781-4d0a-88d4-1d70e3f885e7','FDP',TO_TIMESTAMP('2013-04-04 13:16:15','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-04-04 13:16:15','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0) +; + +-- Apr 4, 2013 1:16:16 PM ICT +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200141 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + +-- Apr 4, 2013 1:17:39 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200006 +; + +-- Apr 4, 2013 1:17:39 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53273 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53274 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53277 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53144 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53148 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53147 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53146 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53143 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53140 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53145 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53145 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53142 +; + +-- Apr 4, 2013 1:17:40 PM ICT +UPDATE AD_TreeNodeMM SET Parent_ID=53139, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53141 +; + +-- Apr 4, 2013 1:18:18 PM ICT +UPDATE AD_Val_Rule SET Name='C_DocType Fixed Assets Addition',Updated=TO_TIMESTAMP('2013-04-04 13:18:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200035 +; + +-- Apr 4, 2013 1:18:31 PM ICT +INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,IsActive,AD_Org_ID,AD_Client_ID) VALUES ('C_DocType.DocBaseType=''FAD'' AND C_DocType.AD_Org_ID IN (0, @AD_Org_ID@)',200036,'U','C_DocType Fixed Assets Disposal','S','a8c570d9-1021-4074-ba86-f60dd0cbbeba',100,100,TO_TIMESTAMP('2013-04-04 13:18:30','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-04 13:18:30','YYYY-MM-DD HH24:MI:SS'),'Y',0,0) +; + +-- Apr 4, 2013 1:18:37 PM ICT +UPDATE AD_Val_Rule SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-04 13:18:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200036 +; + +-- Apr 4, 2013 1:18:55 PM ICT +INSERT INTO AD_Val_Rule (Code,AD_Val_Rule_ID,EntityType,Name,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,IsActive,AD_Org_ID,AD_Client_ID) VALUES ('C_DocType.DocBaseType=''FDP'' AND C_DocType.AD_Org_ID IN (0, @AD_Org_ID@)',200037,'D','C_DocType Fixed Assets Depreciation','S','04475427-d1a4-4acf-9a5b-3e2dc25ff536',100,100,TO_TIMESTAMP('2013-04-04 13:18:54','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-04-04 13:18:54','YYYY-MM-DD HH24:MI:SS'),'Y',0,0) +; + +-- Apr 4, 2013 1:20:03 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59143 +; + +-- Apr 4, 2013 1:20:03 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59143 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59144 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59144 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59145 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59145 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59146 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59146 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59147 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59147 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59148 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59148 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59149 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59149 +; + +-- Apr 4, 2013 1:20:04 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59150 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59150 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59151 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59151 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59152 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59152 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59153 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59153 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59154 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59154 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59155 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59155 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59156 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59156 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59157 +; + +-- Apr 4, 2013 1:20:05 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59157 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59158 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59158 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59159 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59159 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59160 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59160 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59161 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59161 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59162 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59162 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59163 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59163 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59164 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59164 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59165 +; + +-- Apr 4, 2013 1:20:06 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59165 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59166 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59166 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59167 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59167 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59168 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59168 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59169 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59169 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59170 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59170 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59171 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59171 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59172 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59172 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59173 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59173 +; + +-- Apr 4, 2013 1:20:07 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59174 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59174 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59175 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59175 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59176 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59176 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59177 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59177 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59178 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59178 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59179 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59179 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59180 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59180 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=59181 +; + +-- Apr 4, 2013 1:20:08 PM ICT +DELETE FROM AD_Field WHERE AD_Field_ID=59181 +; + +-- Apr 4, 2013 1:20:12 PM ICT +DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=53326 +; + +-- Apr 4, 2013 1:20:13 PM ICT +DELETE FROM AD_Tab WHERE AD_Tab_ID=53326 +; + +-- Apr 4, 2013 1:21:43 PM ICT +UPDATE AD_Column SET AD_Val_Rule_ID=200036,Updated=TO_TIMESTAMP('2013-04-04 13:21:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210210 +; + +-- Apr 4, 2013 1:21:54 PM ICT +UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-04 13:21:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210210 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=55813 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=55808 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=55809 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=55810 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=55811 +; + +-- Apr 4, 2013 1:22:56 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=55812 +; + +-- Apr 4, 2013 1:23:25 PM ICT +UPDATE AD_Column SET AD_Val_Rule_ID=200037,Updated=TO_TIMESTAMP('2013-04-04 13:23:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55563 +; + +-- Apr 4, 2013 1:23:38 PM ICT +UPDATE AD_Field SET IsActive='N' WHERE AD_Column_ID=55559 +; + +-- Apr 4, 2013 1:23:38 PM ICT +UPDATE AD_Column SET IsActive='N' WHERE AD_Column_ID=55559 +; + +-- Apr 4, 2013 1:23:38 PM ICT +alter table i_fixedasset drop CONSTRAINT i_fixedasset_i_isimported_check +; + +SELECT register_migration_script('201304170929_IDEMPIERE-796_3.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304170930_IDEMPIERE-796_4.sql b/migration/i1.0a-release/postgresql/201304170930_IDEMPIERE-796_4.sql new file mode 100644 index 0000000000..a075dcd336 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304170930_IDEMPIERE-796_4.sql @@ -0,0 +1,144 @@ +-- Apr 10, 2013 3:52:44 PM ICT +-- IDEMPIERE-796 +UPDATE C_DocType SET DocBaseType='FDP',Updated=TO_TIMESTAMP('2013-04-10 15:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=200002 +; + +-- Apr 10, 2013 3:52:48 PM ICT +UPDATE C_DocType SET DocBaseType='FAD',Updated=TO_TIMESTAMP('2013-04-10 15:52:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=200003 +; + +-- Apr 10, 2013 5:03:31 PM ICT +UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-10 17:03:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210209 +; + +-- Apr 10, 2013 5:05:32 PM ICT +UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-10 17:05:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201888 +; + +-- Apr 10, 2013 5:05:56 PM ICT +UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-10 17:05:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201893 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56065 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56066 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59262 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=56067 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=59263 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56070 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56071 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56072 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=59264 +; + +-- Apr 10, 2013 9:40:19 PM ICT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=59265 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55879 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=55867 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=55870 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=59030 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=55880 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=55881 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=55882 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=59034 +; + +-- Apr 10, 2013 9:41:29 PM ICT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=59035 +; + +-- Apr 10, 2013 9:43:38 PM ICT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56205 +; + +-- Apr 10, 2013 9:44:15 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50000 +; + +-- Apr 10, 2013 9:44:18 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50001 +; + +-- Apr 10, 2013 9:44:20 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50002 +; + +-- Apr 10, 2013 9:44:24 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50004 +; + +-- Apr 10, 2013 9:44:27 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50005 +; + +-- Apr 10, 2013 9:44:29 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50006 +; + +-- Apr 10, 2013 9:44:32 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50008 +; + +-- Apr 10, 2013 9:44:35 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50007 +; + +-- Apr 10, 2013 9:44:37 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50009 +; + +-- Apr 10, 2013 9:44:40 PM ICT +UPDATE A_Depreciation SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-10 21:44:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A_Depreciation_ID=50010 +; + +SELECT register_migration_script('201304170930_IDEMPIERE-796_4.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304171142_IDEMPIERE-294.sql b/migration/i1.0a-release/postgresql/201304171142_IDEMPIERE-294.sql new file mode 100644 index 0000000000..cd6f8e7dac --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304171142_IDEMPIERE-294.sql @@ -0,0 +1,104 @@ +-- Apr 17, 2013 11:37:25 AM COT +-- IDEMPIERE-294 BroadCast Message +UPDATE AD_Process SET AccessLevel='6',Updated=TO_TIMESTAMP('2013-04-17 11:37:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200018 +; + +-- Apr 17, 2013 11:38:05 AM COT +UPDATE AD_Process SET Description='Expire Broadcast Message', Name='Expire Broadcast Message', Value='AD_ExpireBroadcastMessage',Updated=TO_TIMESTAMP('2013-04-17 11:38:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200018 +; + +-- Apr 17, 2013 11:41:26 AM COT +UPDATE AD_Process SET Name='Test Broadcast Message', Value='AD_TestBroadcastMessage',Updated=TO_TIMESTAMP('2013-04-17 11:41:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200020 +; + +-- Apr 17, 2013 11:41:45 AM COT +UPDATE AD_Process SET Value='AD_PublishBroadcastMessage',Updated=TO_TIMESTAMP('2013-04-17 11:41:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=200019 +; + +-- Apr 17, 2013 11:50:44 AM COT +UPDATE AD_Column SET IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-04-17 11:50:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200994 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=40, ColumnSpan=1,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200876 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=50, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200872 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=60, ColumnSpan=1,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200888 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=3,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200882 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=3,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200887 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=90, IsDisplayed='Y', XPosition=3,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200890 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=100, ColumnSpan=1,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200873 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=110, IsDisplayed='Y', XPosition=3, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200879 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=120, IsDisplayed='Y', XPosition=6, ColumnSpan=1,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200881 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=130, IsDisplayed='Y', XPosition=2, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200889 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200885 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=150, IsDisplayed='Y', XPosition=2,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200878 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200880 +; + +-- Apr 17, 2013 11:58:33 AM COT +UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2013-04-17 11:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200886 +; + +-- Apr 17, 2013 12:00:12 PM COT +UPDATE AD_Field SET EntityType='D', Name='Test Broadcast Message',Updated=TO_TIMESTAMP('2013-04-17 12:00:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200889 +; + +-- Apr 17, 2013 12:01:05 PM COT +UPDATE AD_Field SET DisplayLogic='@IsPublished@=N', EntityType='D', Description='Publish Broadcast Message', Name='Publish Broadcast Message',Updated=TO_TIMESTAMP('2013-04-17 12:01:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200885 +; + +-- Apr 17, 2013 12:01:13 PM COT +UPDATE AD_Field SET DisplayLogic='@IsPublished@=N',Updated=TO_TIMESTAMP('2013-04-17 12:01:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200889 +; + +-- Apr 17, 2013 12:01:54 PM COT +UPDATE AD_Field SET DisplayLogic='@IsPublished@=Y & @Expired@=N',Updated=TO_TIMESTAMP('2013-04-17 12:01:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200878 +; + +-- Apr 17, 2013 12:02:05 PM COT +UPDATE AD_Field SET EntityType='D',Updated=TO_TIMESTAMP('2013-04-17 12:02:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200878 +; + +-- Apr 17, 2013 12:02:39 PM COT +UPDATE AD_Tab SET IsSingleRow='Y',Updated=TO_TIMESTAMP('2013-04-17 12:02:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200033 +; + +SELECT register_migration_script('201304171142_IDEMPIERE-294.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304171803_IDEMPIERE-862.sql b/migration/i1.0a-release/postgresql/201304171803_IDEMPIERE-862.sql new file mode 100644 index 0000000000..61922df48c --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304171803_IDEMPIERE-862.sql @@ -0,0 +1,33 @@ +CREATE OR REPLACE VIEW m_packagelines_avail_v AS + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line, iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 ) AS qty, iol.m_product_id, p.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + JOIN ad_clientinfo ci ON ci.ad_client_id = iol.ad_client_id + WHERE p.ispicklistprintdetails = 'N' AND iol.m_product_id <> COALESCE(ci.m_productfreight_id, 0 ) AND (iol.qtyentered - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_inoutline_id = iol.m_inoutline_id), 0 )) <> 0 +UNION + SELECT DISTINCT iol.ad_client_id, iol.ad_org_id, iol.m_inout_id, iol.m_inoutline_id, iol.line + pbom.line / 100 AS line, iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 ) AS qty, pbom.m_productbom_id AS m_product_id, p2.name AS productname, uom.name AS uom + FROM m_inoutline iol + LEFT JOIN m_packageline mpl ON iol.m_inoutline_id = mpl.m_inoutline_id + JOIN m_product p ON iol.m_product_id = p.m_product_id + JOIN m_product_bom pbom ON p.m_product_id = pbom.m_product_id + JOIN m_product p2 ON pbom.m_productbom_id = p2.m_product_id + JOIN c_uom uom ON iol.c_uom_id = uom.c_uom_id + WHERE p.isbom = 'Y' AND p.isverified = 'Y' AND p.ispicklistprintdetails = 'Y' AND (iol.qtyentered * pbom.bomqty - COALESCE(( SELECT sum(m_packageline.qty) AS sum + FROM m_packageline + WHERE m_packageline.m_product_id = p2.m_product_id AND (m_packageline.m_package_id IN ( SELECT m_package.m_package_id + FROM m_package + WHERE m_package.m_inout_id = iol.m_inout_id))), 0 )) <> 0 + ORDER BY 1, 2, 3, 5; + +SELECT register_migration_script('201304171803_IDEMPIERE-862.sql') FROM dual +; diff --git a/migration/i1.0a-release/postgresql/201304181211_TICKET-1001763_FactView.sql b/migration/i1.0a-release/postgresql/201304181211_TICKET-1001763_FactView.sql new file mode 100644 index 0000000000..86d1bb09ce --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304181211_TICKET-1001763_FactView.sql @@ -0,0 +1,17 @@ +-- Apr 18, 2013 11:58:53 AM SGT +-- Ticket #1001763: Standard Templates for Docs and Forms - Reporting +UPDATE AD_Process_Para SET IsActive='N',Updated=TO_TIMESTAMP('2013-04-18 11:58:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=200060 +; + +-- Apr 18, 2013 11:59:39 AM SGT +-- Ticket #1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para (IsRange,AD_Element_ID,AD_Process_Para_ID,AD_Process_Para_UU,Help,AD_Process_ID,AD_Reference_ID,IsMandatory,EntityType,Name,ColumnName,Description,FieldLength,IsCentrallyMaintained,SeqNo,IsActive,UpdatedBy,Updated,CreatedBy,Created,AD_Org_ID,IsEncrypted,AD_Client_ID) VALUES ('Y',263,200066,'953cd99e-3a51-4597-b156-31951d313c68','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.',200037,15,'N','D','Account Date','DateAcct','Accounting Date',0,'Y',60,'Y',100,TO_TIMESTAMP('2013-04-18 11:59:38','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-04-18 11:59:38','YYYY-MM-DD HH24:MI:SS'),0,'N',0) +; + +-- Apr 18, 2013 11:59:39 AM SGT +-- Ticket #1001763: Standard Templates for Docs and Forms - Reporting +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Process_Para_Trl_UU ) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=200066 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) +; + +SELECT register_migration_script('201304181211_TICKET-1001763_FactView.sql') FROM dual +; \ No newline at end of file diff --git a/migration/i1.0a-release/postgresql/201304181526_IdxFKs.sql b/migration/i1.0a-release/postgresql/201304181526_IdxFKs.sql new file mode 100644 index 0000000000..f231d7444d --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304181526_IdxFKs.sql @@ -0,0 +1,513 @@ +CREATE UNIQUE INDEX m_packagemps_uu_idx ON m_packagemps (m_packagemps_uu) +; + +CREATE UNIQUE INDEX c_depositbatch_uu_idx ON c_depositbatch (c_depositbatch_uu) +; + +CREATE UNIQUE INDEX c_1099box_uu_idx ON c_1099box (c_1099box_uu) +; + +CREATE UNIQUE INDEX c_onlinetrxhistory_uu_idx ON c_onlinetrxhistory (c_onlinetrxhistory_uu) +; + +CREATE UNIQUE INDEX m_shippingprocessorcfg_uu_idx ON m_shippingprocessorcfg (m_shippingprocessorcfg_uu) +; + +CREATE UNIQUE INDEX t_1099extract_uu_idx ON t_1099extract (t_1099extract_uu) +; + +CREATE UNIQUE INDEX m_shipperpackaging_uu_idx ON m_shipperpackaging (m_shipperpackaging_uu) +; + +CREATE UNIQUE INDEX m_shippingtransactionli_uu_idx ON m_shippingtransactionline (m_shippingtransactionline_uu) +; + +CREATE UNIQUE INDEX m_shippercfg_uu_idx ON m_shippercfg (m_shippercfg_uu) +; + +CREATE UNIQUE INDEX m_rmatax_uu_idx ON m_rmatax (m_rmatax_uu) +; + +CREATE UNIQUE INDEX m_shipperpickuptypescfg_uu_idx ON m_shipperpickuptypescfg (m_shipperpickuptypescfg_uu) +; + +CREATE UNIQUE INDEX ad_storageprovider_uu_idx ON ad_storageprovider (ad_storageprovider_uu) +; + +CREATE UNIQUE INDEX ws_webservice_para_uu_idx ON ws_webservice_para (ws_webservice_para_uu) +; + +CREATE UNIQUE INDEX ws_webservicefieldoutpu_uu_idx ON ws_webservicefieldoutput (ws_webservicefieldoutput_uu) +; + +CREATE UNIQUE INDEX ad_ctxhelpmsg_trl_uu_idx ON ad_ctxhelpmsg_trl (ad_ctxhelpmsg_trl_uu) +; + +CREATE UNIQUE INDEX c_depositbatchline_uu_idx ON c_depositbatchline (c_depositbatchline_uu) +; + +CREATE UNIQUE INDEX m_shippingprocessor_uu_idx ON m_shippingprocessor (m_shippingprocessor_uu) +; + +CREATE UNIQUE INDEX c_paymenttransaction_uu_idx ON c_paymenttransaction (c_paymenttransaction_uu) +; + +CREATE UNIQUE INDEX m_commodityshipment_uu_idx ON m_commodityshipment (m_commodityshipment_uu) +; + +CREATE UNIQUE INDEX ws_webservicetypeaccess_uu_idx ON ws_webservicetypeaccess (ws_webservicetypeaccess_uu) +; + +CREATE UNIQUE INDEX ad_ctxhelp_uu_idx ON ad_ctxhelp (ad_ctxhelp_uu) +; + +CREATE UNIQUE INDEX ws_webservicetype_uu_idx ON ws_webservicetype (ws_webservicetype_uu) +; + +CREATE UNIQUE INDEX m_shipperpackagingcfg_uu_idx ON m_shipperpackagingcfg (m_shipperpackagingcfg_uu) +; + +CREATE UNIQUE INDEX c_bp_shippingacct_uu_idx ON c_bp_shippingacct (c_bp_shippingacct_uu) +; + +CREATE UNIQUE INDEX m_shipperlabels_uu_idx ON m_shipperlabels (m_shipperlabels_uu) +; + +CREATE UNIQUE INDEX m_shipperlabelscfg_uu_idx ON m_shipperlabelscfg (m_shipperlabelscfg_uu) +; + +CREATE UNIQUE INDEX m_shipperpickuptypes_uu_idx ON m_shipperpickuptypes (m_shipperpickuptypes_uu) +; + +CREATE UNIQUE INDEX m_shippingtransaction_uu_idx ON m_shippingtransaction (m_shippingtransaction_uu) +; + +CREATE UNIQUE INDEX ad_broadcastmessage_uu_idx ON ad_broadcastmessage (ad_broadcastmessage_uu) +; + +CREATE UNIQUE INDEX ws_webservicefieldinput_uu_idx ON ws_webservicefieldinput (ws_webservicefieldinput_uu) +; + +CREATE UNIQUE INDEX ad_ctxhelpmsg_uu_idx ON ad_ctxhelpmsg (ad_ctxhelpmsg_uu) +; + +CREATE UNIQUE INDEX ad_infowindow_access_uu_idx ON ad_infowindow_access (ad_infowindow_access_uu) +; + +ALTER TABLE AD_BroadcastMessage ADD CONSTRAINT NotificationClient_ADBroadcast FOREIGN KEY (Notification_Client_ID) REFERENCES AD_Client DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_BroadcastMessage ADD CONSTRAINT ADRole_ADBroadcastMessage FOREIGN KEY (AD_Role_ID) REFERENCES AD_Role DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_BroadcastMessage ADD CONSTRAINT ADUser_ADBroadcastMessage FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE ad_storageprovider ADD CONSTRAINT ad_storageprovider_pkey PRIMARY KEY (ad_storageprovider_id) +; + +ALTER TABLE AD_ClientInfo ADD CONSTRAINT ADStorageProvider_ADClientInfo FOREIGN KEY (AD_StorageProvider_ID) REFERENCES AD_StorageProvider DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_ClientInfo ADD CONSTRAINT StorageArchive_ADClientInfo FOREIGN KEY (StorageArchive_ID) REFERENCES AD_StorageProvider DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_ClientInfo ADD CONSTRAINT CChargeFreight_ADClientInfo FOREIGN KEY (C_ChargeFreight_ID) REFERENCES C_Charge DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_CtxHelpMsg ADD CONSTRAINT ADCtxHelp_ADCtxHelpMsg FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_CtxHelpMsg_Trl ADD CONSTRAINT ADCtxHelpMsg_ADCtxHelpMsgTrl FOREIGN KEY (AD_CtxHelpMsg_ID) REFERENCES AD_CtxHelpMsg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_CtxHelpMsg_Trl ADD CONSTRAINT ADLangu_ADCtxHelpMsgTrl FOREIGN KEY (AD_Language) REFERENCES AD_Language DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Form ADD CONSTRAINT ADCtxHelp_ADForm FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoColumn ADD CONSTRAINT ADReferenceValue_ADInfoColumn FOREIGN KEY (AD_Reference_Value_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoColumn ADD CONSTRAINT ADValRule_ADInfoColumn FOREIGN KEY (AD_Val_Rule_ID) REFERENCES AD_Val_Rule DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoWindow ADD CONSTRAINT ADCtxHelp_ADInfoWindow FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoWindow_Access ADD CONSTRAINT ADInfoWindow_ADInfoWindowAcces FOREIGN KEY (AD_InfoWindow_ID) REFERENCES AD_InfoWindow DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_InfoWindow_Access ADD CONSTRAINT ADRole_ADInfoWindowAccess FOREIGN KEY (AD_Role_ID) REFERENCES AD_Role DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Language ADD CONSTRAINT ADPrintPaper_ADLanguage FOREIGN KEY (AD_PrintPaper_ID) REFERENCES AD_PrintPaper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Menu ADD CONSTRAINT ADInfoWindow_ADMenu FOREIGN KEY (AD_InfoWindow_ID) REFERENCES AD_InfoWindow DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Note ADD CONSTRAINT ADBroadcastMessage_ADNote FOREIGN KEY (AD_BroadcastMessage_ID) REFERENCES AD_BroadcastMessage DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADValRule_ADPackageExpDetail FOREIGN KEY (AD_Val_Rule_ID) REFERENCES AD_Val_Rule DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Process ADD CONSTRAINT ADCtxHelp_ADProcess FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Ref_Table ADD CONSTRAINT ADInfoWindow_ADRefTable FOREIGN KEY (AD_InfoWindow_ID) REFERENCES AD_InfoWindow DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Tab ADD CONSTRAINT ADCtxHelp_ADTab FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Task ADD CONSTRAINT ADCtxHelp_ADTask FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_UserDef_Field ADD CONSTRAINT ADReference_ADUserDefField FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_UserDef_Field ADD CONSTRAINT ADReferenceValue_ADUserDefFiel FOREIGN KEY (AD_Reference_Value_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_WF_Node ADD CONSTRAINT ADCtxHelp_ADWFNode FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_WizardProcess ADD CONSTRAINT ADUser_ADWizardProcess FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE AD_Workflow ADD CONSTRAINT ADCtxHelp_ADWorkflow FOREIGN KEY (AD_CtxHelp_ID) REFERENCES AD_CtxHelp DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_AllocationHdr ADD CONSTRAINT Reversal_CAllocationHdr FOREIGN KEY (Reversal_ID) REFERENCES C_AllocationHdr DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BankAccount_Processor ADD CONSTRAINT CCurrency_CBankAccountProcesso FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BPartner ADD CONSTRAINT Default1099Box_CBPartner FOREIGN KEY (Default1099Box_ID) REFERENCES C_1099Box DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_BankAccount ADD CONSTRAINT CPaymentProcessor_CBPBankAccou FOREIGN KEY (C_PaymentProcessor_ID) REFERENCES C_PaymentProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_ShippingAcct ADD CONSTRAINT CBPartner_CBPShippingAcct FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_ShippingAcct ADD CONSTRAINT CBPartnerLocation_CBPShippingA FOREIGN KEY (C_BPartner_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_BP_ShippingAcct ADD CONSTRAINT MShippingProcessor_CBPShipping FOREIGN KEY (M_ShippingProcessor_ID) REFERENCES M_ShippingProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatch ADD CONSTRAINT CBankAccount_CDepositBatch FOREIGN KEY (C_BankAccount_ID) REFERENCES C_BankAccount DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatch ADD CONSTRAINT CDocType_CDepositBatch FOREIGN KEY (C_DocType_ID) REFERENCES C_DocType DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatchLine ADD CONSTRAINT CDepositBatch_CDepositBatchLin FOREIGN KEY (C_DepositBatch_ID) REFERENCES C_DepositBatch DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_DepositBatchLine ADD CONSTRAINT CPayment_CDepositBatchLine FOREIGN KEY (C_Payment_ID) REFERENCES C_Payment DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_InvoiceLine ADD CONSTRAINT C1099Box_CInvoiceLine FOREIGN KEY (C_1099Box_ID) REFERENCES C_1099Box DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_OnlineTrxHistory ADD CONSTRAINT ADTable_COnlineTrxHistory FOREIGN KEY (AD_Table_ID) REFERENCES AD_Table DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_Payment ADD CONSTRAINT CDepositBatch_CPayment FOREIGN KEY (C_DepositBatch_ID) REFERENCES C_DepositBatch DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT ADOrgTrx_CPaymentTransaction FOREIGN KEY (AD_OrgTrx_ID) REFERENCES AD_Org DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CActivity_CPaymentTransaction FOREIGN KEY (C_Activity_ID) REFERENCES C_Activity DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CBankAccount_CPaymentTransacti FOREIGN KEY (C_BankAccount_ID) REFERENCES C_BankAccount DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CBPartner_CPaymentTransaction FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CBPBankAccount_CPaymentTransac FOREIGN KEY (C_BP_BankAccount_ID) REFERENCES C_BP_BankAccount DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCampaign_CPaymentTransaction FOREIGN KEY (C_Campaign_ID) REFERENCES C_Campaign DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCashBook_CPaymentTransaction FOREIGN KEY (C_CashBook_ID) REFERENCES C_CashBook DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCharge_CPaymentTransaction FOREIGN KEY (C_Charge_ID) REFERENCES C_Charge DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CConversionType_CPaymentTransa FOREIGN KEY (C_ConversionType_ID) REFERENCES C_ConversionType DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CCurrency_CPaymentTransaction FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT User1_CPaymentTransaction FOREIGN KEY (User1_ID) REFERENCES C_ElementValue DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT User2_CPaymentTransaction FOREIGN KEY (User2_ID) REFERENCES C_ElementValue DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CInvoice_CPaymentTransaction FOREIGN KEY (C_Invoice_ID) REFERENCES C_Invoice DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT COrder_CPaymentTransaction FOREIGN KEY (C_Order_ID) REFERENCES C_Order DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPayment_CPaymentTransaction FOREIGN KEY (C_Payment_ID) REFERENCES C_Payment DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPaymentBatch_CPaymentTransact FOREIGN KEY (C_PaymentBatch_ID) REFERENCES C_PaymentBatch DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPaymentProcessor_CPaymentTran FOREIGN KEY (C_PaymentProcessor_ID) REFERENCES C_PaymentProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT RefPaymentTransaction_CPayment FOREIGN KEY (Ref_PaymentTransaction_ID) REFERENCES C_PaymentTransaction DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CPOSTenderType_CPaymentTransac FOREIGN KEY (C_POSTenderType_ID) REFERENCES C_POSTenderType DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE C_PaymentTransaction ADD CONSTRAINT CProject_CPaymentTransaction FOREIGN KEY (C_Project_ID) REFERENCES C_Project DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE DD_Order ADD CONSTRAINT RefOrder_DDOrder FOREIGN KEY (Ref_Order_ID) REFERENCES C_Order DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE I_Invoice ADD CONSTRAINT C1099Box_IInvoice FOREIGN KEY (C_1099Box_ID) REFERENCES C_1099Box DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_CommodityShipment ADD CONSTRAINT MProduct_MCommodityShipment FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ForecastLine ADD CONSTRAINT SalesRep_MForecastLine FOREIGN KEY (SalesRep_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_InOut ADD CONSTRAINT ReturnUser_MInOut FOREIGN KEY (ReturnUser_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_InOut ADD CONSTRAINT ReturnBPartner_MInOut FOREIGN KEY (ReturnBPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_InOut ADD CONSTRAINT ReturnLocation_MInOut FOREIGN KEY (ReturnLocation_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_MatchInv ADD CONSTRAINT Reversal_MMatchInv FOREIGN KEY (Reversal_ID) REFERENCES M_MatchInv DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_MatchPO ADD CONSTRAINT Reversal_MMatchPO FOREIGN KEY (Reversal_ID) REFERENCES M_MatchPO DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CBPartnerLocation_MPackage FOREIGN KEY (C_BPartner_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CBPShippingAcct_MPackage FOREIGN KEY (C_BP_ShippingAcct_ID) REFERENCES C_BP_ShippingAcct DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CCurrency_MPackage FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CUOMLength_MPackage FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT CUOMWeight_MPackage FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT MShipperLabels_MPackage FOREIGN KEY (M_ShipperLabels_ID) REFERENCES M_ShipperLabels DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT MShipperPackaging_MPackage FOREIGN KEY (M_ShipperPackaging_ID) REFERENCES M_ShipperPackaging DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Package ADD CONSTRAINT MShipperPickupTypes_MPackage FOREIGN KEY (M_ShipperPickupTypes_ID) REFERENCES M_ShipperPickupTypes DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageLine ADD CONSTRAINT MPackageMPS_MPackageLine FOREIGN KEY (M_PackageMPS_ID) REFERENCES M_PackageMPS DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageLine ADD CONSTRAINT MProduct_MPackageLine FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageMPS ADD CONSTRAINT CUOMLength_MPackageMPS FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageMPS ADD CONSTRAINT CUOMWeight_MPackageMPS FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_PackageMPS ADD CONSTRAINT MPackage_MPackageMPS FOREIGN KEY (M_Package_ID) REFERENCES M_Package DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Production ADD CONSTRAINT CBPartner_MProduction FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMALine ADD CONSTRAINT CTax_MRMALine FOREIGN KEY (C_Tax_ID) REFERENCES C_Tax DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMALine ADD CONSTRAINT MProduct_MRMALine FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMATax ADD CONSTRAINT CTax_MRMATax FOREIGN KEY (C_Tax_ID) REFERENCES C_Tax DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_RMATax ADD CONSTRAINT MRMA_MRMATax FOREIGN KEY (M_RMA_ID) REFERENCES M_RMA DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Shipper ADD CONSTRAINT MShipperCfg_MShipper FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Shipper ADD CONSTRAINT MShippingProcessor_MShipper FOREIGN KEY (M_ShippingProcessor_ID) REFERENCES M_ShippingProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperCfg ADD CONSTRAINT MShippingProcessorCfg_MShipper FOREIGN KEY (M_ShippingProcessorCfg_ID) REFERENCES M_ShippingProcessorCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperLabels ADD CONSTRAINT MShipper_MShipperLabels FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperLabels ADD CONSTRAINT MShipperLabelsCfg_MShipperLabe FOREIGN KEY (M_ShipperLabelsCfg_ID) REFERENCES M_ShipperLabelsCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperLabelsCfg ADD CONSTRAINT MShipperCfg_MShipperLabelsCfg FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPackaging ADD CONSTRAINT MShipper_MShipperPackaging FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPackaging ADD CONSTRAINT MShipperPackagingCfg_MShipperP FOREIGN KEY (M_ShipperPackagingCfg_ID) REFERENCES M_ShipperPackagingCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPackagingCfg ADD CONSTRAINT MShipperCfg_MShipperPackagingC FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPickupTypes ADD CONSTRAINT MShipper_MShipperPickupTypes FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPickupTypes ADD CONSTRAINT MShipperPickupTypesCfg_MShippe FOREIGN KEY (M_ShipperPickupTypesCfg_ID) REFERENCES M_ShipperPickupTypesCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShipperPickupTypesCfg ADD CONSTRAINT MShipperCfg_MShipperPickupType FOREIGN KEY (M_ShipperCfg_ID) REFERENCES M_ShipperCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingProcessor ADD CONSTRAINT MShippingProcessorCfg_MShippin FOREIGN KEY (M_ShippingProcessorCfg_ID) REFERENCES M_ShippingProcessorCfg DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ADUser_MShippingTransaction FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ReturnUser_MShippingTransactio FOREIGN KEY (ReturnUser_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT SalesRep_MShippingTransaction FOREIGN KEY (SalesRep_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CBPartner_MShippingTransaction FOREIGN KEY (C_BPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ReturnBPartner_MShippingTransa FOREIGN KEY (ReturnBPartner_ID) REFERENCES C_BPartner DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT BillLocation_MShippingTransact FOREIGN KEY (Bill_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CBPartnerLocation_MShippingTra FOREIGN KEY (C_BPartner_Location_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT ReturnLocation_MShippingTransa FOREIGN KEY (ReturnLocation_ID) REFERENCES C_BPartner_Location DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CBPShippingAcct_MShippingTrans FOREIGN KEY (C_BP_ShippingAcct_ID) REFERENCES C_BP_ShippingAcct DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CCurrency_MShippingTransaction FOREIGN KEY (C_Currency_ID) REFERENCES C_Currency DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CInvoice_MShippingTransaction FOREIGN KEY (C_Invoice_ID) REFERENCES C_Invoice DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT COrder_MShippingTransaction FOREIGN KEY (C_Order_ID) REFERENCES C_Order DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CUOMLength_MShippingTransactio FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT CUOMWeight_MShippingTransactio FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MInOut_MShippingTransaction FOREIGN KEY (M_InOut_ID) REFERENCES M_InOut DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MPackage_MShippingTransaction FOREIGN KEY (M_Package_ID) REFERENCES M_Package DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipper_MShippingTransaction FOREIGN KEY (M_Shipper_ID) REFERENCES M_Shipper DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipperLabels_MShippingTransa FOREIGN KEY (M_ShipperLabels_ID) REFERENCES M_ShipperLabels DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipperPackaging_MShippingTra FOREIGN KEY (M_ShipperPackaging_ID) REFERENCES M_ShipperPackaging DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShipperPickupTypes_MShippingT FOREIGN KEY (M_ShipperPickupTypes_ID) REFERENCES M_ShipperPickupTypes DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MShippingProcessor_MShippingTr FOREIGN KEY (M_ShippingProcessor_ID) REFERENCES M_ShippingProcessor DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransaction ADD CONSTRAINT MWarehouse_MShippingTransactio FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT CUOMLength_MShippingTransactLn FOREIGN KEY (C_UOM_Length_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT CUOMWeight_MShippingTransactLn FOREIGN KEY (C_UOM_Weight_ID) REFERENCES C_UOM DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT MPackageMPS_MShippingTransacti FOREIGN KEY (M_PackageMPS_ID) REFERENCES M_PackageMPS DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_ShippingTransactionLine ADD CONSTRAINT MShippingTransaction_MShipping FOREIGN KEY (M_ShippingTransaction_ID) REFERENCES M_ShippingTransaction DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageOnHand ADD CONSTRAINT MProduct_MStorageOnHand FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageReservation ADD CONSTRAINT MProduct_MStorageReservation FOREIGN KEY (M_Product_ID) REFERENCES M_Product DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageReservation ADD CONSTRAINT MWarehouse_MStorageReservation FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_Warehouse ADD CONSTRAINT MReserveLocator_MWarehouse FOREIGN KEY (M_ReserveLocator_ID) REFERENCES M_Locator DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE WS_WebServiceFieldInput ADD CONSTRAINT ADReference_WSWebServiceFieldI FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE WS_WebServiceFieldInput ADD CONSTRAINT ADReferenceValue_WSWebServiceF FOREIGN KEY (AD_Reference_Value_ID) REFERENCES AD_Reference DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageOnHand ADD CONSTRAINT MAttributeSetInstance_MStoraOH FOREIGN KEY(M_AttributeSetInstance_ID) REFERENCES M_AttributeSetInstance(M_AttributeSetInstance_ID) DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageOnHand ADD CONSTRAINT MLocator_MStorageOnHand FOREIGN KEY(M_Locator_ID) REFERENCES M_Locator(M_Locator_ID) DEFERRABLE INITIALLY DEFERRED +; + +ALTER TABLE M_StorageReservation ADD CONSTRAINT MAttributeSetInstance_MStoraRe FOREIGN KEY(M_AttributeSetInstance_ID) REFERENCES M_AttributeSetInstance(M_AttributeSetInstance_ID) DEFERRABLE INITIALLY DEFERRED +; + +SELECT register_migration_script('201304181526_IdxFKs.sql') FROM dual +; + diff --git a/migration/i1.0a-release/postgresql/201304191606_IDEMPIERE-867.sql b/migration/i1.0a-release/postgresql/201304191606_IDEMPIERE-867.sql new file mode 100644 index 0000000000..d906b6c17d --- /dev/null +++ b/migration/i1.0a-release/postgresql/201304191606_IDEMPIERE-867.sql @@ -0,0 +1,94 @@ +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Element SET ColumnName='CountryOfManufacture_ID',Updated=TO_TIMESTAMP('2013-04-19 15:45:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200319 +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Column SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL WHERE AD_Element_ID=200319 +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL, AD_Element_ID=200319 WHERE UPPER(ColumnName)='COUNTRYOFMANUFACTURE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL WHERE AD_Element_ID=200319 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:45:19 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_InfoColumn SET ColumnName='CountryOfManufacture_ID', Name='Country Of Manufacture', Description=NULL, Help=NULL WHERE AD_Element_ID=200319 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:07:20 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_CommodityShipment ADD COLUMN CountryOfManufacture_ID NUMERIC(10) DEFAULT NULL +; + +UPDATE M_CommodityShipment SET CountryOfManufacture_ID = CAST(CountryOfManufacture AS NUMERIC); + +ALTER TABLE M_CommodityShipment DROP COLUMN CountryOfManufacture; + +-- Apr 19, 2013 3:38:59 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2013-04-19 15:38:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=201234 +; + +-- Apr 19, 2013 3:39:02 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +INSERT INTO t_alter_column values('m_commodityshipment','CountryOfManufacture_ID','NUMERIC(10)',null,null) +; + +-- Apr 19, 2013 3:39:02 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +INSERT INTO t_alter_column values('m_commodityshipment','CountryOfManufacture_ID',null,'NOT NULL',null) +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Element SET ColumnName='HoldAddress_ID',Updated=TO_TIMESTAMP('2013-04-19 15:40:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=200273 +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Column SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL WHERE AD_Element_ID=200273 +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL, AD_Element_ID=200273 WHERE UPPER(ColumnName)='HOLDADDRESS_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_Process_Para SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL WHERE AD_Element_ID=200273 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:40:18 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +UPDATE AD_InfoColumn SET ColumnName='HoldAddress_ID', Name='Hold Address', Description=NULL, Help=NULL WHERE AD_Element_ID=200273 AND IsCentrallyMaintained='Y' +; + +-- Apr 19, 2013 3:49:32 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_Package ADD COLUMN HoldAddress_ID NUMERIC(10) DEFAULT NULL +; + +UPDATE M_Package SET HoldAddress_ID = CAST(HoldAddress AS NUMERIC); + +ALTER TABLE M_Package DROP COLUMN HoldAddress; + +-- Apr 19, 2013 3:50:03 PM SGT +-- IDEMPIERE-867 Wrong shipping columns naming +ALTER TABLE M_ShippingTransaction ADD COLUMN HoldAddress_ID NUMERIC(10) DEFAULT NULL +; + +UPDATE M_ShippingTransaction SET HoldAddress_ID = CAST(HoldAddress AS NUMERIC); + +ALTER TABLE M_ShippingTransaction DROP COLUMN HoldAddress; + +SELECT register_migration_script('201304191606_IDEMPIERE-867.sql') FROM dual +; \ No newline at end of file diff --git a/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java b/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java index dc545b4fc1..2ce8decb12 100644 --- a/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java +++ b/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java @@ -94,6 +94,7 @@ public class GridTabCSVImporter implements IGridTabImporter String delimiter = String.valueOf((char) csvpref.getDelimiterChar()); String quoteChar = String.valueOf((char) csvpref.getQuoteChar()); m_import_mode = importMode; + PO masterRecord = null; if(!gridTab.isInsertRecord() && isInsertMode()) throw new AdempiereException("Insert record disabled for Tab"); @@ -292,8 +293,7 @@ public class GridTabCSVImporter implements IGridTabImporter // write the header logFileW.write(rawHeader + delimiter + LOG_HEADER + "\n"); // no errors found - process header and then details - boolean isMasterok = true; - PO masterRecord = null; + boolean isMasterok = true; String trxName= null; for (int idx = 0; idx < data.size(); idx++) { String rawLine = rawData.get(idx); @@ -302,12 +302,20 @@ public class GridTabCSVImporter implements IGridTabImporter Trx trx = null; GridTab currentGridTab=null; boolean error=false; - boolean isDetail=false ; + boolean isDetail=false; int currentColumn=0; - if (rawLine.charAt(0)==',') - isDetail=true; - + if (rawLine.charAt(0)==','){ + isDetail=true; + //check out if master row comes empty + Map rowMap = data.get(idx); + for(int i=0; i < indxDetail-1; i++){ + if(rowMap.get(header.get(i))!=null){ + isDetail=false; + break; + } + } + } //if master failed, then ignore any detail from it. if (!isMasterok && isDetail){ rawLine = rawLine + delimiter + quoteChar + Msg.getMsg(Env.getCtx(),"NotProccesed") + quoteChar + "\n"; @@ -316,7 +324,6 @@ public class GridTabCSVImporter implements IGridTabImporter } try { - Map map = data.get(idx); isMasterok = true; if(!isDetail){ masterRecord = null; @@ -335,21 +342,24 @@ public class GridTabCSVImporter implements IGridTabImporter currentGridTab.getTableModel().setImportingMode(true,trxName); trx = Trx.get(trxName,true); - int j = tabIndex.getValue(); + int j = tabIndex.getValue(); - logMsg = areValidKeysAndColumns(currentGridTab,map,header,currentColumn,j,masterRecord); + logMsg = areValidKeysAndColumns(currentGridTab,data.get(idx),header,currentColumn,j,masterRecord); if (logMsg == null){ if (isInsertMode()){ if(!currentGridTab.getTableModel().isOpen()) currentGridTab.getTableModel().open(0); //how to read from status since the warning is coming empty ? - if (!currentGridTab.dataNew(false)) + if (!currentGridTab.dataNew(false)){ logMsg = "["+currentGridTab.getName()+"]"+"- Was not able to create a new record!"; + }else{ + currentGridTab.navigateCurrent(); + } } if(logMsg==null) - logMsg = proccessRow(currentGridTab,header,map,currentColumn,j,masterRecord); + logMsg = proccessRow(currentGridTab,header,data.get(idx),currentColumn,j,masterRecord); currentColumn = j + 1; if(!(logMsg == null)){ @@ -357,7 +367,6 @@ public class GridTabCSVImporter implements IGridTabImporter //Ignore row since there is no data if("NO_DATA_TO_IMPORT".equals(logMsg)){ logMsg =""; - currentGridTab.dataIgnore(); continue; }else error =true; @@ -379,11 +388,9 @@ public class GridTabCSVImporter implements IGridTabImporter logMsg = Msg.getMsg(Env.getCtx(), "Updated")+" "+ po.toString(); trx.commit(); - if(isDetail || currentGridTab.isDetail()){ - currentGridTab.refreshParentTabs(); - currentGridTab.getTableModel().dataRequery(masterRecord.get_WhereClause(true), false, 0); - } - currentGridTab.dataRefresh(true); + //if it's parent record and there are details, parent needs to be refreshed + if(currentGridTab.equals(gridTab) && sortedtTabMapIndexes.size()>1) + currentGridTab.dataRefresh(false); } else { ValueNamePair ppE = CLogger.retrieveWarning(); if (ppE==null) @@ -428,11 +435,15 @@ public class GridTabCSVImporter implements IGridTabImporter } } catch (Exception e) { rowResult.append("<"+currentGridTab.getTableName()+">: "); - rowResult.append(Msg.getMsg(Env.getCtx(), "Error") + " " + e.getLocalizedMessage()); + rowResult.append(Msg.getMsg(Env.getCtx(), "Error") + " " + e); rowResult.append(" / "); currentGridTab.dataIgnore(); trx.rollback(); error = true; + //Master Failed, thus details cannot be imported + if(currentGridTab.equals(gridTab) && masterRecord==null){ + isMasterok = false; + } } finally { if (trx != null) { trx.close(); @@ -463,9 +474,11 @@ public class GridTabCSVImporter implements IGridTabImporter } catch (IOException e) { e.printStackTrace(); } - } - gridTab.getTableModel().dataRequery("1=1",false,0); - gridTab.dataRefreshAll(); + } + if(masterRecord!=null){ + Env.setContext(Env.getCtx(),gridTab.getWindowNo(),gridTab.getTabNo(),GridTab.CTX_SQL,masterRecord.get_WhereClause(true)); + gridTab.dataRefresh(); + } if (logFile != null) return logFile; else @@ -649,7 +662,12 @@ public class GridTabCSVImporter implements IGridTabImporter for(int j= i;j< header.size();j++){ if(!header.get(j).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))) break; - + //validate if location contains its parent table + if(!header.get(j).contains(gridTab.getTableName())) + return new StringBuilder().append("Invalid location column's name, it must contain its parent table: ") + .append(gridTab.getTableName().toString()) + .append("[").append(header.get(j)).append("]"); + String columnName = header.get(j); Object value = tmpRow.get(j); if(value!=null){ @@ -711,12 +729,13 @@ public class GridTabCSVImporter implements IGridTabImporter if(header.get(i).contains(MTable.getTableName(Env.getCtx(),MLocation.Table_ID))){ if(address == null){ + String trxName= (masterRecord==null?null:masterRecord.get_TrxName()); if(isInsertMode()){ - address = new MLocation (Env.getCtx(),0,masterRecord.get_TrxName()); + address = new MLocation (Env.getCtx(),0,trxName); }else{ Object location = gridTab.getValue("C_Location_ID")==null?0:gridTab.getValue("C_Location_ID").toString(); int C_Location_ID = Integer.parseInt(location.toString()); - address = new MLocation (Env.getCtx(),C_Location_ID,masterRecord.get_TrxName()); + address = new MLocation (Env.getCtx(),C_Location_ID,trxName); } } @@ -784,9 +803,9 @@ public class GridTabCSVImporter implements IGridTabImporter if(!field.isDisplayed(true)) continue; - if (!isInsertMode() && !field.isEditable(true) && value!=null) { - logMsg = Msg.getMsg(Env.getCtx(), "FieldNotEditable", new Object[] {header.get(i)}) + "{" + value + "}"; - break; + if(!isInsertMode() && (!field.isEditable(true) && !MColumn.get(Env.getCtx(), field.getAD_Column_ID()).isUpdateable()) && value!=null){ + logMsg = Msg.getMsg(Env.getCtx(), "FieldNotEditable", new Object[] {header.get(i)}) + "{" + value + "}"; + break; } if("(null)".equals(value.toString().trim())){ logMsg = gridTab.setValue(field,null); @@ -847,6 +866,8 @@ public class GridTabCSVImporter implements IGridTabImporter logMsg = gridTab.setValue("C_Location_ID",address.get_ID()); if(logMsg.equals("")) logMsg= null; + else + return logMsg; isThereRow =true; } @@ -981,7 +1002,7 @@ public class GridTabCSVImporter implements IGridTabImporter if (gridTab.isDetail()){ for(String linkColumn : gridTab.getParentColumnNames()){ if(!pquery.getWhereClause().contains(linkColumn)){ - Object value = masterRecord.get_Value(linkColumn); + Object value = masterRecord!=null?masterRecord.get_Value(linkColumn):null; //resolve key if(value==null){ String columnName = null; @@ -1017,8 +1038,7 @@ public class GridTabCSVImporter implements IGridTabImporter } } } - gridTab.getTableModel().dataRequery(pquery.getWhereClause(),false,0); - gridTab.setCurrentRow(0,true); + gridTab.getTableModel().dataRequery(pquery.getWhereClause(), false, 0, false); if (isInsertMode()){ if(gridTab.getTableModel().getRowCount()>=1) logMsg = Msg.getMsg(Env.getCtx(), "AlreadyExists")+" "+pquery; @@ -1026,17 +1046,20 @@ public class GridTabCSVImporter implements IGridTabImporter return null; } if (isUpdateMode()){ - if(gridTab.getTableModel().getRowCount()==1) + if(gridTab.getTableModel().getRowCount()==1){ + gridTab.navigateRelative(gridTab.getCurrentRow()); return null; + } else if(gridTab.getTableModel().getRowCount()<=0) logMsg = Msg.getMsg(Env.getCtx(), "not.found")+" "+pquery; else if(gridTab.getTableModel().getRowCount()>1) logMsg = Msg.getMsg(Env.getCtx(),"TooManyRows")+" "+pquery; } if (isMergeMode()){ - if(gridTab.getTableModel().getRowCount()==1) + if(gridTab.getTableModel().getRowCount()==1){ + gridTab.navigateRelative(gridTab.getCurrentRow()); m_import_mode = IMPORT_MODE_UPDATE; - else if(gridTab.getTableModel().getRowCount()<=0) + }else if(gridTab.getTableModel().getRowCount()<=0) m_import_mode = IMPORT_MODE_INSERT; else if(gridTab.getTableModel().getRowCount()>1) logMsg = Msg.getMsg(Env.getCtx(),"TooManyRows")+" "+pquery; diff --git a/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java b/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java index e732b3964e..d64de5189f 100644 --- a/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java +++ b/org.adempiere.base/src/org/adempiere/process/SalesOrderRateInquiryProcess.java @@ -38,7 +38,6 @@ import org.compiere.model.MUOM; import org.compiere.process.ProcessInfoLog; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; -import org.compiere.util.Trx; /** * @@ -100,25 +99,19 @@ public class SalesOrderRateInquiryProcess extends SvrProcess } } - Trx trx = Trx.get(Trx.createTrxName("spt-"), true); boolean ok = false; MShippingTransaction st = null; try { st = createShippingTransaction(getCtx(), m_order, MShippingTransaction.ACTION_RateInquiry, p_IsPriviledgedRate, get_TrxName()); ok = st.processOnline(); + st.saveEx(); } catch (Exception e) { log.log(Level.SEVERE, "processOnline", e); } - if (trx != null) - { - trx.commit(); - trx.close(); - } - if (ok) { MOrderLine freightLine = null; diff --git a/org.adempiere.base/src/org/compiere/Adempiere.java b/org.adempiere.base/src/org/compiere/Adempiere.java index 77cf55238b..224db16019 100644 --- a/org.adempiere.base/src/org/compiere/Adempiere.java +++ b/org.adempiere.base/src/org/compiere/Adempiere.java @@ -79,14 +79,14 @@ public final class Adempiere /** URL of Product */ static public final String URL = "www.idempiere.org"; /** 16*16 Product Image. **/ - static private final String s_File16x16 = "images/AD16.gif"; + static private final String s_File16x16 = "images/iD16.gif"; /** 32*32 Product Image. */ - static private final String s_file32x32 = "images/AD32.gif"; + static private final String s_file32x32 = "images/iD32.gif"; /** 100*30 Product Image. */ - static private final String s_file100x30 = "images/AD10030.png"; + static private final String s_file100x30 = "images/iD10030.png"; /** 48*15 Product Image. */ - static private final String s_file48x15 = "images/Adempiere.png"; - static private final String s_file48x15HR = "images/AdempiereHR.png"; + static private final String s_file48x15 = "images/iDempiere.png"; + static private final String s_file48x15HR = "images/iDempiereHR.png"; /** Support Email */ static private String s_supportEmail = ""; diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java index a7a1ddac48..9f3cc9dfa7 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTable.java +++ b/org.adempiere.base/src/org/compiere/model/GridTable.java @@ -100,7 +100,7 @@ public class GridTable extends AbstractTableModel /** * */ - private static final long serialVersionUID = 4727235099287761006L; + private static final long serialVersionUID = 5782826500266625861L; public static final String DATA_REFRESH_MESSAGE = "Refreshed"; @@ -2917,9 +2917,10 @@ public class GridTable extends AbstractTableModel * @param whereClause sql where clause * @param onlyCurrentRows only current rows * @param onlyCurrentDays how many days back + * @param fireEvents if tabledatachanged and datastatusievent must be fired * @return true if success */ - public boolean dataRequery (String whereClause, boolean onlyCurrentRows, int onlyCurrentDays) + public boolean dataRequery (String whereClause, boolean onlyCurrentRows, int onlyCurrentDays, boolean fireEvents) { if (log.isLoggable(Level.INFO)) log.info(whereClause + "; OnlyCurrent=" + onlyCurrentRows); close(false); @@ -2931,11 +2932,17 @@ public class GridTable extends AbstractTableModel m_changed = false; m_rowChanged = -1; m_inserting = false; - fireTableDataChanged(); - fireDataStatusIEvent(DATA_REFRESH_MESSAGE, ""); + if (fireEvents) { + fireTableDataChanged(); + fireDataStatusIEvent(DATA_REFRESH_MESSAGE, ""); + } return true; } // dataRequery + public boolean dataRequery (String whereClause, boolean onlyCurrentRows, int onlyCurrentDays) + { + return dataRequery (whereClause, onlyCurrentRows, onlyCurrentDays, true); + } // dataRequery /************************************************************************** * Is Cell Editable. diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_Language.java b/org.adempiere.base/src/org/compiere/model/I_AD_Language.java index 7d6c22c8e5..8e4773583e 100644 --- a/org.adempiere.base/src/org/compiere/model/I_AD_Language.java +++ b/org.adempiere.base/src/org/compiere/model/I_AD_Language.java @@ -182,12 +182,12 @@ public interface I_AD_Language /** Set Decimal Point. * The number notation has a decimal point (no decimal comma) */ - public void setIsDecimalPoint (String IsDecimalPoint); + public void setIsDecimalPoint (boolean IsDecimalPoint); /** Get Decimal Point. * The number notation has a decimal point (no decimal comma) */ - public String getIsDecimalPoint(); + public boolean isDecimalPoint(); /** Column name IsLoginLocale */ public static final String COLUMNNAME_IsLoginLocale = "IsLoginLocale"; diff --git a/org.adempiere.base/src/org/compiere/model/I_A_Asset_Addition.java b/org.adempiere.base/src/org/compiere/model/I_A_Asset_Addition.java index 4aca569754..d31a78418e 100644 --- a/org.adempiere.base/src/org/compiere/model/I_A_Asset_Addition.java +++ b/org.adempiere.base/src/org/compiere/model/I_A_Asset_Addition.java @@ -270,6 +270,21 @@ public interface I_A_Asset_Addition public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException; + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException; + /** Column name C_Invoice_ID */ public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; diff --git a/org.adempiere.base/src/org/compiere/model/I_A_Asset_Disposed.java b/org.adempiere.base/src/org/compiere/model/I_A_Asset_Disposed.java index e2490aa01a..01e6c76b1e 100644 --- a/org.adempiere.base/src/org/compiere/model/I_A_Asset_Disposed.java +++ b/org.adempiere.base/src/org/compiere/model/I_A_Asset_Disposed.java @@ -35,9 +35,9 @@ public interface I_A_Asset_Disposed KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - /** AccessLevel = 7 - System - Client - Org + /** AccessLevel = 3 - Client - Org */ - BigDecimal accessLevel = BigDecimal.valueOf(7); + BigDecimal accessLevel = BigDecimal.valueOf(3); /** Load Meta Data */ @@ -196,6 +196,21 @@ public interface I_A_Asset_Disposed /** Get Asset Proceeds */ public BigDecimal getA_Proceeds(); + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException; + /** Column name C_Invoice_ID */ public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; diff --git a/org.adempiere.base/src/org/compiere/model/I_A_Depreciation_Entry.java b/org.adempiere.base/src/org/compiere/model/I_A_Depreciation_Entry.java index 39ee88dca4..f6da9cae0c 100644 --- a/org.adempiere.base/src/org/compiere/model/I_A_Depreciation_Entry.java +++ b/org.adempiere.base/src/org/compiere/model/I_A_Depreciation_Entry.java @@ -243,21 +243,6 @@ public interface I_A_Depreciation_Entry */ public String getDocumentNo(); - /** Column name GL_Category_ID */ - public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; - - /** Set GL Category. - * General Ledger Category - */ - public void setGL_Category_ID (int GL_Category_ID); - - /** Get GL Category. - * General Ledger Category - */ - public int getGL_Category_ID(); - - public org.compiere.model.I_GL_Category getGL_Category() throws RuntimeException; - /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; diff --git a/org.adempiere.base/src/org/compiere/model/I_M_CommodityShipment.java b/org.adempiere.base/src/org/compiere/model/I_M_CommodityShipment.java index d702d17493..048509f8e5 100644 --- a/org.adempiere.base/src/org/compiere/model/I_M_CommodityShipment.java +++ b/org.adempiere.base/src/org/compiere/model/I_M_CommodityShipment.java @@ -62,14 +62,14 @@ public interface I_M_CommodityShipment */ public int getAD_Org_ID(); - /** Column name CountryOfManufacture */ - public static final String COLUMNNAME_CountryOfManufacture = "CountryOfManufacture"; + /** Column name CountryOfManufacture_ID */ + public static final String COLUMNNAME_CountryOfManufacture_ID = "CountryOfManufacture_ID"; /** Set Country Of Manufacture */ - public void setCountryOfManufacture (int CountryOfManufacture); + public void setCountryOfManufacture_ID (int CountryOfManufacture_ID); /** Get Country Of Manufacture */ - public int getCountryOfManufacture(); + public int getCountryOfManufacture_ID(); /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -131,6 +131,24 @@ public interface I_M_CommodityShipment */ public boolean isActive(); + /** Column name M_CommodityShipment_ID */ + public static final String COLUMNNAME_M_CommodityShipment_ID = "M_CommodityShipment_ID"; + + /** Set Commodity Shipment */ + public void setM_CommodityShipment_ID (int M_CommodityShipment_ID); + + /** Get Commodity Shipment */ + public int getM_CommodityShipment_ID(); + + /** Column name M_CommodityShipment_UU */ + public static final String COLUMNNAME_M_CommodityShipment_UU = "M_CommodityShipment_UU"; + + /** Set M_CommodityShipment_UU */ + public void setM_CommodityShipment_UU (String M_CommodityShipment_UU); + + /** Get M_CommodityShipment_UU */ + public String getM_CommodityShipment_UU(); + /** Column name M_Product_ID */ public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; @@ -161,22 +179,4 @@ public interface I_M_CommodityShipment * User who updated this records */ public int getUpdatedBy(); - - /** Column name M_CommodityShipment_ID */ - public static final String COLUMNNAME_M_CommodityShipment_ID = "M_CommodityShipment_ID"; - - /** Set M_CommodityShipment */ - public void setM_CommodityShipment_ID (int M_CommodityShipment_ID); - - /** Get M_CommodityShipment */ - public int getM_CommodityShipment_ID(); - - /** Column name M_CommodityShipment_UU */ - public static final String COLUMNNAME_M_CommodityShipment_UU = "M_CommodityShipment_UU"; - - /** Set M_CommodityShipment_UU */ - public void setM_CommodityShipment_UU (String M_CommodityShipment_UU); - - /** Get M_CommodityShipment_UU */ - public String getM_CommodityShipment_UU(); } diff --git a/org.adempiere.base/src/org/compiere/model/I_M_Package.java b/org.adempiere.base/src/org/compiere/model/I_M_Package.java index e6c24c9e19..d4e8f8f402 100644 --- a/org.adempiere.base/src/org/compiere/model/I_M_Package.java +++ b/org.adempiere.base/src/org/compiere/model/I_M_Package.java @@ -300,16 +300,16 @@ public interface I_M_Package /** Get Height */ public BigDecimal getHeight(); - /** Column name HoldAddress */ - public static final String COLUMNNAME_HoldAddress = "HoldAddress"; + /** Column name HoldAddress_ID */ + public static final String COLUMNNAME_HoldAddress_ID = "HoldAddress_ID"; /** Set Hold Address */ - public void setHoldAddress (int HoldAddress); + public void setHoldAddress_ID (int HoldAddress_ID); /** Get Hold Address */ - public int getHoldAddress(); + public int getHoldAddress_ID(); - public org.compiere.model.I_C_BPartner_Location getHoldAddr() throws RuntimeException; + public org.compiere.model.I_C_BPartner_Location getHoldAddress() throws RuntimeException; /** Column name HomeDeliveryPremiumDate */ public static final String COLUMNNAME_HomeDeliveryPremiumDate = "HomeDeliveryPremiumDate"; diff --git a/org.adempiere.base/src/org/compiere/model/I_M_ShippingTransaction.java b/org.adempiere.base/src/org/compiere/model/I_M_ShippingTransaction.java index f397980b45..129f7b85ca 100644 --- a/org.adempiere.base/src/org/compiere/model/I_M_ShippingTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/I_M_ShippingTransaction.java @@ -114,14 +114,16 @@ public interface I_M_ShippingTransaction /** Get Box Count */ public int getBoxCount(); - /** Column name CashOnDelivery */ - public static final String COLUMNNAME_CashOnDelivery = "CashOnDelivery"; + /** Column name C_BP_ShippingAcct_ID */ + public static final String COLUMNNAME_C_BP_ShippingAcct_ID = "C_BP_ShippingAcct_ID"; - /** Set COD */ - public void setCashOnDelivery (boolean CashOnDelivery); + /** Set Business Partner Shipping Account */ + public void setC_BP_ShippingAcct_ID (int C_BP_ShippingAcct_ID); - /** Get COD */ - public boolean isCashOnDelivery(); + /** Get Business Partner Shipping Account */ + public int getC_BP_ShippingAcct_ID(); + + public org.compiere.model.I_C_BP_ShippingAcct getC_BP_ShippingAcct() throws RuntimeException; /** Column name C_BPartner_ID */ public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; @@ -153,17 +155,6 @@ public interface I_M_ShippingTransaction public org.compiere.model.I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException; - /** Column name C_BP_ShippingAcct_ID */ - public static final String COLUMNNAME_C_BP_ShippingAcct_ID = "C_BP_ShippingAcct_ID"; - - /** Set Business Partner Shipping Account */ - public void setC_BP_ShippingAcct_ID (int C_BP_ShippingAcct_ID); - - /** Get Business Partner Shipping Account */ - public int getC_BP_ShippingAcct_ID(); - - public org.compiere.model.I_C_BP_ShippingAcct getC_BP_ShippingAcct() throws RuntimeException; - /** Column name C_Currency_ID */ public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; @@ -194,15 +185,6 @@ public interface I_M_ShippingTransaction public org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException; - /** Column name CODAmount */ - public static final String COLUMNNAME_CODAmount = "CODAmount"; - - /** Set COD Amount */ - public void setCODAmount (BigDecimal CODAmount); - - /** Get COD Amount */ - public BigDecimal getCODAmount(); - /** Column name C_Order_ID */ public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; @@ -218,22 +200,6 @@ public interface I_M_ShippingTransaction public org.compiere.model.I_C_Order getC_Order() throws RuntimeException; - /** Column name Created */ - public static final String COLUMNNAME_Created = "Created"; - - /** Get Created. - * Date this record was created - */ - public Timestamp getCreated(); - - /** Column name CreatedBy */ - public static final String COLUMNNAME_CreatedBy = "CreatedBy"; - - /** Get Created By. - * User who created this records - */ - public int getCreatedBy(); - /** Column name C_UOM_Length_ID */ public static final String COLUMNNAME_C_UOM_Length_ID = "C_UOM_Length_ID"; @@ -264,6 +230,40 @@ public interface I_M_ShippingTransaction public org.compiere.model.I_C_UOM getC_UOM_Weight() throws RuntimeException; + /** Column name CashOnDelivery */ + public static final String COLUMNNAME_CashOnDelivery = "CashOnDelivery"; + + /** Set COD */ + public void setCashOnDelivery (boolean CashOnDelivery); + + /** Get COD */ + public boolean isCashOnDelivery(); + + /** Column name CODAmount */ + public static final String COLUMNNAME_CODAmount = "CODAmount"; + + /** Set COD Amount */ + public void setCODAmount (BigDecimal CODAmount); + + /** Get COD Amount */ + public BigDecimal getCODAmount(); + + /** Column name Created */ + public static final String COLUMNNAME_Created = "Created"; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Column name CreatedBy */ + public static final String COLUMNNAME_CreatedBy = "CreatedBy"; + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + /** Column name CustomsValue */ public static final String COLUMNNAME_CustomsValue = "CustomsValue"; @@ -397,16 +397,16 @@ public interface I_M_ShippingTransaction /** Get Height */ public BigDecimal getHeight(); - /** Column name HoldAddress */ - public static final String COLUMNNAME_HoldAddress = "HoldAddress"; + /** Column name HoldAddress_ID */ + public static final String COLUMNNAME_HoldAddress_ID = "HoldAddress_ID"; /** Set Hold Address */ - public void setHoldAddress (int HoldAddress); + public void setHoldAddress_ID (int HoldAddress_ID); /** Get Hold Address */ - public int getHoldAddress(); + public int getHoldAddress_ID(); - public org.compiere.model.I_C_BPartner_Location getHoldAddr() throws RuntimeException; + public org.compiere.model.I_C_BPartner_Location getHoldAddress() throws RuntimeException; /** Column name HomeDeliveryPremiumDate */ public static final String COLUMNNAME_HomeDeliveryPremiumDate = "HomeDeliveryPremiumDate"; diff --git a/org.adempiere.base/src/org/compiere/model/MAsset.java b/org.adempiere.base/src/org/compiere/model/MAsset.java index f18b3a8f67..c24f5926ba 100644 --- a/org.adempiere.base/src/org/compiere/model/MAsset.java +++ b/org.adempiere.base/src/org/compiere/model/MAsset.java @@ -324,7 +324,8 @@ public class MAsset extends X_A_Asset // Copy fields from C_BPartner_Location if (is_ValueChanged(COLUMNNAME_C_BPartner_Location_ID) && getC_BPartner_Location_ID() > 0) { - SetGetUtil.copyValues((SetGetModel)this, MBPartnerLocation.Table_Name, getC_BPartner_Location_ID(), + // Goodwill BF: “Error: org.compiere.model.MAsset cannot be cast to org.compiere.model.SetGetModel” + SetGetUtil.copyValues(SetGetUtil.wrap(this), MBPartnerLocation.Table_Name, getC_BPartner_Location_ID(), new String[]{MBPartnerLocation.COLUMNNAME_C_Location_ID} ); } diff --git a/org.adempiere.base/src/org/compiere/model/MAssetAddition.java b/org.adempiere.base/src/org/compiere/model/MAssetAddition.java index 78abe1ed78..d598853e64 100644 --- a/org.adempiere.base/src/org/compiere/model/MAssetAddition.java +++ b/org.adempiere.base/src/org/compiere/model/MAssetAddition.java @@ -238,6 +238,7 @@ public class MAssetAddition extends X_A_Asset_Addition { this(match.getCtx(), 0, match.get_TrxName()); setM_MatchInv(match); + setC_DocType_ID(); } //added by @win @@ -263,6 +264,7 @@ public class MAssetAddition extends X_A_Asset_Addition setA_CreateAsset(true); //added by @win as create from project will certainly for createnew setDeltaUseLifeYears(I_ZERO); setDeltaUseLifeYears_F(I_ZERO); + setC_DocType_ID(); Timestamp dateAcct = new Timestamp (System.currentTimeMillis()); if (dateAcct != null) @@ -314,6 +316,7 @@ public class MAssetAddition extends X_A_Asset_Addition setA_CapvsExp(MAssetAddition.A_CAPVSEXP_Capital); //added by zuhri, import must be in Capital setA_CreateAsset(true); //added by zuhri, import must be create asset setA_Salvage_Value(ifa.getA_Salvage_Value()); + setC_DocType_ID(); Timestamp dateAcct = ifa.getDateAcct(); if (dateAcct != null) @@ -1187,4 +1190,21 @@ public class MAssetAddition extends X_A_Asset_Addition } } } + + private void setC_DocType_ID() + { + StringBuilder sql = new StringBuilder ("SELECT C_DocType_ID FROM C_DocType ") + .append( "WHERE AD_Client_ID=? AND AD_Org_ID IN (0,").append( getAD_Org_ID()) + .append( ") AND DocBaseType='FAA' ") + .append( "ORDER BY AD_Org_ID DESC, IsDefault DESC"); + int C_DocType_ID = DB.getSQLValue(null, sql.toString(), getAD_Client_ID()); + if (C_DocType_ID <= 0) + log.severe ("No FAA found for AD_Client_ID=" + getAD_Client_ID ()); + else + { + if (log.isLoggable(Level.FINE)) log.fine("(PO) - " + C_DocType_ID); + setC_DocType_ID (C_DocType_ID); + } + + } } // MAssetAddition diff --git a/org.adempiere.base/src/org/compiere/model/MInvoice.java b/org.adempiere.base/src/org/compiere/model/MInvoice.java index 8cd679090e..4f0dcaa0e0 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoice.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoice.java @@ -1964,37 +1964,63 @@ public class MInvoice extends X_C_Invoice implements DocAction // auto delay capture authorization payment if (isSOTrx() && !isReversal()) { - int[] ids = MPaymentTransaction.getAuthorizationPaymentTransactionIDs(getC_Order_ID(), getC_Invoice_ID(), get_TrxName()); + StringBuilder whereClause = new StringBuilder(); + whereClause.append("C_Order_ID IN ("); + whereClause.append("SELECT C_Order_ID "); + whereClause.append("FROM C_OrderLine "); + whereClause.append("WHERE C_OrderLine_ID IN ("); + whereClause.append("SELECT C_OrderLine_ID "); + whereClause.append("FROM C_InvoiceLine "); + whereClause.append("WHERE C_Invoice_ID = "); + whereClause.append(getC_Invoice_ID()).append("))"); + int[] orderIDList = MOrder.getAllIDs(MOrder.Table_Name, whereClause.toString(), get_TrxName()); + + int[] ids = MPaymentTransaction.getAuthorizationPaymentTransactionIDs(orderIDList, getC_Invoice_ID(), get_TrxName()); if (ids.length > 0) { + boolean pureCIM = true; ArrayList ptList = new ArrayList(); BigDecimal totalPayAmt = BigDecimal.ZERO; for (int id : ids) { - MPaymentTransaction pt = new MPaymentTransaction(Env.getCtx(), id, get_TrxName()); + MPaymentTransaction pt = new MPaymentTransaction(getCtx(), id, get_TrxName()); + if (!pt.setPaymentProcessor()) + { + if (pt.getC_PaymentProcessor_ID() > 0) + { + MPaymentProcessor pp = new MPaymentProcessor(getCtx(), pt.getC_PaymentProcessor_ID(), get_TrxName()); + m_processMsg = Msg.getMsg(getCtx(), "PaymentNoProcessorModel") + ": " + pp.toString(); + } + else + m_processMsg = Msg.getMsg(getCtx(), "PaymentNoProcessorModel"); + return DocAction.STATUS_Invalid; + } + + boolean isCIM = pt.getC_PaymentProcessor_ID() > 0 && pt.getCustomerPaymentProfileID() != null && pt.getCustomerPaymentProfileID().length() > 0; + if (pureCIM && !isCIM) + pureCIM = false; totalPayAmt = totalPayAmt.add(pt.getPayAmt()); ptList.add(pt); } // automatically void authorization payment and create a new sales payment when invoiced amount is NOT equals to the authorized amount (applied to CIM payment processor) - if(getGrandTotal().compareTo(totalPayAmt) != 0 && - ptList.size() > 0 && - ptList.get(0).getCustomerPaymentProfileID() != null && - ptList.get(0).getCustomerPaymentProfileID().length() > 0) + if (getGrandTotal().compareTo(totalPayAmt) != 0 && ptList.size() > 0 && pureCIM) { // create a new sales payment MPaymentTransaction newSalesPT = MPaymentTransaction.copyFrom(ptList.get(0), new Timestamp(System.currentTimeMillis()), MPayment.TRXTYPE_Sales, "", get_TrxName()); newSalesPT.setIsApproved(false); newSalesPT.setIsVoided(false); newSalesPT.setIsDelayedCapture(false); - newSalesPT.setDescription("InvoicedAmt: " + getGrandTotal() + " > TotalAuthorizedAmt: " + totalPayAmt); + newSalesPT.setDescription("InvoicedAmt: " + getGrandTotal() + " <> TotalAuthorizedAmt: " + totalPayAmt); + newSalesPT.setC_Invoice_ID(getC_Invoice_ID()); + newSalesPT.setPayAmt(getGrandTotal()); // void authorization payment for (MPaymentTransaction pt : ptList) { - pt.setDescription("InvoicedAmt: " + getGrandTotal() + " > AuthorizedAmt: " + pt.getPayAmt()); + pt.setDescription("InvoicedAmt: " + getGrandTotal() + " <> AuthorizedAmt: " + pt.getPayAmt()); boolean ok = pt.voidOnlineAuthorizationPaymentTransaction(); pt.saveEx(); if (!ok) @@ -2013,6 +2039,11 @@ public class MInvoice extends X_C_Invoice implements DocAction return DocAction.STATUS_Invalid; } } + else if (getGrandTotal().compareTo(totalPayAmt) != 0 && ptList.size() > 0) + { + m_processMsg = "InvoicedAmt: " + getGrandTotal() + " <> AuthorizedAmt: " + totalPayAmt; + return DocAction.STATUS_Invalid; + } else { // delay capture authorization payment diff --git a/org.adempiere.base/src/org/compiere/model/MOrder.java b/org.adempiere.base/src/org/compiere/model/MOrder.java index 40c4d3e5e6..e71c3fcf75 100644 --- a/org.adempiere.base/src/org/compiere/model/MOrder.java +++ b/org.adempiere.base/src/org/compiere/model/MOrder.java @@ -44,7 +44,6 @@ import org.compiere.process.ServerProcessCtl; import org.compiere.util.DB; import org.compiere.util.Env; import org.compiere.util.Msg; -import org.compiere.util.Trx; import org.compiere.util.Util; import org.eevolution.model.MPPProductBOM; import org.eevolution.model.MPPProductBOMLine; @@ -1503,25 +1502,19 @@ public class MOrder extends X_C_Order implements DocAction } } - Trx trx = Trx.get(Trx.createTrxName("spt-"), true); boolean ok = false; MShippingTransaction st = null; try { st = SalesOrderRateInquiryProcess.createShippingTransaction(getCtx(), this, MShippingTransaction.ACTION_RateInquiry, isPriviledgedRate(), get_TrxName()); ok = st.processOnline(); + st.saveEx(); } catch (Exception e) { log.log(Level.SEVERE, "processOnline", e); } - if (trx != null) - { - trx.commit(); - trx.close(); - } - if (ok) { if (freightLine == null) @@ -2401,6 +2394,11 @@ public class MOrder extends X_C_Order implements DocAction if (m_processMsg != null) return false; + if (getLink_Order_ID() > 0) { + MOrder so = new MOrder(getCtx(), getLink_Order_ID(), get_TrxName()); + so.setLink_Order_ID(0); + so.saveEx(); + } MOrderLine[] lines = getLines(true, MOrderLine.COLUMNNAME_M_Product_ID); for (int i = 0; i < lines.length; i++) { @@ -2418,6 +2416,11 @@ public class MOrder extends X_C_Order implements DocAction { deleteMatchPOCostDetail(line); } + if (line.getLink_OrderLine_ID() > 0) { + MOrderLine soline = new MOrderLine(getCtx(), line.getLink_OrderLine_ID(), get_TrxName()); + soline.setLink_OrderLine_ID(0); + soline.saveEx(); + } } // update taxes diff --git a/org.adempiere.base/src/org/compiere/model/MPackage.java b/org.adempiere.base/src/org/compiere/model/MPackage.java index cc3c0c551c..edb4d71f34 100644 --- a/org.adempiere.base/src/org/compiere/model/MPackage.java +++ b/org.adempiere.base/src/org/compiere/model/MPackage.java @@ -282,6 +282,7 @@ public class MPackage extends X_M_Package { MShippingTransaction st = createShippingTransaction(action, isPriviledgedRate, trx.getTrxName()); ok = st.processOnline(); + st.saveEx(); if (action.equals(MShippingTransaction.ACTION_ProcessShipment)) { @@ -443,11 +444,23 @@ public class MPackage extends X_M_Package sb.append("FROM M_InOutLine "); sb.append("WHERE M_InOut_ID = ?) "); sb.append("ORDER BY C_OrderLine_ID DESC"); - int C_Invoice_ID = DB.getSQLValue(get_TrxName(), sb.toString(), getM_InOut_ID()); - if (C_Invoice_ID > 0) - invoice = new MInvoice(getCtx(), C_Invoice_ID, get_TrxName()); + int C_Order_ID = DB.getSQLValue(get_TrxName(), sb.toString(), getM_InOut_ID()); + if (C_Order_ID > 0) + order = new MOrder(getCtx(), C_Order_ID, get_TrxName()); } } + + if (invoice == null && order != null) + { + StringBuilder sb = new StringBuilder(); + sb.append("SELECT C_Invoice_ID "); + sb.append("FROM C_Invoice "); + sb.append("WHERE C_Order_ID = ? "); + sb.append("ORDER BY C_Invoice_ID DESC"); + int C_Invoice_ID = DB.getSQLValue(get_TrxName(), sb.toString(), order.getC_Order_ID()); + if (C_Invoice_ID > 0) + invoice = new MInvoice(getCtx(), C_Invoice_ID, get_TrxName()); + } } MClientInfo ci = MClientInfo.get(getCtx(), getAD_Client_ID(), get_TrxName()); @@ -508,7 +521,7 @@ public class MPackage extends X_M_Package st.setFreightCharges(getFreightCharges()); st.setHandlingCharge(getHandlingCharge()); st.setHeight(getHeight()); - st.setHoldAddress(getHoldAddress()); + st.setHoldAddress_ID(getHoldAddress_ID()); st.setHomeDeliveryPremiumDate(getHomeDeliveryPremiumDate()); st.setHomeDeliveryPremiumPhone(getHomeDeliveryPremiumPhone()); st.setHomeDeliveryPremiumType(getHomeDeliveryPremiumType()); @@ -567,6 +580,15 @@ public class MPackage extends X_M_Package for (int i = 0; i < ids.length; i++) { MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], get_TrxName()); + if (packageMPS.getWeight() == null || packageMPS.getWeight().compareTo(BigDecimal.ZERO) == 0) + { + String sql = "SELECT SUM(LineWeight) FROM X_PackageLineWeight plw WHERE plw.M_PackageMPS_ID=?"; + BigDecimal weight = DB.getSQLValueBD(get_TrxName(), sql, packageMPS.getM_PackageMPS_ID()); + if (weight == null) + weight = BigDecimal.ZERO; + packageMPS.setWeight(weight); + packageMPS.saveEx(); + } MShippingTransactionLine stl = new MShippingTransactionLine(st.getCtx(), 0, st.get_TrxName()); stl.setAD_Client_ID(packageMPS.getAD_Client_ID()); diff --git a/org.adempiere.base/src/org/compiere/model/MPayment.java b/org.adempiere.base/src/org/compiere/model/MPayment.java index f1e8f204ad..8474d4d83c 100644 --- a/org.adempiere.base/src/org/compiere/model/MPayment.java +++ b/org.adempiere.base/src/org/compiere/model/MPayment.java @@ -493,8 +493,17 @@ public final class MPayment extends X_C_Payment setPaymentProcessor(); if (m_mBankAccountProcessor == null) { - log.log(Level.WARNING, "No Payment Processor Model"); - setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNoProcessorModel")); + if (getC_PaymentProcessor_ID() > 0) + { + MPaymentProcessor pp = new MPaymentProcessor(getCtx(), getC_PaymentProcessor_ID(), get_TrxName()); + log.log(Level.WARNING, "No Payment Processor Model " + pp.toString()); + setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNoProcessorModel") + ": " + pp.toString()); + } + else + { + log.log(Level.WARNING, "No Payment Processor Model"); + setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNoProcessorModel")); + } return false; } @@ -549,6 +558,8 @@ public final class MPayment extends X_C_Payment try { + trx.start(); + MPaymentTransaction m_mPaymentTransaction = createPaymentTransaction(trx.getTrxName()); m_mPaymentTransaction.setIsApproved(approved); if(getTrxType().equals(TRXTYPE_Void) || getTrxType().equals(TRXTYPE_CreditPayment)) diff --git a/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java b/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java index 7a21a9c088..4b4960f566 100644 --- a/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java @@ -170,11 +170,6 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce * @return true if approved */ public boolean processOnline() - { - return processOnline(get_TrxName()); - } - - public boolean processOnline(String trxName) { if (log.isLoggable(Level.INFO)) log.info ("Amt=" + getPayAmt()); // @@ -213,8 +208,17 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce setPaymentProcessor(); if (m_mBankAccountProcessor == null) { - log.log(Level.WARNING, "No Payment Processor Model"); - setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNoProcessorModel")); + if (getC_PaymentProcessor_ID() > 0) + { + MPaymentProcessor pp = new MPaymentProcessor(getCtx(), getC_PaymentProcessor_ID(), get_TrxName()); + log.log(Level.WARNING, "No Payment Processor Model " + pp.toString()); + setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNoProcessorModel") + ": " + pp.toString()); + } + else + { + log.log(Level.WARNING, "No Payment Processor Model"); + setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNoProcessorModel")); + } return false; } @@ -252,7 +256,7 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce && !getTrxType().equals(MPaymentTransaction.TRXTYPE_VoiceAuthorization) && !getTrxType().equals(MPaymentTransaction.TRXTYPE_Void)) { - MPayment m_mPayment = createPayment(trxName); + MPayment m_mPayment = createPayment(get_TrxName()); m_mPayment.saveEx(); setC_Payment_ID(m_mPayment.getC_Payment_ID()); processed = m_mPayment.processIt(DocAction.ACTION_Complete); @@ -287,7 +291,7 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce setIsVoided(approved); else if(getTrxType().equals(TRXTYPE_DelayedCapture)) setIsDelayedCapture(approved); - + MOnlineTrxHistory history = new MOnlineTrxHistory(getCtx(), 0, get_TrxName()); history.setAD_Table_ID(MPaymentTransaction.Table_ID); history.setRecord_ID(getC_PaymentTransaction_ID()); @@ -321,16 +325,14 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce { if (getTenderType().equals(TENDERTYPE_CreditCard) && isOnline() && getTrxType().equals(TRXTYPE_Authorization) && !isVoided() && !isDelayedCapture()) { - Trx trx = Trx.get(Trx.createTrxName("ppt-"), true); - boolean ok = false; try { - MPaymentTransaction m_mPaymentTransaction = copyFrom(this, new Timestamp(System.currentTimeMillis()), TRXTYPE_Void, getR_PnRef(), trx.getTrxName()); + MPaymentTransaction m_mPaymentTransaction = copyFrom(this, new Timestamp(System.currentTimeMillis()), TRXTYPE_Void, getR_PnRef(), get_TrxName()); m_mPaymentTransaction.setIsApproved(false); m_mPaymentTransaction.setIsVoided(false); m_mPaymentTransaction.setIsDelayedCapture(false); - ok = m_mPaymentTransaction.processOnline(get_TrxName()); + ok = m_mPaymentTransaction.processOnline(); m_mPaymentTransaction.setRef_PaymentTransaction_ID(getC_PaymentTransaction_ID()); m_mPaymentTransaction.saveEx(); @@ -348,14 +350,6 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce log.log(Level.SEVERE, "voidOnlineAuthorizationPaymentTransaction", e); setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNotProcessed") + ": " + e.getMessage()); } - finally - { - if (trx != null) - { - trx.commit(); - trx.close(); - } - } return ok; } @@ -367,12 +361,10 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce { if (getTenderType().equals(TENDERTYPE_CreditCard) && isOnline() && getTrxType().equals(TRXTYPE_Authorization) && !isVoided() && !isDelayedCapture()) { - Trx trx = Trx.get(Trx.createTrxName("ppt-"), true); - boolean ok = false; try { - MPaymentTransaction m_mPaymentTransaction = copyFrom(this, new Timestamp(System.currentTimeMillis()), TRXTYPE_DelayedCapture, getR_PnRef(), trx.getTrxName()); + MPaymentTransaction m_mPaymentTransaction = copyFrom(this, new Timestamp(System.currentTimeMillis()), TRXTYPE_DelayedCapture, getR_PnRef(), get_TrxName()); m_mPaymentTransaction.setIsApproved(false); m_mPaymentTransaction.setIsVoided(false); m_mPaymentTransaction.setIsDelayedCapture(false); @@ -380,7 +372,7 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce if (C_Invoice_ID != 0) m_mPaymentTransaction.setC_Invoice_ID(C_Invoice_ID); - ok = m_mPaymentTransaction.processOnline(get_TrxName()); + ok = m_mPaymentTransaction.processOnline(); m_mPaymentTransaction.setRef_PaymentTransaction_ID(getC_PaymentTransaction_ID()); m_mPaymentTransaction.saveEx(); @@ -399,14 +391,6 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce log.log(Level.SEVERE, "delayCaptureOnlineAuthorizationPaymentTransaction", e); setErrorMessage(Msg.getMsg(Env.getCtx(), "PaymentNotProcessed") + ": " + e.getMessage()); } - finally - { - if (trx != null) - { - trx.commit(); - trx.close(); - } - } return ok; } @@ -596,26 +580,26 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce to.setDateTrx(dateTrx); to.setDescription(from.getDescription()); to.setIsActive(from.isActive()); -// to.setIsApproved(from.isApproved()); -// to.setIsDelayedCapture(from.isDelayedCapture()); + to.setIsApproved(false); + to.setIsDelayedCapture(false); to.setIsOnline(from.isOnline()); to.setIsReceipt(from.isReceipt()); to.setIsSelfService(from.isSelfService()); -// to.setIsVoided(from.isVoided()); + to.setIsVoided(false); to.setMicr(from.getMicr()); to.setOrig_TrxID(orig_TrxID); to.setPayAmt(from.getPayAmt()); to.setPONum(from.getPONum()); -// to.setProcessed(from.isProcessed()); -// to.setR_AuthCode(from.getR_AuthCode()); -// to.setR_AvsAddr(from.getR_AvsAddr()); -// to.setR_AvsZip(from.getR_AvsZip()); -// to.setR_CVV2Match(from.isR_CVV2Match()); -// to.setR_Info(from.getR_Info()); -// to.setR_PnRef(from.getR_PnRef()); -// to.setR_RespMsg(from.getR_RespMsg()); -// to.setR_Result(from.getR_Result()); -// to.setR_VoidMsg(from.getR_VoidMsg()); + to.setProcessed(false); + to.setR_AuthCode(null); + to.setR_AvsAddr(null); + to.setR_AvsZip(null); + to.setR_CVV2Match(false); + to.setR_Info(null); + to.setR_PnRef(null); + to.setR_RespMsg(null); + to.setR_Result(null); + to.setR_VoidMsg(null); to.setRoutingNo(from.getRoutingNo()); to.setTaxAmt(from.getTaxAmt()); to.setTenderType(from.getTenderType()); @@ -644,4 +628,32 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce return MPaymentTransaction.getAllIDs(Table_Name, whereClause.toString(), trxName); } + + public static int[] getAuthorizationPaymentTransactionIDs(int[] orderIDList, int C_Invoice_ID, String trxName) + { + StringBuilder sb = new StringBuilder(); + if (orderIDList != null) + { + for (int orderID : orderIDList) + sb.append(orderID).append(","); + } + + String orderIDs = sb.toString(); + if (orderIDs.length() > 0) + orderIDs = orderIDs.substring(0, orderIDs.length() - 1); + + StringBuilder whereClause = new StringBuilder(); + whereClause.append("TenderType='").append(MPaymentTransaction.TENDERTYPE_CreditCard).append("' "); + whereClause.append("AND TrxType='").append(MPaymentTransaction.TRXTYPE_Authorization).append("' "); + if (orderIDs.length() > 0 && C_Invoice_ID > 0) + whereClause.append(" AND (C_Order_ID IN (").append(orderIDs).append(") OR C_Invoice_ID=").append(C_Invoice_ID).append(")"); + else if (orderIDs.length() > 0) + whereClause.append(" AND C_Order_ID IN ('").append(orderIDs).append(")"); + else if (C_Invoice_ID > 0) + whereClause.append(" AND C_Invoice_ID=").append(C_Invoice_ID); + whereClause.append(" AND IsApproved='Y' AND IsVoided='N' AND IsDelayedCapture='N' "); + whereClause.append("ORDER BY DateTrx DESC"); + + return MPaymentTransaction.getAllIDs(Table_Name, whereClause.toString(), trxName); + } } diff --git a/org.adempiere.base/src/org/compiere/model/MShippingTransaction.java b/org.adempiere.base/src/org/compiere/model/MShippingTransaction.java index a8112860d1..a3019a78e0 100644 --- a/org.adempiere.base/src/org/compiere/model/MShippingTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/MShippingTransaction.java @@ -303,7 +303,7 @@ public class MShippingTransaction extends X_M_ShippingTransaction public String getCountryOfManufacture(int M_Product_ID) { X_M_CommodityShipment commodityShipment = getCommodityShipment(M_Product_ID); - int countryId = commodityShipment.getCountryOfManufacture(); + int countryId = commodityShipment.getCountryOfManufacture_ID(); X_C_Country c = new X_C_Country(getCtx(), countryId, null); return c.getCountryCode(); } diff --git a/org.adempiere.base/src/org/compiere/model/MTable.java b/org.adempiere.base/src/org/compiere/model/MTable.java index df61abd7d5..c14d0b7f5c 100644 --- a/org.adempiere.base/src/org/compiere/model/MTable.java +++ b/org.adempiere.base/src/org/compiere/model/MTable.java @@ -619,6 +619,7 @@ public class MTable extends X_AD_Table */ public static boolean isZeroIDTable(String tablename) { return (tablename.equals("AD_Org") || + tablename.equals("AD_OrgInfo") || tablename.equals("AD_Client") || // IDEMPIERE-668 tablename.equals("AD_ReportView") || tablename.equals("AD_Role") || diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_Language.java b/org.adempiere.base/src/org/compiere/model/X_AD_Language.java index 2289bfc83e..39bad4641a 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_Language.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_Language.java @@ -30,7 +30,7 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent /** * */ - private static final long serialVersionUID = 20130315L; + private static final long serialVersionUID = 20130413L; /** Standard Constructor */ public X_AD_Language (Properties ctx, int AD_Language_ID, String trxName) @@ -214,28 +214,28 @@ public class X_AD_Language extends PO implements I_AD_Language, I_Persistent return false; } - /** IsDecimalPoint AD_Reference_ID=319 */ - public static final int ISDECIMALPOINT_AD_Reference_ID=319; - /** Yes = Y */ - public static final String ISDECIMALPOINT_Yes = "Y"; - /** No = N */ - public static final String ISDECIMALPOINT_No = "N"; /** Set Decimal Point. @param IsDecimalPoint The number notation has a decimal point (no decimal comma) */ - public void setIsDecimalPoint (String IsDecimalPoint) + public void setIsDecimalPoint (boolean IsDecimalPoint) { - - set_Value (COLUMNNAME_IsDecimalPoint, IsDecimalPoint); + set_Value (COLUMNNAME_IsDecimalPoint, Boolean.valueOf(IsDecimalPoint)); } /** Get Decimal Point. @return The number notation has a decimal point (no decimal comma) */ - public String getIsDecimalPoint () + public boolean isDecimalPoint () { - return (String)get_Value(COLUMNNAME_IsDecimalPoint); + Object oo = get_Value(COLUMNNAME_IsDecimalPoint); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; } /** Set Login Locale. diff --git a/org.adempiere.base/src/org/compiere/model/X_A_Asset_Addition.java b/org.adempiere.base/src/org/compiere/model/X_A_Asset_Addition.java index 9f17a658b7..1d7ca0c6dc 100644 --- a/org.adempiere.base/src/org/compiere/model/X_A_Asset_Addition.java +++ b/org.adempiere.base/src/org/compiere/model/X_A_Asset_Addition.java @@ -33,7 +33,7 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers /** * */ - private static final long serialVersionUID = 20121031L; + private static final long serialVersionUID = 20130417L; /** Standard Constructor */ public X_A_Asset_Addition (Properties ctx, int A_Asset_Addition_ID, String trxName) @@ -518,6 +518,34 @@ public class X_A_Asset_Addition extends PO implements I_A_Asset_Addition, I_Pers return ii.intValue(); } + public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException + { + return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + public org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException { return (org.compiere.model.I_C_Invoice)MTable.get(getCtx(), org.compiere.model.I_C_Invoice.Table_Name) diff --git a/org.adempiere.base/src/org/compiere/model/X_A_Asset_Disposed.java b/org.adempiere.base/src/org/compiere/model/X_A_Asset_Disposed.java index 9e8eb35873..75cc18412a 100644 --- a/org.adempiere.base/src/org/compiere/model/X_A_Asset_Disposed.java +++ b/org.adempiere.base/src/org/compiere/model/X_A_Asset_Disposed.java @@ -33,7 +33,7 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers /** * */ - private static final long serialVersionUID = 20121031L; + private static final long serialVersionUID = 20130417L; /** Standard Constructor */ public X_A_Asset_Disposed (Properties ctx, int A_Asset_Disposed_ID, String trxName) @@ -61,7 +61,7 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers setExpense (Env.ZERO); // 0 setIsApproved (false); -// @#IsCanApproveOwnDoc@ +// N setPosted (false); // N setPostingType (null); @@ -78,7 +78,7 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers } /** AccessLevel - * @return 7 - System - Client - Org + * @return 3 - Client - Org */ protected int get_AccessLevel() { @@ -405,6 +405,34 @@ public class X_A_Asset_Disposed extends PO implements I_A_Asset_Disposed, I_Pers return bd; } + public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException + { + return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + public org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException { return (org.compiere.model.I_C_Invoice)MTable.get(getCtx(), org.compiere.model.I_C_Invoice.Table_Name) diff --git a/org.adempiere.base/src/org/compiere/model/X_A_Depreciation_Entry.java b/org.adempiere.base/src/org/compiere/model/X_A_Depreciation_Entry.java index 6e91359045..610ceee304 100644 --- a/org.adempiere.base/src/org/compiere/model/X_A_Depreciation_Entry.java +++ b/org.adempiere.base/src/org/compiere/model/X_A_Depreciation_Entry.java @@ -33,7 +33,7 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry /** * */ - private static final long serialVersionUID = 20121031L; + private static final long serialVersionUID = 20130417L; /** Standard Constructor */ public X_A_Depreciation_Entry (Properties ctx, int A_Depreciation_Entry_ID, String trxName) @@ -50,13 +50,12 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry setDateAcct (new Timestamp( System.currentTimeMillis() )); // @Date@ setDateDoc (new Timestamp( System.currentTimeMillis() )); -// @Date@ +// @#Date@ setDocAction (null); // 'CO' setDocStatus (null); // 'DR' setDocumentNo (null); - setGL_Category_ID (0); setIsApproved (false); // @#IsCanApproveOwnDoc@ setPosted (false); @@ -439,34 +438,6 @@ public class X_A_Depreciation_Entry extends PO implements I_A_Depreciation_Entry return (String)get_Value(COLUMNNAME_DocumentNo); } - public org.compiere.model.I_GL_Category getGL_Category() throws RuntimeException - { - return (org.compiere.model.I_GL_Category)MTable.get(getCtx(), org.compiere.model.I_GL_Category.Table_Name) - .getPO(getGL_Category_ID(), get_TrxName()); } - - /** Set GL Category. - @param GL_Category_ID - General Ledger Category - */ - public void setGL_Category_ID (int GL_Category_ID) - { - if (GL_Category_ID < 1) - set_Value (COLUMNNAME_GL_Category_ID, null); - else - set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); - } - - /** Get GL Category. - @return General Ledger Category - */ - public int getGL_Category_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - /** Set Approved. @param IsApproved Indicates if this document requires approval diff --git a/org.adempiere.base/src/org/compiere/model/X_M_CommodityShipment.java b/org.adempiere.base/src/org/compiere/model/X_M_CommodityShipment.java index a3549d2502..2e5cf3b54c 100644 --- a/org.adempiere.base/src/org/compiere/model/X_M_CommodityShipment.java +++ b/org.adempiere.base/src/org/compiere/model/X_M_CommodityShipment.java @@ -29,7 +29,7 @@ public class X_M_CommodityShipment extends PO implements I_M_CommodityShipment, /** * */ - private static final long serialVersionUID = 20121207L; + private static final long serialVersionUID = 20130419L; /** Standard Constructor */ public X_M_CommodityShipment (Properties ctx, int M_CommodityShipment_ID, String trxName) @@ -37,7 +37,7 @@ public class X_M_CommodityShipment extends PO implements I_M_CommodityShipment, super (ctx, M_CommodityShipment_ID, trxName); /** if (M_CommodityShipment_ID == 0) { - setCountryOfManufacture (0); + setCountryOfManufacture_ID (0); setHarmonizedCode (null); setM_CommodityShipment_ID (0); } */ @@ -72,17 +72,20 @@ public class X_M_CommodityShipment extends PO implements I_M_CommodityShipment, } /** Set Country Of Manufacture. - @param CountryOfManufacture Country Of Manufacture */ - public void setCountryOfManufacture (int CountryOfManufacture) + @param CountryOfManufacture_ID Country Of Manufacture */ + public void setCountryOfManufacture_ID (int CountryOfManufacture_ID) { - set_Value (COLUMNNAME_CountryOfManufacture, Integer.valueOf(CountryOfManufacture)); + if (CountryOfManufacture_ID < 1) + set_Value (COLUMNNAME_CountryOfManufacture_ID, null); + else + set_Value (COLUMNNAME_CountryOfManufacture_ID, Integer.valueOf(CountryOfManufacture_ID)); } /** Get Country Of Manufacture. @return Country Of Manufacture */ - public int getCountryOfManufacture () + public int getCountryOfManufacture_ID () { - Integer ii = (Integer)get_Value(COLUMNNAME_CountryOfManufacture); + Integer ii = (Integer)get_Value(COLUMNNAME_CountryOfManufacture_ID); if (ii == null) return 0; return ii.intValue(); @@ -133,6 +136,40 @@ public class X_M_CommodityShipment extends PO implements I_M_CommodityShipment, return (String)get_Value(COLUMNNAME_HarmonizedCode); } + /** Set Commodity Shipment. + @param M_CommodityShipment_ID Commodity Shipment */ + public void setM_CommodityShipment_ID (int M_CommodityShipment_ID) + { + if (M_CommodityShipment_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_CommodityShipment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CommodityShipment_ID, Integer.valueOf(M_CommodityShipment_ID)); + } + + /** Get Commodity Shipment. + @return Commodity Shipment */ + public int getM_CommodityShipment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CommodityShipment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set M_CommodityShipment_UU. + @param M_CommodityShipment_UU M_CommodityShipment_UU */ + public void setM_CommodityShipment_UU (String M_CommodityShipment_UU) + { + set_Value (COLUMNNAME_M_CommodityShipment_UU, M_CommodityShipment_UU); + } + + /** Get M_CommodityShipment_UU. + @return M_CommodityShipment_UU */ + public String getM_CommodityShipment_UU () + { + return (String)get_Value(COLUMNNAME_M_CommodityShipment_UU); + } + public org.compiere.model.I_M_Product getM_Product() throws RuntimeException { return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name) @@ -160,38 +197,4 @@ public class X_M_CommodityShipment extends PO implements I_M_CommodityShipment, return 0; return ii.intValue(); } - - /** Set M_CommodityShipment. - @param M_CommodityShipment_ID M_CommodityShipment */ - public void setM_CommodityShipment_ID (int M_CommodityShipment_ID) - { - if (M_CommodityShipment_ID < 1) - set_ValueNoCheck (COLUMNNAME_M_CommodityShipment_ID, null); - else - set_ValueNoCheck (COLUMNNAME_M_CommodityShipment_ID, Integer.valueOf(M_CommodityShipment_ID)); - } - - /** Get M_CommodityShipment. - @return M_CommodityShipment */ - public int getM_CommodityShipment_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_M_CommodityShipment_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - - /** Set M_CommodityShipment_UU. - @param M_CommodityShipment_UU M_CommodityShipment_UU */ - public void setM_CommodityShipment_UU (String M_CommodityShipment_UU) - { - set_Value (COLUMNNAME_M_CommodityShipment_UU, M_CommodityShipment_UU); - } - - /** Get M_CommodityShipment_UU. - @return M_CommodityShipment_UU */ - public String getM_CommodityShipment_UU () - { - return (String)get_Value(COLUMNNAME_M_CommodityShipment_UU); - } } \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_M_Package.java b/org.adempiere.base/src/org/compiere/model/X_M_Package.java index 4d08e8dfec..22c7301b7b 100644 --- a/org.adempiere.base/src/org/compiere/model/X_M_Package.java +++ b/org.adempiere.base/src/org/compiere/model/X_M_Package.java @@ -32,7 +32,7 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent /** * */ - private static final long serialVersionUID = 20121212L; + private static final long serialVersionUID = 20130419L; /** Standard Constructor */ public X_M_Package (Properties ctx, int M_Package_ID, String trxName) @@ -592,23 +592,26 @@ public class X_M_Package extends PO implements I_M_Package, I_Persistent return bd; } - public org.compiere.model.I_C_BPartner_Location getHoldAddr() throws RuntimeException + public org.compiere.model.I_C_BPartner_Location getHoldAddress() throws RuntimeException { return (org.compiere.model.I_C_BPartner_Location)MTable.get(getCtx(), org.compiere.model.I_C_BPartner_Location.Table_Name) - .getPO(getHoldAddress(), get_TrxName()); } + .getPO(getHoldAddress_ID(), get_TrxName()); } /** Set Hold Address. - @param HoldAddress Hold Address */ - public void setHoldAddress (int HoldAddress) + @param HoldAddress_ID Hold Address */ + public void setHoldAddress_ID (int HoldAddress_ID) { - set_Value (COLUMNNAME_HoldAddress, Integer.valueOf(HoldAddress)); + if (HoldAddress_ID < 1) + set_Value (COLUMNNAME_HoldAddress_ID, null); + else + set_Value (COLUMNNAME_HoldAddress_ID, Integer.valueOf(HoldAddress_ID)); } /** Get Hold Address. @return Hold Address */ - public int getHoldAddress () + public int getHoldAddress_ID () { - Integer ii = (Integer)get_Value(COLUMNNAME_HoldAddress); + Integer ii = (Integer)get_Value(COLUMNNAME_HoldAddress_ID); if (ii == null) return 0; return ii.intValue(); diff --git a/org.adempiere.base/src/org/compiere/model/X_M_ShippingTransaction.java b/org.adempiere.base/src/org/compiere/model/X_M_ShippingTransaction.java index 52d80fed81..b5c6a41216 100644 --- a/org.adempiere.base/src/org/compiere/model/X_M_ShippingTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/X_M_ShippingTransaction.java @@ -32,7 +32,7 @@ public class X_M_ShippingTransaction extends PO implements I_M_ShippingTransacti /** * */ - private static final long serialVersionUID = 20130318L; + private static final long serialVersionUID = 20130419L; /** Standard Constructor */ public X_M_ShippingTransaction (Properties ctx, int M_ShippingTransaction_ID, String trxName) @@ -211,25 +211,29 @@ public class X_M_ShippingTransaction extends PO implements I_M_ShippingTransacti return ii.intValue(); } - /** Set COD. - @param CashOnDelivery COD */ - public void setCashOnDelivery (boolean CashOnDelivery) + public org.compiere.model.I_C_BP_ShippingAcct getC_BP_ShippingAcct() throws RuntimeException + { + return (org.compiere.model.I_C_BP_ShippingAcct)MTable.get(getCtx(), org.compiere.model.I_C_BP_ShippingAcct.Table_Name) + .getPO(getC_BP_ShippingAcct_ID(), get_TrxName()); } + + /** Set Business Partner Shipping Account. + @param C_BP_ShippingAcct_ID Business Partner Shipping Account */ + public void setC_BP_ShippingAcct_ID (int C_BP_ShippingAcct_ID) { - set_Value (COLUMNNAME_CashOnDelivery, Boolean.valueOf(CashOnDelivery)); + if (C_BP_ShippingAcct_ID < 1) + set_Value (COLUMNNAME_C_BP_ShippingAcct_ID, null); + else + set_Value (COLUMNNAME_C_BP_ShippingAcct_ID, Integer.valueOf(C_BP_ShippingAcct_ID)); } - /** Get COD. - @return COD */ - public boolean isCashOnDelivery () + /** Get Business Partner Shipping Account. + @return Business Partner Shipping Account */ + public int getC_BP_ShippingAcct_ID () { - Object oo = get_Value(COLUMNNAME_CashOnDelivery); - if (oo != null) - { - if (oo instanceof Boolean) - return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); - } - return false; + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_ShippingAcct_ID); + if (ii == null) + return 0; + return ii.intValue(); } public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException @@ -288,31 +292,6 @@ public class X_M_ShippingTransaction extends PO implements I_M_ShippingTransacti return ii.intValue(); } - public org.compiere.model.I_C_BP_ShippingAcct getC_BP_ShippingAcct() throws RuntimeException - { - return (org.compiere.model.I_C_BP_ShippingAcct)MTable.get(getCtx(), org.compiere.model.I_C_BP_ShippingAcct.Table_Name) - .getPO(getC_BP_ShippingAcct_ID(), get_TrxName()); } - - /** Set Business Partner Shipping Account. - @param C_BP_ShippingAcct_ID Business Partner Shipping Account */ - public void setC_BP_ShippingAcct_ID (int C_BP_ShippingAcct_ID) - { - if (C_BP_ShippingAcct_ID < 1) - set_Value (COLUMNNAME_C_BP_ShippingAcct_ID, null); - else - set_Value (COLUMNNAME_C_BP_ShippingAcct_ID, Integer.valueOf(C_BP_ShippingAcct_ID)); - } - - /** Get Business Partner Shipping Account. - @return Business Partner Shipping Account */ - public int getC_BP_ShippingAcct_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_ShippingAcct_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException { return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_Name) @@ -369,23 +348,6 @@ public class X_M_ShippingTransaction extends PO implements I_M_ShippingTransacti return ii.intValue(); } - /** Set COD Amount. - @param CODAmount COD Amount */ - public void setCODAmount (BigDecimal CODAmount) - { - set_Value (COLUMNNAME_CODAmount, CODAmount); - } - - /** Get COD Amount. - @return COD Amount */ - public BigDecimal getCODAmount () - { - BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CODAmount); - if (bd == null) - return Env.ZERO; - return bd; - } - public org.compiere.model.I_C_Order getC_Order() throws RuntimeException { return (org.compiere.model.I_C_Order)MTable.get(getCtx(), org.compiere.model.I_C_Order.Table_Name) @@ -470,6 +432,44 @@ public class X_M_ShippingTransaction extends PO implements I_M_ShippingTransacti return ii.intValue(); } + /** Set COD. + @param CashOnDelivery COD */ + public void setCashOnDelivery (boolean CashOnDelivery) + { + set_Value (COLUMNNAME_CashOnDelivery, Boolean.valueOf(CashOnDelivery)); + } + + /** Get COD. + @return COD */ + public boolean isCashOnDelivery () + { + Object oo = get_Value(COLUMNNAME_CashOnDelivery); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set COD Amount. + @param CODAmount COD Amount */ + public void setCODAmount (BigDecimal CODAmount) + { + set_Value (COLUMNNAME_CODAmount, CODAmount); + } + + /** Get COD Amount. + @return COD Amount */ + public BigDecimal getCODAmount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CODAmount); + if (bd == null) + return Env.ZERO; + return bd; + } + /** Set Customs Value. @param CustomsValue Customs Value */ public void setCustomsValue (BigDecimal CustomsValue) @@ -784,23 +784,26 @@ public class X_M_ShippingTransaction extends PO implements I_M_ShippingTransacti return bd; } - public org.compiere.model.I_C_BPartner_Location getHoldAddr() throws RuntimeException + public org.compiere.model.I_C_BPartner_Location getHoldAddress() throws RuntimeException { return (org.compiere.model.I_C_BPartner_Location)MTable.get(getCtx(), org.compiere.model.I_C_BPartner_Location.Table_Name) - .getPO(getHoldAddress(), get_TrxName()); } + .getPO(getHoldAddress_ID(), get_TrxName()); } /** Set Hold Address. - @param HoldAddress Hold Address */ - public void setHoldAddress (int HoldAddress) + @param HoldAddress_ID Hold Address */ + public void setHoldAddress_ID (int HoldAddress_ID) { - set_Value (COLUMNNAME_HoldAddress, Integer.valueOf(HoldAddress)); + if (HoldAddress_ID < 1) + set_Value (COLUMNNAME_HoldAddress_ID, null); + else + set_Value (COLUMNNAME_HoldAddress_ID, Integer.valueOf(HoldAddress_ID)); } /** Get Hold Address. @return Hold Address */ - public int getHoldAddress () + public int getHoldAddress_ID () { - Integer ii = (Integer)get_Value(COLUMNNAME_HoldAddress); + Integer ii = (Integer)get_Value(COLUMNNAME_HoldAddress_ID); if (ii == null) return 0; return ii.intValue(); diff --git a/org.adempiere.base/src/org/compiere/print/DataEngine.java b/org.adempiere.base/src/org/compiere/print/DataEngine.java index dde8d15da2..c9e84fca85 100644 --- a/org.adempiere.base/src/org/compiere/print/DataEngine.java +++ b/org.adempiere.base/src/org/compiere/print/DataEngine.java @@ -739,12 +739,9 @@ public class DataEngine cc++; // m_synonym = String.valueOf(cc); - if (length == 1) - return; - m_synonym += String.valueOf(cc); - if (length == 2) - return; - m_synonym += String.valueOf(cc); + for (int i = 1; i < length; i++) { + m_synonym += String.valueOf(cc); + } } // synonymNext /** diff --git a/org.adempiere.base/src/org/compiere/util/Language.java b/org.adempiere.base/src/org/compiere/util/Language.java index e8887df195..c35c3b5ad3 100644 --- a/org.adempiere.base/src/org/compiere/util/Language.java +++ b/org.adempiere.base/src/org/compiere/util/Language.java @@ -154,9 +154,6 @@ public class Language implements Serializable } MLanguage dblang = MLanguage.get(Env.getCtx(), langInfo); if (dblang != null) { - Boolean decimalPoint = null; - if (dblang.getIsDecimalPoint() != null) - decimalPoint = "Y".equals(dblang.getIsDecimalPoint()); if (!( language.equals(dblang.getLanguageISO()) && country.equals(dblang.getCountryCode()) ) @@ -168,7 +165,7 @@ public class Language implements Serializable MPrintPaper pp = MPrintPaper.get(dblang.getAD_PrintPaper_ID()); mediaSize = pp.getMediaSize(); } - ll = new Language(dblang.getPrintName(), langInfo, locale, decimalPoint, dblang.getDatePattern(), mediaSize); + ll = new Language(dblang.getPrintName(), langInfo, locale, null, dblang.getDatePattern(), mediaSize); ll.m_fromDB = true; if (dblang.isBaseLanguage()) { idxReplace = 0; diff --git a/org.adempiere.base/src/org/compiere/util/WebDoc.java b/org.adempiere.base/src/org/compiere/util/WebDoc.java index e033ce3366..f40d050f43 100644 --- a/org.adempiere.base/src/org/compiere/util/WebDoc.java +++ b/org.adempiere.base/src/org/compiere/util/WebDoc.java @@ -186,7 +186,7 @@ public class WebDoc m_topRight = new td().setAlign("right"); if (javaClient) { - m_topRight.addElement(new img("res:org/compiere/images/AD10030.png") + m_topRight.addElement(new img("res:org/compiere/images/iD10030.png") .setAlign(AlignType.RIGHT).setAlt("iDempiere")); } else { m_topRight.addElement(new img("images/header-logo.png") diff --git a/org.adempiere.base/src/org/idempiere/broadcast/BroadcastMsgUtil.java b/org.adempiere.base/src/org/idempiere/broadcast/BroadcastMsgUtil.java index 3a08aed62d..7736cce7f0 100644 --- a/org.adempiere.base/src/org/idempiere/broadcast/BroadcastMsgUtil.java +++ b/org.adempiere.base/src/org/idempiere/broadcast/BroadcastMsgUtil.java @@ -150,9 +150,10 @@ public class BroadcastMsgUtil String sql = "SELECT bm.AD_BroadcastMessage_ID " + " FROM AD_Note n INNER JOIN AD_BroadcastMessage bm ON (bm.AD_BroadcastMessage_ID=n.AD_BroadcastMessage_ID) " + " WHERE n.AD_User_ID=?" + + " AND n.AD_Client_ID=?" + " AND (bm.BroadcastType='IL' OR bm.BroadcastType='L') " + " AND bm.isPublished='Y' AND n.processed = 'N'" - + " AND ((bm.BroadcastFrequency='U' AND bm.Expired='N' AND bm.expiration > SYSDATE) OR bm.BroadcastFrequency='J')"; + + " AND ((bm.BroadcastFrequency='U' AND bm.Expired='N' AND (bm.expiration IS NULL OR bm.expiration > SYSDATE)) OR bm.BroadcastFrequency='J')"; ArrayList mbMessages = new ArrayList(); PreparedStatement pstmt = null; @@ -160,6 +161,7 @@ public class BroadcastMsgUtil try { pstmt = DB.prepareStatement(sql, null); pstmt.setInt(1, AD_User_ID); + pstmt.setInt(2, Env.getAD_Client_ID(Env.getCtx())); rs = pstmt.executeQuery(); while (rs.next()) { mbMessages.add(MBroadcastMessage.get(Env.getCtx(), rs.getInt(1))); diff --git a/org.adempiere.base/src/org/idempiere/fa/model/CalloutAsset.java b/org.adempiere.base/src/org/idempiere/fa/model/CalloutAsset.java index 8348884728..8d8819d027 100644 --- a/org.adempiere.base/src/org/idempiere/fa/model/CalloutAsset.java +++ b/org.adempiere.base/src/org/idempiere/fa/model/CalloutAsset.java @@ -51,9 +51,10 @@ public class CalloutAsset extends CalloutEngine { public String asset(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) { - if (MAsset.COLUMNNAME_A_Asset_ID.equals(mField.getColumnName())) + if (value != null && MAsset.COLUMNNAME_A_Asset_ID.equals(mField.getColumnName())) { MAsset asset = new MAsset(ctx, (Integer) value, null); + if (asset != null) mTab.setValue(MAsset.COLUMNNAME_M_Product_ID, asset.getM_Product_ID()); } diff --git a/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java b/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java index 5bb7979781..c2d1a0e88f 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java @@ -30,7 +30,6 @@ public class ImportFixedAsset extends SvrProcess private int p_AD_Org_ID = 0; /** Account Date */ - @SuppressWarnings("unused") private Timestamp p_DateAcct = null; /** Validate Only - only validate import data */ @@ -359,8 +358,8 @@ public class ImportFixedAsset extends SvrProcess } //if(p_A_Asset_Group_ID>0) // assetAdd.getA_Asset().setA_Asset_Group_ID(p_A_Asset_Group_ID); - //if(p_DateAcct!=null) - // assetAdd.setDateAcct(p_DateAcct); + if(p_DateAcct!=null) + assetAdd.setDateAcct(p_DateAcct); assetAdd.saveEx(); //Process Asset Addition Based on Document Action diff --git a/org.adempiere.server-feature/utils.unix/RUN_DBRestoredp.sh b/org.adempiere.server-feature/utils.unix/RUN_DBRestoredp.sh index f08d7831d6..4dbe8a3ab3 100644 --- a/org.adempiere.server-feature/utils.unix/RUN_DBRestoredp.sh +++ b/org.adempiere.server-feature/utils.unix/RUN_DBRestoredp.sh @@ -16,4 +16,4 @@ read in # Parameter: # globalqss - cruiz - 2007-10-09 - added fourth parameter for postgres(ignored in oracle) -$ADEMPIERE_DB_PATH/DBRestore.sh system/$ADEMPIERE_DB_SYSTEM $ADEMPIERE_DB_USER $ADEMPIERE_DB_PASSWORD $ADEMPIERE_DB_SYSTEM +$ADEMPIERE_DB_PATH/DBRestoredp.sh system/$ADEMPIERE_DB_SYSTEM $ADEMPIERE_DB_USER $ADEMPIERE_DB_PASSWORD $ADEMPIERE_DB_SYSTEM diff --git a/org.adempiere.server/AdemPiere150x50.gif b/org.adempiere.server/AdemPiere150x50.gif deleted file mode 100644 index 6244fce225..0000000000 Binary files a/org.adempiere.server/AdemPiere150x50.gif and /dev/null differ diff --git a/org.adempiere.server/Adempiere120x60.gif b/org.adempiere.server/Adempiere120x60.gif deleted file mode 100644 index 07ca4d0ff0..0000000000 Binary files a/org.adempiere.server/Adempiere120x60.gif and /dev/null differ diff --git a/org.adempiere.server/Background.gif b/org.adempiere.server/Background.gif deleted file mode 100644 index 11988728ed..0000000000 Binary files a/org.adempiere.server/Background.gif and /dev/null differ diff --git a/org.adempiere.server/C32.gif b/org.adempiere.server/C32.gif deleted file mode 100644 index c83d267cbd..0000000000 Binary files a/org.adempiere.server/C32.gif and /dev/null differ diff --git a/org.adempiere.server/Logo.gif b/org.adempiere.server/Logo.gif deleted file mode 100644 index f3e3c93682..0000000000 Binary files a/org.adempiere.server/Logo.gif and /dev/null differ diff --git a/org.adempiere.server/WEB-INF/web.xml b/org.adempiere.server/WEB-INF/web.xml index 1442c4cb53..497dfd0184 100644 --- a/org.adempiere.server/WEB-INF/web.xml +++ b/org.adempiere.server/WEB-INF/web.xml @@ -4,20 +4,20 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> - ADempiere Root + iDempiere Root ServerRoot 1 - ADempiere Monitor Filter - AdempiereMonitorFilter + iDempiere Monitor Filter + idempiereMonitorFilter org.compiere.web.AdempiereMonitorFilter - AdempiereMonitorFilter - /adempiereMonitor/* + idempiereMonitorFilter + /idempiereMonitor/* JNLP Download Servlet @@ -30,15 +30,15 @@ 1 - ADempiere Server Status Info + iDempiere Server Status Info Server Status StatusInfo org.compiere.web.StatusInfo - ADempiere Server Monitor - ADempiere Monitor - AdempiereMonitor + iDempiere Server Monitor + iDempiere Monitor + idempiereMonitor org.compiere.web.AdempiereMonitor 1 @@ -61,8 +61,8 @@ /statusInfo - AdempiereMonitor - /adempiereMonitor/* + idempiereMonitor + /idempiereMonitor/* RestletServlet @@ -86,7 +86,7 @@ admin - /adempiereMonitor/* + /idempiereMonitor/* service @@ -97,6 +97,6 @@ - adempiere.html + idempiere.html diff --git a/org.adempiere.server/adempiere.jnlp b/org.adempiere.server/adempiere.jnlp index 3d00ab2ba2..414310cb0c 100644 --- a/org.adempiere.server/adempiere.jnlp +++ b/org.adempiere.server/adempiere.jnlp @@ -11,7 +11,7 @@ Adempiere ERP+CRM ($$context) Adempiere ERP+CRM Adempiere ERP+CRM ($$context) - + diff --git a/org.adempiere.server/adempiere_logo.gif b/org.adempiere.server/adempiere_logo.gif deleted file mode 100644 index 2f61d547e1..0000000000 Binary files a/org.adempiere.server/adempiere_logo.gif and /dev/null differ diff --git a/org.adempiere.server/adempiere_logo.png b/org.adempiere.server/adempiere_logo.png deleted file mode 100644 index cd78410b72..0000000000 Binary files a/org.adempiere.server/adempiere_logo.png and /dev/null differ diff --git a/org.adempiere.server/adempiere_logo2.gif b/org.adempiere.server/adempiere_logo2.gif deleted file mode 100644 index 2f61d547e1..0000000000 Binary files a/org.adempiere.server/adempiere_logo2.gif and /dev/null differ diff --git a/org.adempiere.server/adempiere_logo3.png b/org.adempiere.server/adempiere_logo3.png deleted file mode 100644 index 679097b795..0000000000 Binary files a/org.adempiere.server/adempiere_logo3.png and /dev/null differ diff --git a/org.adempiere.server/build.properties b/org.adempiere.server/build.properties index 4dc9108aee..2510288944 100644 --- a/org.adempiere.server/build.properties +++ b/org.adempiere.server/build.properties @@ -3,17 +3,12 @@ bin.includes = META-INF/,\ WEB-INF/lib/jnlp-servlet.jar,\ .,\ WEB-INF/web.xml,\ - AdemPiere150x50.gif,\ - Adempiere120x60.gif,\ - Background.gif,\ - C32.gif,\ - Logo.gif,\ - adempiere.html,\ + iDempiere120x60.gif,\ + iD32.gif,\ + idempiere.html,\ adempiere.jnlp,\ - adempiere_logo.gif,\ - adempiere_logo.png,\ - adempiere_logo2.gif,\ - adempiere_logo3.png,\ + idempiere_logo.png,\ + idempiere_logo2.gif,\ applet.html,\ favicon.ico,\ footer_bar.gif,\ @@ -24,7 +19,6 @@ bin.includes = META-INF/,\ robots.txt,\ standard.css,\ webstart.jpg,\ - webstart_s.jpg,\ zip.gif,\ plugin.xml bin.excludes = src/**,\ diff --git a/org.adempiere.server/favicon.ico b/org.adempiere.server/favicon.ico index 14c3ee6ebd..047762dac5 100644 Binary files a/org.adempiere.server/favicon.ico and b/org.adempiere.server/favicon.ico differ diff --git a/org.adempiere.server/header_banner.png b/org.adempiere.server/header_banner.png index 21c11b7b11..abc8907007 100644 Binary files a/org.adempiere.server/header_banner.png and b/org.adempiere.server/header_banner.png differ diff --git a/org.adempiere.server/iD32.gif b/org.adempiere.server/iD32.gif new file mode 100644 index 0000000000..65c7a571a3 Binary files /dev/null and b/org.adempiere.server/iD32.gif differ diff --git a/org.adempiere.server/iDempiere120x60.gif b/org.adempiere.server/iDempiere120x60.gif new file mode 100644 index 0000000000..b91f1011a3 Binary files /dev/null and b/org.adempiere.server/iDempiere120x60.gif differ diff --git a/org.adempiere.server/adempiere.html b/org.adempiere.server/idempiere.html similarity index 94% rename from org.adempiere.server/adempiere.html rename to org.adempiere.server/idempiere.html index c1fd2d86ad..023b1db0f6 100644 --- a/org.adempiere.server/adempiere.html +++ b/org.adempiere.server/idempiere.html @@ -63,7 +63,7 @@ End If //--> - + @@ -78,7 +78,7 @@ End If - + @@ -188,7 +188,7 @@ Start iDempiere via RUN_Adempiere @@ -202,7 +202,7 @@ Start iDempiere via RUN_Adempiere @@ -223,7 +223,7 @@ Start iDempiere via RUN_Adempiere - + diff --git a/org.adempiere.server/idempiere_logo.png b/org.adempiere.server/idempiere_logo.png new file mode 100644 index 0000000000..451e2c2150 Binary files /dev/null and b/org.adempiere.server/idempiere_logo.png differ diff --git a/org.adempiere.server/idempiere_logo2.gif b/org.adempiere.server/idempiere_logo2.gif new file mode 100644 index 0000000000..a7317de91e Binary files /dev/null and b/org.adempiere.server/idempiere_logo2.gif differ diff --git a/org.adempiere.server/index.html b/org.adempiere.server/index.html index a8b1b08a4c..5299d3fa0b 100644 --- a/org.adempiere.server/index.html +++ b/org.adempiere.server/index.html @@ -6,8 +6,8 @@ -

Click here if not forwarded automatically

+

Click here if not forwarded automatically

diff --git a/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitor.java b/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitor.java index 19147dd331..7bae7bebf0 100644 --- a/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitor.java +++ b/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitor.java @@ -189,7 +189,7 @@ public class AdempiereMonitor extends HttpServlet return false; } - WebDoc doc = WebDoc.create ("Adempiere Server Monitor Log"); + WebDoc doc = WebDoc.create ("iDempiere Server Monitor Log"); // Body body b = doc.getBody(); // @@ -555,7 +555,7 @@ public class AdempiereMonitor extends HttpServlet private void createSummaryPage (HttpServletRequest request, HttpServletResponse response,boolean refresh) throws ServletException, IOException { - WebDoc doc = WebDoc.create ("Adempiere Server Monitor"); + WebDoc doc = WebDoc.create ("iDempiere Server Monitor"); // log.info("ServletConfig=" + getServletConfig()); AdempiereServerGroup.get().dump(); @@ -1094,7 +1094,7 @@ public class AdempiereMonitor extends HttpServlet */ public String getServletInfo () { - return "Adempiere Server Monitor"; + return "iDempiere Server Monitor"; } // getServletName private static final String s_dirAccessFileName = "dirAccess.txt"; diff --git a/org.adempiere.server/webstart_s.jpg b/org.adempiere.server/webstart_s.jpg deleted file mode 100644 index 7dc44d8c2e..0000000000 Binary files a/org.adempiere.server/webstart_s.jpg and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/adempiere/ui/swing/factory/DefaultInfoFactory.java b/org.adempiere.ui.swing/src/org/adempiere/ui/swing/factory/DefaultInfoFactory.java index 6c1f276a20..31b30f5d96 100644 --- a/org.adempiere.ui.swing/src/org/adempiere/ui/swing/factory/DefaultInfoFactory.java +++ b/org.adempiere.ui.swing/src/org/adempiere/ui/swing/factory/DefaultInfoFactory.java @@ -120,10 +120,15 @@ public class DefaultInfoFactory implements IInfoFactory { else if (tableName.equals("S_ResourceAssigment")) info = new InfoAssignment (frame, modal, WindowNo, value, multiSelection, whereClause, lookup); - else + else { info = new InfoGeneral (frame, modal, WindowNo, value, - tableName, keyColumn, - multiSelection, whereClause, lookup); + tableName, keyColumn, + multiSelection, whereClause, lookup); + if (!info.loadedOK()) { + info.dispose(false); + info = null; + } + } // return info; } diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AGlassPane.java b/org.adempiere.ui.swing/src/org/compiere/apps/AGlassPane.java index 85bc294087..63df3b5356 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/AGlassPane.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/AGlassPane.java @@ -60,7 +60,7 @@ public class AGlassPane extends JPanel implements MouseListener, ActionListener } // AGlassPane /** The Image */ - public static Image s_image = Env.getImage("C10030.gif"); + public static Image s_image = Env.getImage("iD10030.png"); /** The Message Font */ public static Font s_font = new Font("Dialog", 3, 14); /** The Message Color */ diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java b/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java index 6a6809878f..28c390c6b0 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java @@ -145,7 +145,7 @@ public class Waiting extends CDialog infoLabel.setFont(new java.awt.Font("Dialog", 3, 14)); infoLabel.setHorizontalAlignment(SwingConstants.CENTER); infoLabel.setHorizontalTextPosition(SwingConstants.RIGHT); - infoLabel.setIcon(Env.getImageIcon("C10030.gif")); + infoLabel.setIcon(Env.getImageIcon("iD10030.png")); infoLabel.setIconTextGap(10); mainPanel.add(infoLabel, BorderLayout.NORTH); mainPanel.add(progressBar, BorderLayout.CENTER); diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoGeneral.java b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoGeneral.java index 3f0f7d8b41..45a5462226 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoGeneral.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoGeneral.java @@ -100,6 +100,8 @@ public class InfoGeneral extends Info // statInit(); p_loadedOK = initInfo (); + if (!p_loadedOK) + return; // int no = p_table.getRowCount(); setStatusLine(Integer.toString(no) + " " @@ -233,14 +235,14 @@ public class InfoGeneral extends Info String sql = "SELECT c.ColumnName, t.AD_Table_ID, t.TableName, c.ColumnSql " + "FROM AD_Table t" + " INNER JOIN AD_Column c ON (t.AD_Table_ID=c.AD_Table_ID)" - + "WHERE c.AD_Reference_ID=10" + + "WHERE c.AD_Reference_ID IN (10,14)" + " AND t.TableName=?" // #1 // Displayed in Window + " AND EXISTS (SELECT * FROM AD_Field f " + "WHERE f.AD_Column_ID=c.AD_Column_ID" + " AND f.IsDisplayed='Y' AND f.IsEncrypted='N' AND f.ObscureType IS NULL) " // - + "ORDER BY c.IsIdentifier DESC, c.SeqNo"; + + "ORDER BY c.IsIdentifier DESC, c.AD_Reference_ID, c.SeqNo"; int AD_Table_ID = 0; String tableName = null; PreparedStatement pstmt = null; @@ -278,6 +280,7 @@ public class InfoGeneral extends Info // Miminum check if (m_queryColumns.size() == 0) { + ADialog.error(p_WindowNo, this, "Error", "No query columns found"); log.log(Level.SEVERE, "No query columns found"); return false; } diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/VCreateFromPackageShipmentUI.java b/org.adempiere.ui.swing/src/org/compiere/grid/VCreateFromPackageShipmentUI.java index e36356b4cc..44ede962c2 100644 --- a/org.adempiere.ui.swing/src/org/compiere/grid/VCreateFromPackageShipmentUI.java +++ b/org.adempiere.ui.swing/src/org/compiere/grid/VCreateFromPackageShipmentUI.java @@ -72,7 +72,7 @@ public class VCreateFromPackageShipmentUI extends CreateFromPackageShipment dialog.setTitle(getTitle()); - int M_PackageMPS_ID = (Integer) getGridTab().getValue(MPackageMPS.COLUMNNAME_M_Package_ID); + int M_PackageMPS_ID = (Integer) getGridTab().getValue(MPackageMPS.COLUMNNAME_M_PackageMPS_ID); MPackageMPS packageMPS = new MPackageMPS(Env.getCtx(), M_PackageMPS_ID, null); MPackage mPackage = new MPackage(Env.getCtx(), packageMPS.getM_Package_ID(), null); loadTableOIS(getShipmentData(mPackage.getM_InOut_ID())); diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellRenderer.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellRenderer.java index 66a9676ac0..74865147d4 100644 --- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellRenderer.java +++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellRenderer.java @@ -21,6 +21,7 @@ import java.awt.Component; import java.awt.Insets; import java.text.DecimalFormat; import java.text.SimpleDateFormat; +import java.util.Date; import java.util.logging.Level; import javax.swing.JCheckBox; @@ -204,10 +205,16 @@ public final class VCellRenderer extends DefaultTableCellRenderer ; // Number else if (DisplayType.isNumeric(m_displayType)) - retValue = m_numberFormat.format(value); + if (value instanceof Number) + retValue = m_numberFormat.format(value); + else + retValue = value.toString(); // Date else if (DisplayType.isDate(m_displayType)) - retValue = m_dateFormat.format(value); + if (value instanceof Date) + retValue = m_dateFormat.format(value); + else + retValue = value.toString(); // Row ID else if (m_displayType == DisplayType.RowID) retValue = ""; diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AD10030.bak.gif b/org.adempiere.ui.swing/src/org/compiere/images/AD10030.bak.gif deleted file mode 100755 index 5bc543107b..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AD10030.bak.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AD10030.gif b/org.adempiere.ui.swing/src/org/compiere/images/AD10030.gif deleted file mode 100755 index 318890f722..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AD10030.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AD10030.png b/org.adempiere.ui.swing/src/org/compiere/images/AD10030.png deleted file mode 100755 index 318890f722..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AD10030.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AD10030HR.png b/org.adempiere.ui.swing/src/org/compiere/images/AD10030HR.png deleted file mode 100755 index 80205102be..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AD10030HR.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AD16.gif b/org.adempiere.ui.swing/src/org/compiere/images/AD16.gif deleted file mode 100755 index b1471c38cf..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AD16.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AD32.gif b/org.adempiere.ui.swing/src/org/compiere/images/AD32.gif deleted file mode 100755 index c83d267cbd..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AD32.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ADempiereHR_.png b/org.adempiere.ui.swing/src/org/compiere/images/ADempiereHR_.png deleted file mode 100644 index 79958a4e6c..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ADempiereHR_.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ADempiere_.png b/org.adempiere.ui.swing/src/org/compiere/images/ADempiere_.png deleted file mode 100644 index 79958a4e6c..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ADempiere_.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiere150x50.gif b/org.adempiere.ui.swing/src/org/compiere/images/AdemPiere150x50.gif deleted file mode 100644 index 6244fce225..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiere150x50.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.gif b/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.gif deleted file mode 100644 index 60ee14b61e..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.jpg b/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.jpg deleted file mode 100644 index b0c979b7ce..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.jpg and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.png b/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.png deleted file mode 100644 index 60ee14b61e..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereCom.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereComHR.png b/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereComHR.png deleted file mode 100644 index d5d3c23e72..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereComHR.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereComx.png b/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereComx.png deleted file mode 100644 index 60ee14b61e..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdemPiereComx.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.gif b/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.gif deleted file mode 100644 index 61c2440736..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.jpg b/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.jpg deleted file mode 100644 index 4240adf6ef..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.jpg and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.png b/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.png deleted file mode 100644 index 61c2440736..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere120x60.gif b/org.adempiere.ui.swing/src/org/compiere/images/Adempiere120x60.gif deleted file mode 100644 index 07ca4d0ff0..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Adempiere120x60.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/AdempiereHR.png b/org.adempiere.ui.swing/src/org/compiere/images/AdempiereHR.png deleted file mode 100644 index 99cb6fea84..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/AdempiereHR.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Adempierex.png b/org.adempiere.ui.swing/src/org/compiere/images/Adempierex.png deleted file mode 100644 index 61c2440736..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Adempierex.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C10030.gif b/org.adempiere.ui.swing/src/org/compiere/images/C10030.gif deleted file mode 100644 index 318890f722..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C10030.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C10030.jpg b/org.adempiere.ui.swing/src/org/compiere/images/C10030.jpg deleted file mode 100644 index 76fb7b5bcd..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C10030.jpg and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C10030.png b/org.adempiere.ui.swing/src/org/compiere/images/C10030.png deleted file mode 100644 index 318890f722..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C10030.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C10030HR.png b/org.adempiere.ui.swing/src/org/compiere/images/C10030HR.png index 80205102be..e5cd1f7b4f 100644 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C10030HR.png and b/org.adempiere.ui.swing/src/org/compiere/images/C10030HR.png differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C10030x.png b/org.adempiere.ui.swing/src/org/compiere/images/C10030x.png deleted file mode 100644 index 318890f722..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C10030x.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C10030xHR.png b/org.adempiere.ui.swing/src/org/compiere/images/C10030xHR.png deleted file mode 100755 index 80205102be..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C10030xHR.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C16.gif b/org.adempiere.ui.swing/src/org/compiere/images/C16.gif deleted file mode 100644 index 27d903c3e2..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C16.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/C32.gif b/org.adempiere.ui.swing/src/org/compiere/images/C32.gif deleted file mode 100644 index c83d267cbd..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/C32.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.gif b/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.gif deleted file mode 100755 index 60ee14b61e..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.jpg b/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.jpg deleted file mode 100755 index b0c979b7ce..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.jpg and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.png b/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.png deleted file mode 100755 index 60ee14b61e..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereCom.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereComHR.png b/org.adempiere.ui.swing/src/org/compiere/images/ComPiereComHR.png deleted file mode 100755 index d5d3c23e72..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereComHR.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereComx.png b/org.adempiere.ui.swing/src/org/compiere/images/ComPiereComx.png deleted file mode 100755 index 60ee14b61e..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/ComPiereComx.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Compiere.gif b/org.adempiere.ui.swing/src/org/compiere/images/Compiere.gif deleted file mode 100755 index 61c2440736..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Compiere.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Compiere.jpg b/org.adempiere.ui.swing/src/org/compiere/images/Compiere.jpg deleted file mode 100755 index 4240adf6ef..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Compiere.jpg and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Compiere.png b/org.adempiere.ui.swing/src/org/compiere/images/Compiere.png deleted file mode 100755 index 61c2440736..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Compiere.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/CompiereHR.png b/org.adempiere.ui.swing/src/org/compiere/images/CompiereHR.png deleted file mode 100755 index 99cb6fea84..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/CompiereHR.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Compierex.png b/org.adempiere.ui.swing/src/org/compiere/images/Compierex.png deleted file mode 100755 index 61c2440736..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Compierex.png and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.bak.gif b/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.bak.gif deleted file mode 100755 index 934d093c58..0000000000 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.bak.gif and /dev/null differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.gif b/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.gif index edce8a8dd1..036dd8637b 100644 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.gif and b/org.adempiere.ui.swing/src/org/compiere/images/Java_anim.gif differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/Logo.gif b/org.adempiere.ui.swing/src/org/compiere/images/Logo.gif index 761db55b58..7e98bb0696 100644 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/Logo.gif and b/org.adempiere.ui.swing/src/org/compiere/images/Logo.gif differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/iD10030.png b/org.adempiere.ui.swing/src/org/compiere/images/iD10030.png new file mode 100644 index 0000000000..e5cd1f7b4f Binary files /dev/null and b/org.adempiere.ui.swing/src/org/compiere/images/iD10030.png differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/iD16.gif b/org.adempiere.ui.swing/src/org/compiere/images/iD16.gif new file mode 100644 index 0000000000..e626d5704a Binary files /dev/null and b/org.adempiere.ui.swing/src/org/compiere/images/iD16.gif differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/iD32.gif b/org.adempiere.ui.swing/src/org/compiere/images/iD32.gif new file mode 100644 index 0000000000..65c7a571a3 Binary files /dev/null and b/org.adempiere.ui.swing/src/org/compiere/images/iD32.gif differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/iDempiere.png b/org.adempiere.ui.swing/src/org/compiere/images/iDempiere.png new file mode 100644 index 0000000000..38cb4be63e Binary files /dev/null and b/org.adempiere.ui.swing/src/org/compiere/images/iDempiere.png differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/iDempiereHR.png b/org.adempiere.ui.swing/src/org/compiere/images/iDempiereHR.png new file mode 100644 index 0000000000..76071a46dd Binary files /dev/null and b/org.adempiere.ui.swing/src/org/compiere/images/iDempiereHR.png differ diff --git a/org.adempiere.ui.swing/src/org/compiere/images/logo_ad.png b/org.adempiere.ui.swing/src/org/compiere/images/logo_ad.png index a79ccb61ef..f7574b2071 100644 Binary files a/org.adempiere.ui.swing/src/org/compiere/images/logo_ad.png and b/org.adempiere.ui.swing/src/org/compiere/images/logo_ad.png differ diff --git a/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereColor.java b/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereColor.java index f778cc515f..2285f07734 100644 --- a/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereColor.java +++ b/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereColor.java @@ -640,7 +640,7 @@ public class CompiereColor implements Serializable if (!isTexture()) return null; if (m_textureURL == null) - m_textureURL = CompiereColor.class.getResource("Adempiere00x100.gif"); + m_textureURL = CompiereColor.class.getResource("iDempiere00x100.gif"); return m_textureURL; } // getTextureURL diff --git a/org.adempiere.ui.swing/src/org/compiere/util/Splash.java b/org.adempiere.ui.swing/src/org/compiere/util/Splash.java index 9b750adc6a..022a6a0356 100644 --- a/org.adempiere.ui.swing/src/org/compiere/util/Splash.java +++ b/org.adempiere.ui.swing/src/org/compiere/util/Splash.java @@ -93,7 +93,7 @@ public class Splash extends Frame */ public Splash (String text) { - super("Adempiere"); + super("iDempiere"); System.out.println(text); message.setText(text); try diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromPackageShipmentUI.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromPackageShipmentUI.java index 154f252930..3fd6b5b7a6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromPackageShipmentUI.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromPackageShipmentUI.java @@ -66,7 +66,7 @@ public class WCreateFromPackageShipmentUI extends CreateFromPackageShipment window.setTitle(getTitle()); - int M_PackageMPS_ID = (Integer) getGridTab().getValue(MPackageMPS.COLUMNNAME_M_Package_ID); + int M_PackageMPS_ID = (Integer) getGridTab().getValue(MPackageMPS.COLUMNNAME_M_PackageMPS_ID); MPackageMPS packageMPS = new MPackageMPS(Env.getCtx(), M_PackageMPS_ID, null); MPackage mPackage = new MPackage(Env.getCtx(), packageMPS.getM_Package_ID(), null); loadTableOIS(getShipmentData(mPackage.getM_InOut_ID())); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/CalendarWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/CalendarWindow.java index 7ab630a94f..9d1f496238 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/CalendarWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/CalendarWindow.java @@ -25,12 +25,14 @@ import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; +import java.util.Properties; import java.util.TimeZone; import org.adempiere.webui.component.Window; import org.adempiere.webui.session.SessionManager; import org.compiere.model.X_R_RequestType; import org.compiere.util.Env; +import org.compiere.util.Msg; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.encoders.EncoderUtil; @@ -93,8 +95,8 @@ public class CalendarWindow extends Window implements EventListener { super(); this.scm = scm; - - setTitle("Calendar"); + Properties ctx = Env.getCtx(); + setTitle(Msg.getMsg(ctx,"Calendar")); setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED); Component component = Executions.createComponents("calendar.zul", this, null); @@ -116,7 +118,7 @@ public class CalendarWindow extends Window implements EventListener { lbxRequestTypes = (Listbox) component.getFellow("lbxRequestTypes"); lbxRequestTypes.addEventListener(Events.ON_SELECT, this); - lbxRequestTypes.appendItem("(Show All)", "0"); + lbxRequestTypes.appendItem(Msg.getMsg(ctx,"ShowAll"), "0"); ArrayList types = DPCalendar.getRequestTypes(Env.getCtx()); for(X_R_RequestType type : types) lbxRequestTypes.appendItem(type.getName(), type.getR_RequestType_ID() + ""); @@ -147,6 +149,11 @@ public class CalendarWindow extends Window implements EventListener { lbxFDOW.addEventListener(Events.ON_SELECT, this); lbxFDOW.addEventListener(Events.ON_CREATE, this); + String[] days = {"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"}; + for (String day : days) { + lbxFDOW.appendItem(Msg.getMsg(Env.getCtx(),day), day); + } + divTabDay = component.getFellow("divTabDay"); divTabDay.addEventListener("onUpdateView", this); @@ -204,7 +211,7 @@ public class CalendarWindow extends Window implements EventListener { } else if (type.equals("onUpdateView")) { String text = String.valueOf(e.getData()); - int days = "Day".equals(text) ? 1: "5 Days".equals(text) ? 5: "Week".equals(text) ? 7: 0; + int days = Msg.getMsg(Env.getCtx(),"Day").equals(text) ? 1: Msg.getMsg(Env.getCtx(),"5Days").equals(text) ? 5: Msg.getMsg(Env.getCtx(),"Week").equals(text) ? 7: 0; divTabClicked(days); } else if (type.equals(Events.ON_SELECT)) { @@ -224,7 +231,7 @@ public class CalendarWindow extends Window implements EventListener { syncModel(); } else if (e.getTarget() == lbxFDOW) { - calendars.setFirstDayOfWeek(lbxFDOW.getSelectedItem().getLabel()); + calendars.setFirstDayOfWeek(lbxFDOW.getSelectedItem().getValue().toString()); syncModel(); } } @@ -312,7 +319,7 @@ public class CalendarWindow extends Window implements EventListener { pieDataset.setValue(name == null ? "" : name, new Double(size > 0 ? value.doubleValue()/size*100 : 0)); } - JFreeChart chart = ChartFactory.createPieChart3D("Events Analysis", pieDataset, true, true, true); + JFreeChart chart = ChartFactory.createPieChart3D(Msg.getMsg(Env.getCtx(),"EventsAnalysis"), pieDataset, true, true, true); PiePlot3D plot = (PiePlot3D) chart.getPlot(); plot.setForegroundAlpha(0.5f); BufferedImage bi = chart.createBufferedImage(600, 250); @@ -341,7 +348,7 @@ public class CalendarWindow extends Window implements EventListener { for (int i = cnt - 1; i >=0; i--) lbxRequestTypes.removeItemAt(i); - lbxRequestTypes.appendItem("(Show All)", "0"); + lbxRequestTypes.appendItem(Msg.getMsg(Env.getCtx(),"ShowAll"), "0"); ArrayList types = DPCalendar.getRequestTypes(Env.getCtx()); for(X_R_RequestType requestType : types) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WEditorPopupMenu.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WEditorPopupMenu.java index 740c5bbf30..9355fc1e66 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WEditorPopupMenu.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WEditorPopupMenu.java @@ -122,6 +122,8 @@ public class WEditorPopupMenu extends Menupopup implements EventListener this.newEnabled = false; this.updateEnabled = false; } else { + int posPoint = lookup.getColumnName().indexOf("."); + String tableName = lookup.getColumnName().substring(0, posPoint); int cnt = DB.getSQLValueEx(null, "SELECT COUNT(*) " + "FROM AD_Field f " @@ -130,8 +132,10 @@ public class WEditorPopupMenu extends Menupopup implements EventListener + "WHERE t.AD_Window_ID = ? " + " AND f.IsActive = 'Y' " + " AND t.IsActive = 'Y' " - + " AND f.IsQuickEntry = 'Y' ", - winID); + + " AND f.IsQuickEntry = 'Y' " + + " AND (t.TabLevel = 0 " + + " AND t.AD_Table_ID IN (SELECT AD_Table_ID FROM AD_Table WHERE TableName = ? )) ", + winID,tableName); if (cnt > 0) { this.newEnabled = true; this.updateEnabled = true; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java index 3b51b47991..f6c3736802 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java @@ -549,7 +549,8 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value getDirectAccessSQL("*"); final InfoPanel ip = InfoManager.create(lookup, gridField, m_tableName, m_keyColumnName, queryValue, false, whereClause); - showInfoPanel(ip); + if (ip != null) + showInfoPanel(ip); } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java index 285dbbf556..f93a0cd528 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java @@ -108,6 +108,10 @@ public class DefaultInfoFactory implements IInfoFactory { info = new InfoGeneralPanel (value, WindowNo, tableName, keyColumn, multiSelection, whereClause, lookup); + if (!info.loadedOK()) { + info.dispose(false); + info = null; + } } } // diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/BroadcastMessageWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/BroadcastMessageWindow.java index 07ec7a4988..4657dc5e8c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/BroadcastMessageWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/BroadcastMessageWindow.java @@ -141,7 +141,7 @@ public class BroadcastMessageWindow extends Window implements IBroadcastMsgPopup Cell rightCell = new Cell(); southHLayout.appendChild(rightCell); rightCell.setAlign("right"); - rightCell.setHflex("2"); + rightCell.setHflex("true"); sDiv = new Div(); sDiv.setWidth("70px"); rightCell.appendChild(sDiv); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java index fc2d42c04b..4b28577afd 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoGeneralPanel.java @@ -259,13 +259,13 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener String sql = "SELECT c.ColumnName, t.AD_Table_ID, t.TableName, c.ColumnSql " + "FROM AD_Table t" + " INNER JOIN AD_Column c ON (t.AD_Table_ID=c.AD_Table_ID)" - + "WHERE c.AD_Reference_ID=10" + + "WHERE c.AD_Reference_ID IN (10,14)" + " AND t.TableName=?" // #1 // Displayed in Window + " AND EXISTS (SELECT * FROM AD_Field f " + "WHERE f.AD_Column_ID=c.AD_Column_ID" + " AND f.IsDisplayed='Y' AND f.IsEncrypted='N' AND f.ObscureType IS NULL) " - + "ORDER BY c.IsIdentifier DESC, c.SeqNo"; + + "ORDER BY c.IsIdentifier DESC, c.AD_Reference_ID, c.SeqNo"; int AD_Table_ID = 0; String tableName = null; @@ -310,6 +310,7 @@ public class InfoGeneralPanel extends InfoPanel implements EventListener // Miminum check if (m_queryColumns.size() == 0) { + FDialog.error(p_WindowNo, this, "Error", "No query columns found"); log.log(Level.SEVERE, "No query columns found"); return false; } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/util/WebUIResourceFinder.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/util/WebUIResourceFinder.java index 17713dcbeb..ba2e7e1b16 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/util/WebUIResourceFinder.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/util/WebUIResourceFinder.java @@ -42,7 +42,7 @@ public class WebUIResourceFinder implements IResourceFinder { @Override public URL getResource(String name) { - if ("images/AdempiereHR.png".equals(name) || "images/Adempiere.png".equals(name)) { + if ("images/iDempiereHR.png".equals(name) || "images/iDempiere.png".equals(name)) { name = ThemeManager.getThemeResource("images/header-logo.png"); } Enumeration e = find(name); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java index 62fd895d4c..7b4b8b80de 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java @@ -405,7 +405,7 @@ public class AboutWindow extends Window implements EventListener { vbox.setPack("center"); vbox.setParent(tabPanel); - Image image = new Image(ThemeManager.getSmallLogo()); + Image image = new Image(ThemeManager.getLargeLogo()); image.setParent(vbox); Text text = new Text(Adempiere.getSubtitle()); diff --git a/org.adempiere.ui.zk/calendar.zul b/org.adempiere.ui.zk/calendar.zul index e2ffd38939..69a6ce7122 100644 --- a/org.adempiere.ui.zk/calendar.zul +++ b/org.adempiere.ui.zk/calendar.zul @@ -2,6 +2,22 @@ +
iDempiere LogoiDempiere Logo
-

iDempiere Server Management +

iDempiere Server Management

-

Wiki - Manual - IRC Channel
+

Wiki - Resources - IRC Channel
Forums - Support Requests

© Copyright 2012 iDempiere - All rights reserved - iDempiere License is GPLv2© Copyright 2013 iDempiere - All rights reserved - iDempiere License is GPLv2