Merge 7bba97c0db7e

This commit is contained in:
Heng Sin Low 2013-04-22 11:46:19 +08:00
commit 0fd68e54ca
211 changed files with 16490 additions and 512 deletions

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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;

View File

@ -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,

View File

@ -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
;

File diff suppressed because it is too large Load Diff

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

File diff suppressed because it is too large Load Diff

View File

@ -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
;

View File

@ -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
;

File diff suppressed because it is too large Load Diff

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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

View File

@ -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
;

File diff suppressed because it is too large Load Diff

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

File diff suppressed because it is too large Load Diff

View File

@ -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
;

View File

@ -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
;

File diff suppressed because it is too large Load Diff

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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
;

View File

@ -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");
@ -293,7 +294,6 @@ public class GridTabCSVImporter implements IGridTabImporter
logFileW.write(rawHeader + delimiter + LOG_HEADER + "\n");
// no errors found - process header and then details
boolean isMasterok = true;
PO masterRecord = null;
String trxName= null;
for (int idx = 0; idx < data.size(); idx++) {
String rawLine = rawData.get(idx);
@ -305,9 +305,17 @@ public class GridTabCSVImporter implements IGridTabImporter
boolean isDetail=false;
int currentColumn=0;
if (rawLine.charAt(0)==',')
if (rawLine.charAt(0)==','){
isDetail=true;
//check out if master row comes empty
Map<String, Object> 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<String, Object> map = data.get(idx);
isMasterok = true;
if(!isDetail){
masterRecord = null;
@ -337,19 +344,22 @@ public class GridTabCSVImporter implements IGridTabImporter
trx = Trx.get(trxName,true);
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();
@ -464,8 +475,10 @@ public class GridTabCSVImporter implements IGridTabImporter
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,6 +662,11 @@ 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);
@ -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,7 +803,7 @@ public class GridTabCSVImporter implements IGridTabImporter
if(!field.isDisplayed(true))
continue;
if (!isInsertMode() && !field.isEditable(true) && value!=null) {
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;
}
@ -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;

View File

@ -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;

View File

@ -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 = "";

View File

@ -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;
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.

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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();
}

View File

@ -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";

View File

@ -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";

View File

@ -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}
);
}

View File

@ -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

View File

@ -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<MPaymentTransaction> ptList = new ArrayList<MPaymentTransaction>();
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

View File

@ -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

View File

@ -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,12 +444,24 @@ 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());
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());
BigDecimal CODAmount = BigDecimal.ZERO;
@ -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());

View File

@ -492,9 +492,18 @@ public final class MPayment extends X_C_Payment
if (m_mBankAccountProcessor == null)
setPaymentProcessor();
if (m_mBankAccountProcessor == null)
{
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))

View File

@ -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());
//
@ -212,9 +207,18 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce
if (m_mBankAccountProcessor == null)
setPaymentProcessor();
if (m_mBankAccountProcessor == null)
{
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);
@ -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);
}
}

View File

@ -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();
}

View File

@ -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") ||

View File

@ -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.

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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);
}
}

View File

@ -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();

View File

@ -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
{
set_Value (COLUMNNAME_CashOnDelivery, Boolean.valueOf(CashOnDelivery));
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 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();

View File

@ -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;
for (int i = 1; i < length; i++) {
m_synonym += String.valueOf(cc);
}
} // synonymNext
/**

View File

@ -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;

View File

@ -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")

View File

@ -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<MBroadcastMessage> mbMessages = new ArrayList<MBroadcastMessage>();
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)));

View File

@ -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());
}

View File

@ -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

View File

@ -16,4 +16,4 @@ read in
# Parameter: <systemAccount> <adempiereID> <adempierePwd>
# 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -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">
<display-name>ADempiere Root</display-name>
<display-name>iDempiere Root</display-name>
<description></description>
<context-param>
<param-name>ServerRoot</param-name>
<param-value>1</param-value>
</context-param>
<filter>
<display-name>ADempiere Monitor Filter</display-name>
<filter-name>AdempiereMonitorFilter</filter-name>
<display-name>iDempiere Monitor Filter</display-name>
<filter-name>idempiereMonitorFilter</filter-name>
<filter-class>org.compiere.web.AdempiereMonitorFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AdempiereMonitorFilter</filter-name>
<url-pattern>/adempiereMonitor/*</url-pattern>
<filter-name>idempiereMonitorFilter</filter-name>
<url-pattern>/idempiereMonitor/*</url-pattern>
</filter-mapping>
<servlet>
<display-name>JNLP Download Servlet</display-name>
@ -30,15 +30,15 @@
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<description>ADempiere Server Status Info</description>
<description>iDempiere Server Status Info</description>
<display-name>Server Status</display-name>
<servlet-name>StatusInfo</servlet-name>
<servlet-class>org.compiere.web.StatusInfo</servlet-class>
</servlet>
<servlet>
<description>ADempiere Server Monitor</description>
<display-name>ADempiere Monitor</display-name>
<servlet-name>AdempiereMonitor</servlet-name>
<description>iDempiere Server Monitor</description>
<display-name>iDempiere Monitor</display-name>
<servlet-name>idempiereMonitor</servlet-name>
<servlet-class>org.compiere.web.AdempiereMonitor</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
@ -61,8 +61,8 @@
<url-pattern>/statusInfo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdempiereMonitor</servlet-name>
<url-pattern>/adempiereMonitor/*</url-pattern>
<servlet-name>idempiereMonitor</servlet-name>
<url-pattern>/idempiereMonitor/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
@ -86,7 +86,7 @@
<security-constraint>
<web-resource-collection>
<web-resource-name>admin</web-resource-name>
<url-pattern>/adempiereMonitor/*</url-pattern>
<url-pattern>/idempiereMonitor/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>service</web-resource-name>
@ -97,6 +97,6 @@
</user-data-constraint>
</security-constraint>
<welcome-file-list>
<welcome-file>adempiere.html</welcome-file>
<welcome-file>idempiere.html</welcome-file>
</welcome-file-list>
</web-app>

View File

@ -11,7 +11,7 @@
<description kind = "short">Adempiere ERP+CRM ($$context)</description>
<description kind = "one-line">Adempiere ERP+CRM</description>
<description kind = "tooltip">Adempiere ERP+CRM ($$context)</description>
<icon href = "$$context/C32.gif"/>
<icon href = "$$context/iD32.gif"/>
<shortcut online="true">
<desktop/>
<menu submenu="Adempiere 3.6.0LTS $$context"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Some files were not shown because too many files have changed in this diff Show More