Merge changes from release-1.0c branch
This commit is contained in:
commit
be50c979a6
|
@ -24,7 +24,7 @@ CREATE OR REPLACE VIEW AD_FIELD_V AS
|
||||||
f.seqnogrid,
|
f.seqnogrid,
|
||||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||||
c.FormatPattern, f.IsDefaultFocus
|
c.FormatPattern, f.isadvancedfield, f.IsDefaultFocus
|
||||||
FROM AD_FIELD f
|
FROM AD_FIELD f
|
||||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||||
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||||
|
|
|
@ -23,7 +23,7 @@ CREATE OR REPLACE VIEW AD_FIELD_VT AS
|
||||||
f.seqnogrid,
|
f.seqnogrid,
|
||||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||||
c.FormatPattern, f.IsDefaultFocus
|
c.FormatPattern, f.isadvancedfield, f.IsDefaultFocus
|
||||||
FROM AD_FIELD f
|
FROM AD_FIELD f
|
||||||
INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID)
|
INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID)
|
||||||
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
CREATE OR REPLACE VIEW m_costmovement_v AS
|
CREATE OR REPLACE VIEW m_costmovement_v AS
|
||||||
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id, b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty, b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id, b.c_projectissue_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id,
|
||||||
|
b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty,
|
||||||
|
b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id,
|
||||||
|
b.c_projectissue_id, b.m_matchinv_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
||||||
FROM m_costhistory a
|
FROM m_costhistory a
|
||||||
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
||||||
ORDER BY a.m_costhistory_id
|
ORDER BY a.m_costhistory_id
|
||||||
|
|
|
@ -1,26 +1,22 @@
|
||||||
CREATE OR REPLACE VIEW ad_field_v AS
|
CREATE OR REPLACE VIEW ad_field_v AS
|
||||||
SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id,
|
SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, f.name, f.description,
|
||||||
f.name, f.description, f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno,
|
f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading,
|
||||||
f.sortno, f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield,
|
f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql,
|
||||||
f.obscuretype, c.columnname, c.columnsql, c.fieldlength, c.vformat,
|
c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||||
COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
|
||||||
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||||
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||||
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||||
COALESCE(f.Isalwaysupdateable , C.Isalwaysupdateable) As Isalwaysupdateable,
|
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||||
COALESCE(f.Readonlylogic, c.Readonlylogic ) As Readonlylogic,
|
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||||
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable,
|
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||||
c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax,
|
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fg.name AS fieldgroup,
|
||||||
fg.name AS fieldgroup, vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||||
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||||
COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||||
f.isdisplayedgrid,
|
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||||
f.seqnogrid,
|
c.formatpattern, f.isadvancedfield, f.IsDefaultFocus
|
||||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
|
||||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
|
||||||
c.FormatPattern, f.IsDefaultFocus
|
|
||||||
FROM ad_field f
|
FROM ad_field f
|
||||||
JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||||
LEFT JOIN ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
LEFT JOIN ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||||
|
@ -28,3 +24,4 @@ CREATE OR REPLACE VIEW ad_field_v AS
|
||||||
JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||||
LEFT JOIN ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
LEFT JOIN ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||||
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar;
|
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar;
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
CREATE OR REPLACE VIEW ad_field_vt AS
|
CREATE OR REPLACE VIEW ad_field_vt AS
|
||||||
SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, trl.name, trl.description,
|
SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id,
|
||||||
trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading, f.isfieldonly, f.isreadonly,
|
trl.name, trl.description, trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno,
|
||||||
f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql, c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue,
|
f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype,
|
||||||
c.iskey, c.isparent, COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
c.columnname, c.columnsql, c.fieldlength, c.vformat,
|
||||||
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout, COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||||
COALESCE(f.ad_val_rule_id,c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||||
COALESCE(f.Isalwaysupdateable,C.Isalwaysupdateable) As Isalwaysupdateable,
|
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||||
COALESCE(f.Readonlylogic,c.Readonlylogic) As Readonlylogic,
|
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||||
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||||
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable,
|
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||||
c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode,
|
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||||
f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault, COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||||
COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||||
f.isdisplayedgrid,
|
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode,
|
||||||
f.seqnogrid,
|
f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||||
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||||
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||||
c.FormatPattern, f.IsDefaultFocus
|
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||||
|
c.formatpattern, f.isadvancedfield, f.IsDefaultFocus
|
||||||
FROM ad_field f
|
FROM ad_field f
|
||||||
JOIN ad_field_trl trl ON f.ad_field_id = trl.ad_field_id
|
JOIN ad_field_trl trl ON f.ad_field_id = trl.ad_field_id
|
||||||
JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
CREATE OR REPLACE VIEW m_costmovement_v AS
|
CREATE OR REPLACE VIEW m_costmovement_v AS
|
||||||
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id, b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty, b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id, b.c_projectissue_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id,
|
||||||
|
b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty,
|
||||||
|
b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id,
|
||||||
|
b.c_projectissue_id, b.m_matchinv_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
||||||
FROM m_costhistory a
|
FROM m_costhistory a
|
||||||
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
||||||
ORDER BY a.m_costhistory_id
|
ORDER BY a.m_costhistory_id
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
-- Aug 6, 2013 1:35:12 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=158, IsToolbarButton='N',Updated=TO_DATE('2013-08-06 13:35:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200990
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 1:36:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
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 ('AD_User.AD_User_ID IN (SELECT AD_User_ID FROM AD_User_Roles WHERE IsActive=''Y'' AND AD_User_Roles.AD_Client_ID=@#AD_Client_ID@)',200052,'D','AD_User of Client','S','db84ffe3-27c1-4a81-85f5-dcb3effecadd',100,100,TO_DATE('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),'Y',0,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 1:36:29 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=200052, IsToolbarButton='N',Updated=TO_DATE('2013-08-06 13:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200991
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('20130608133825_IDEMPIERE-1138.sql') FROM dual
|
||||||
|
;
|
|
@ -114,10 +114,6 @@ UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:15:16','YYYY-MM
|
||||||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4771
|
UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4771
|
||||||
;
|
;
|
||||||
|
|
||||||
-- Jul 5, 2013 10:20:07 PM COT
|
|
||||||
UPDATE R_RequestProcessor SET DateLastRun=TO_DATE('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'), DateNextRun=TO_DATE('2013-07-05 22:35:07','YYYY-MM-DD HH24:MI:SS'),Updated=TO_DATE('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE R_RequestProcessor_ID=1000003
|
|
||||||
;
|
|
||||||
|
|
||||||
-- Jul 5, 2013 10:29:14 PM COT
|
-- Jul 5, 2013 10:29:14 PM COT
|
||||||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:29:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200972
|
UPDATE AD_Column SET IsSecure='Y',Updated=TO_DATE('2013-07-05 22:29:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200972
|
||||||
;
|
;
|
||||||
|
|
|
@ -474,11 +474,6 @@ UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=1, ColumnSpan=3, NumLin
|
||||||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_DATE('2013-07-19 17:12:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_DATE('2013-07-19 17:12:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
||||||
;
|
;
|
||||||
|
|
||||||
-- Jul 22, 2013 11:48:27 AM MYT
|
|
||||||
-- IDEMPIERE-1042 Role Data Access
|
|
||||||
UPDATE AD_SysConfig SET Value='IDEMPIERE-528 Determine Zoom window depending on record',Updated=TO_DATE('2013-07-22 11:48:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50003
|
|
||||||
;
|
|
||||||
|
|
||||||
-- Jul 22, 2013 11:50:07 AM MYT
|
-- Jul 22, 2013 11:50:07 AM MYT
|
||||||
-- IDEMPIERE-528 Determine Zoom window depending on record
|
-- IDEMPIERE-528 Determine Zoom window depending on record
|
||||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200066,210660,'Y','N','Y',0,'N',60,'Y',10,'N','N','Y','45deb4e7-a2a4-4aa5-9f32-05c2066e72cd','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_DATE('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',469)
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200066,210660,'Y','N','Y',0,'N',60,'Y',10,'N','N','Y','45deb4e7-a2a4-4aa5-9f32-05c2066e72cd','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_DATE('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',469)
|
||||||
|
|
|
@ -0,0 +1,517 @@
|
||||||
|
-- Jul 31, 2013 7:16:30 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAdvancedField',202574,'Advanced Field','Advanced Field','1ab899a3-278e-418a-b84e-fe5fc3f263b6',TO_DATE('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:16:30 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202574 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:17:38 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,107,210679,'N','N','N',0,'N',1,'N',20,'N','N','Y','45c86144-67dc-487b-a761-54774dd34388','Y','IsAdvancedField','N','Advanced Field','Y',TO_DATE('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202574,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:17:38 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=210679 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:17:51 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
ALTER TABLE AD_Field ADD IsAdvancedField CHAR(1) DEFAULT 'N' CHECK (IsAdvancedField IN ('Y','N'))
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:18:37 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',107,1,'N','N',210679,400,'Y',202362,'N','D','Advanced Field','153209a5-5587-49dc-b587-51f236ebfd53','Y','N',100,0,TO_DATE('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:18:37 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=202362 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=240, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200350
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=260,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200348
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=270,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200349
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=280,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13425
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=290,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200837
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54402
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54401
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200838
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200834
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13424
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62468
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53280
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200836
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200835
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=390,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=136
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=400,Updated=TO_DATE('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=139
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:20:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAccessAdvanced',202575,'Access Advanced ','Access Advanced ','2977102f-1399-4824-ba24-2b0c902aed64',TO_DATE('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:20:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202575 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:22:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,156,210680,'N','N','N',0,'N',1,'N',20,'N','N','Y','1827e3d1-f438-4d13-8162-1288ab34d2da','Y','IsAccessAdvanced','Y','Access Advanced ','Y',TO_DATE('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202575,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:22:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=210680 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:22:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
ALTER TABLE AD_Role ADD IsAccessAdvanced CHAR(1) DEFAULT 'N' CHECK (IsAccessAdvanced IN ('Y','N'))
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:23:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',119,1,'N','N',210680,480,'Y',202366,'N','D','Access Advanced ','f1ae60d9-680d-4764-a54e-2de52d65310e','Y','N',100,0,TO_DATE('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:23:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=202366 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 3:19:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET DisplayLogic='@IsMasterRole@=N',Updated=TO_DATE('2013-08-01 15:19:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=142
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=220,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8343
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=140
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=240,Updated=TO_DATE('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=141
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=280, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=290, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200071
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50168
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50178
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50176
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50170
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50174
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50173
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50172
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50175
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50169
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=390,Updated=TO_DATE('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50177
|
||||||
|
;
|
||||||
|
|
||||||
|
update ad_tab set isadvancedtab='N' where isadvancedtab='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW AD_FIELD_V AS
|
||||||
|
SELECT t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID,
|
||||||
|
f.NAME, f.Description, f.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength,
|
||||||
|
f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly,
|
||||||
|
f.IsEncrypted AS IsEncryptedField, f.ObscureType,
|
||||||
|
c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat,
|
||||||
|
COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue,
|
||||||
|
c.IsKey, c.IsParent,
|
||||||
|
COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory,
|
||||||
|
c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID,
|
||||||
|
c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID,
|
||||||
|
COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) AS AD_Val_Rule_ID, c.AD_Process_ID,
|
||||||
|
COALESCE(f.Isalwaysupdateable , C.Isalwaysupdateable) As Isalwaysupdateable,
|
||||||
|
COALESCE(f.Readonlylogic, c.Readonlylogic ) As Readonlylogic,
|
||||||
|
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
||||||
|
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.IsEncrypted AS IsEncryptedColumn,
|
||||||
|
c.IsSelectionColumn,
|
||||||
|
tbl.TableName, c.ValueMin, c.ValueMax,
|
||||||
|
fg.NAME AS FieldGroup, vr.Code AS ValidationCode,
|
||||||
|
f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault,
|
||||||
|
COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass,
|
||||||
|
c.IsAutocomplete, COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
||||||
|
f.isdisplayedgrid,
|
||||||
|
f.seqnogrid,
|
||||||
|
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||||
|
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||||
|
c.FormatPattern, f.isadvancedfield
|
||||||
|
FROM AD_FIELD f
|
||||||
|
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||||
|
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||||
|
LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID)
|
||||||
|
INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID)
|
||||||
|
LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID = COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID))
|
||||||
|
WHERE f.IsActive = 'Y'
|
||||||
|
AND c.IsActive = 'Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW AD_FIELD_VT AS
|
||||||
|
SELECT trl.AD_LANGUAGE, t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID,
|
||||||
|
trl.NAME, trl.Description, trl.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength,
|
||||||
|
f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly,
|
||||||
|
f.IsEncrypted AS IsEncryptedField, f.ObscureType,
|
||||||
|
c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat,
|
||||||
|
COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue,
|
||||||
|
c.IsKey, c.IsParent,
|
||||||
|
COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory,
|
||||||
|
c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID,
|
||||||
|
c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID,
|
||||||
|
COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) as AD_Val_Rule_ID, c.AD_Process_ID,
|
||||||
|
COALESCE(f.Isalwaysupdateable , C.Isalwaysupdateable) As Isalwaysupdateable,
|
||||||
|
COALESCE(f.Readonlylogic, c.Readonlylogic ) As Readonlylogic,
|
||||||
|
COALESCE(f.Mandatorylogic , C.Mandatorylogic) As Mandatorylogic,
|
||||||
|
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.IsEncrypted AS IsEncryptedColumn, c.IsSelectionColumn,
|
||||||
|
tbl.TableName, c.ValueMin, c.ValueMax,
|
||||||
|
fgt.NAME AS FieldGroup, vr.Code AS ValidationCode,
|
||||||
|
f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault,
|
||||||
|
COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass,
|
||||||
|
c.IsAutocomplete, COALESCE(f.IsAllowCopy, c.IsAllowCopy) AS IsAllowCopy,
|
||||||
|
f.isdisplayedgrid,
|
||||||
|
f.seqnogrid,
|
||||||
|
c.seqnoselection, f.xposition, f.columnspan, f.numlines,
|
||||||
|
COALESCE(f.istoolbarbutton , c.istoolbarbutton ) As istoolbarbutton,
|
||||||
|
c.FormatPattern, f.isadvancedfield
|
||||||
|
FROM AD_FIELD f
|
||||||
|
INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID)
|
||||||
|
INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID)
|
||||||
|
LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID)
|
||||||
|
LEFT OUTER JOIN AD_FIELDGROUP_TRL fgt ON
|
||||||
|
(f.AD_FieldGroup_ID = fgt.AD_FieldGroup_ID AND trl.AD_LANGUAGE=fgt.AD_LANGUAGE)
|
||||||
|
LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID)
|
||||||
|
INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID)
|
||||||
|
LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID=COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID))
|
||||||
|
WHERE f.IsActive = 'Y'
|
||||||
|
AND c.IsActive = 'Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:52:33 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Role SET IsAccessAdvanced='Y',Updated=TO_DATE('2013-08-06 14:52:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID IN (0,102)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:23:57 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:23:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10318
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:24:26 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:24:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11024
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:24:51 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:24:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54238
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:25:22 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:25:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54680
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:25:56 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:25:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200948
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:26:01 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:26:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200949
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:26:43 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:26:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56981
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:27:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:27:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:06 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50003
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:09 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50004
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:13 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50002
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsInsertRecord='N', IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50001
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:32 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50008
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:41 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50005
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:45 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:28:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50006
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=505
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=369
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:42 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=150
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:46 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=126
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:52 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=310
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:30:30 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:30:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200406
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:30:51 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53066
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:30:54 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:30:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53067
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:31:08 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2013-08-06 15:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200032
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:31:34 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:31:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5028
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:31:37 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:31:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5029
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:00 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5040
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:03 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200003
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:36 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5053
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:50 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11252
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200858
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:13 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200855
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:18 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5054
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:21 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200849
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:26 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200851
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:29 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200852
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:34 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-06 15:33:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200854
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('20130801160000_IDEMPIERE-1160.sql') FROM dual
|
||||||
|
;
|
|
@ -0,0 +1,292 @@
|
||||||
|
-- Aug 1, 2013 12:32:12 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,493,210681,'N','N','N',0,'N',22,'N',19,'N','N','Y','01406b24-b108-4ef9-9533-688ceb8615c4','Y','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',TO_DATE('2013-08-01 12:32:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-08-01 12:32:11','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',143,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:32:12 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
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=210681 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:32:17 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
ALTER TABLE AD_PrintFormat ADD AD_Window_ID NUMBER(10) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:28 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan) VALUES ('N',425,36,'N','N',60458,220,'Y',202367,'N','D','AD_PrintFormat_UU','d856c59c-850d-4f62-98c2-b30edf36641b','N','N',100,0,TO_DATE('2013-08-01 12:35:27','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-08-01 12:35:27','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:28 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
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=202367 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:29 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,AD_Client_ID,ColumnSpan) VALUES ('N',425,22,'N','N',210681,230,'Y',202368,'N','The Window field identifies a unique Window in the system.','D','Data entry or display window','Window','588d3710-0a9b-497d-a5fc-f03a565b8b2d','Y','N',100,0,TO_DATE('2013-08-01 12:35:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-08-01 12:35:28','YYYY-MM-DD HH24:MI:SS'),'Y',0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:29 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
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=202368 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:36:10 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2013-08-01 12:36:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=5666
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=5662
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=5664
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=5659
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=5665
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=5652
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=8291
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=5655
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=5744
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=5656
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=5651
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=5663
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=5653
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=5762
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=6503
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=5657
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=5661
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=5654
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=5658
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=50179
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=52009
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=5660
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=52008
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=202367
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=5666
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=5662
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=5664
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=5659
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=5665
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=5652
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=8291
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=5655
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5744
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=5656
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=5651
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=5663
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=5653
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=5762
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=6503
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=5657
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=5661
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=5654
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=5658
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=50179
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=52009
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=5660
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=52008
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:38:10 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_DATE('2013-08-01 12:38:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308051548_IDEMPIERE-1229.sql') FROM dual
|
||||||
|
;
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- Aug 5, 2013 5:41:02 PM COT
|
||||||
|
-- IDEMPIERE-1025 Improve translation for custom tables
|
||||||
|
UPDATE AD_SysConfig SET Value='Y',Updated=TO_DATE('2013-08-05 17:41:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50031
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308051741_IDEMPIERE-1025.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
-- IDEMPIERE-1232 Zoom condition fixes
|
||||||
|
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_ZoomCondition_UU',202578,'AD_ZoomCondition_UU','AD_ZoomCondition_UU','7f562afd-d2c2-40cc-8f5f-fd71597f7621',TO_DATE('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202578 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (1.0,200066,210683,'N','N','N','N',36,'N',10,'N','4748d5ef-fbba-458e-8947-8676fce31f72','Y','AD_ZoomCondition_UU','AD_ZoomCondition_UU',TO_DATE('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),100,'N',0,'D','N',202578)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210683 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
ALTER TABLE AD_ZoomCondition ADD AD_ZoomCondition_UU NVARCHAR2(36) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:29 AM COT
|
||||||
|
ALTER TABLE AD_ZoomCondition ADD CONSTRAINT AD_ZoomCondition_UU_idx UNIQUE (AD_ZoomCondition_UU)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:24:07 AM COT
|
||||||
|
UPDATE AD_ZoomCondition SET AD_ZoomCondition_UU='3962168d-caad-4057-b009-b5db798ce6d8' WHERE AD_ZoomCondition_ID=200001
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:24:07 AM COT
|
||||||
|
UPDATE AD_ZoomCondition SET AD_ZoomCondition_UU='9cc206f5-283f-428d-a3b5-9d8a7669d7e8' WHERE AD_ZoomCondition_ID=200002
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:35:21 AM COT
|
||||||
|
INSERT INTO AD_ZoomCondition (AD_Client_ID,AD_Org_ID,AD_Window_ID,AD_ZoomCondition_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,SeqNo,WhereClause,AD_Table_ID,Name,AD_ZoomCondition_UU) VALUES (0,0,53098,200003,TO_DATE('2013-08-09 09:35:14','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2013-08-09 09:35:14','YYYY-MM-DD HH24:MI:SS'),100,10,'M_InOut.MovementType IN (''V-'')',319,'Return to Vendor','c4403f97-5fe3-4a70-a71a-006739d5d8cc')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:35:48 AM COT
|
||||||
|
INSERT INTO AD_ZoomCondition (AD_Client_ID,AD_Org_ID,AD_Window_ID,AD_ZoomCondition_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,SeqNo,WhereClause,AD_Table_ID,Name,AD_ZoomCondition_UU) VALUES (0,0,53097,200004,TO_DATE('2013-08-09 09:35:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2013-08-09 09:35:47','YYYY-MM-DD HH24:MI:SS'),100,20,'M_InOut.MovementType IN (''C+'')',319,'Customer Return','c6c7fde3-2a9c-4eaf-8d22-fc2537de1678')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:38:48 AM COT
|
||||||
|
UPDATE AD_Tab SET Help='The Return to Vendor Line Tab defines the individual items in a Return to Vendor.', Name='Return to Vendor Line', Description='Return to Vendor Line',Updated=TO_DATE('2013-08-09 09:38:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53277
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:39:06 AM COT
|
||||||
|
UPDATE AD_Tab SET Description='Optional Confirmations of Return to Vendor Lines',Updated=TO_DATE('2013-08-09 09:39:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53278
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:40:05 AM COT
|
||||||
|
UPDATE AD_Field SET IsCentrallyMaintained='N', Help='The Return to Vendor', Description='Return to Vendor Document', Name='Return to Vendor',Updated=TO_DATE('2013-08-09 09:40:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57900
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:40:45 AM COT
|
||||||
|
UPDATE AD_Tab SET Help='The Customer Return Line Tab defines the individual items in a Customer Return.', Name='Customer Return Line', Description='Customer Return Line',Updated=TO_DATE('2013-08-09 09:40:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53272
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:41:08 AM COT
|
||||||
|
UPDATE AD_Field SET IsCentrallyMaintained='N', Help='The Customer Return', Description='Customer Return Document', Name='Customer Return',Updated=TO_DATE('2013-08-09 09:41:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57761
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308090826_IDEMPIERE-1232.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Aug 12, 2013 4:21:30 PM MYT
|
||||||
|
-- IDEMPIERE-1207 Fixed inconsistent error message for well known database exception
|
||||||
|
UPDATE AD_Column SET DefaultValue='@#AD_Client_ID@',Updated=TO_DATE('2013-08-12 16:21:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5163
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 12, 2013 4:21:53 PM MYT
|
||||||
|
-- IDEMPIERE-1207 Fixed inconsistent error message for well known database exception
|
||||||
|
UPDATE AD_Column SET DefaultValue='@#AD_Org_ID@',Updated=TO_DATE('2013-08-12 16:21:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5164
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308120824_IDEMPIERE-1255.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- Aug 12, 2013 5:52:23 PM MYT
|
||||||
|
-- IDEMPIERE-1207 Fixed inconsistent error message for well known database exception
|
||||||
|
UPDATE AD_Column SET IsUpdateable='N', DefaultValue=NULL,Updated=TO_DATE('2013-08-12 17:52:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2705
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308120955_IDEMPIERE-1260.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
-- Jul 22, 2013 8:56:39 PM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,808,210662,'N','N','N',0,'N',22,'N',30,'N','N','Y','c5983338-dac3-4173-ac05-81bc1bdb1ce7','N','M_MatchInv_ID','Match Shipment/Receipt to Invoice','Match Invoice','N',TO_DATE('2013-07-22 20:56:37','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-22 20:56:37','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',1689)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 22, 2013 8:56:39 PM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
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=210662 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 22, 2013 8:56:45 PM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
ALTER TABLE M_CostDetail ADD M_MatchInv_ID NUMBER(10) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW m_costmovement_v AS
|
||||||
|
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id,
|
||||||
|
b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty,
|
||||||
|
b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id,
|
||||||
|
b.c_projectissue_id, b.m_matchinv_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
||||||
|
FROM m_costhistory a
|
||||||
|
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
||||||
|
ORDER BY a.m_costhistory_id
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:55:31 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200002,210663,'N','N','N',0,'N',22,'N',30,'N','N','Y','10f7d192-2c18-497c-bcf3-548f8546fd41','N','M_MatchInv_ID','Match Shipment/Receipt to Invoice','Match Invoice','N',TO_DATE('2013-07-23 07:55:29','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-07-23 07:55:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',1689)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:55:31 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
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=210663 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:56:36 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
INSERT INTO AD_Field (NumLines,SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan) VALUES (1,0,'N',200000,0,'N','N',210663,270,'Y',202340,'N','D','Match Shipment/Receipt to Invoice','Match Invoice','Y','N','624749f1-6544-45d7-a6b7-cebc6bcdfc93',100,0,TO_DATE('2013-07-23 07:56:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-23 07:56:34','YYYY-MM-DD HH24:MI:SS'),'Y','Y',270,1,'N',0,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:56:36 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
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=202340 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:57:03 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
UPDATE AD_Field SET SeqNo=270, ColumnSpan=2,Updated=TO_DATE('2013-07-23 07:57:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202340
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308140925_IDEMPIERE-1188.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Aug 14, 2013 9:52:38 AM COT
|
||||||
|
-- IDEMPIERE-1219 Error message when saving 2 default Tax Rates are not translated
|
||||||
|
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','Only one @C_Tax_ID@ per @C_TaxCategory_ID@ can be marked as Default!',200220,'D','84a60603-8500-40be-a90f-f6c1bc16e827','OnlyOneTaxPerCategoryMarkedDefault','Y',TO_DATE('2013-08-14 09:52:37','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_DATE('2013-08-14 09:52:37','YYYY-MM-DD HH24:MI:SS'),0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 9:52:38 AM COT
|
||||||
|
-- IDEMPIERE-1219 Error message when saving 2 default Tax Rates are not translated
|
||||||
|
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=200220 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('201308141001_IDEMPIERE-1269.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
-- Aug 14, 2013 12:20:12 PM IST
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2013-08-14 12:20:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2053
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 12:22:49 PM IST
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=189,Updated=TO_DATE('2013-08-14 12:22:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2223
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 12:34:17 PM IST
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2013-08-14 12:34:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3409
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 6:06:28 PM MYT
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2013-08-14 18:06:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1129
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 6:10:37 PM MYT
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2013-08-14 18:10:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3388
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308141244_IDEMPIERE-1243.sql') FROM dual
|
||||||
|
;
|
|
@ -0,0 +1,98 @@
|
||||||
|
SET SQLBLANKLINES ON
|
||||||
|
SET DEFINE OFF
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:50:07 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Ref_List SET Value='E',Updated=TO_DATE('2013-07-16 17:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200046
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:56:21 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_BroadcastMessage SET BroadcastFrequency='E' WHERE BroadcastFrequency='U'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:54:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,Description,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID,EntityType) VALUES (200156,200020,'Repeat it until the message has been acknowledged','Until Acknowledge','d6b87260-502d-4984-b9e3-8daafde1acd9','A',TO_DATE('2013-07-16 17:54:08','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-16 17:54:08','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:54:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
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=200156 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:56:21 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,Description,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID,EntityType) VALUES (200157,200020,'Repeat it until the message expires or until it has been acknowledged, whatever happens first','Until Expiration or Acknowledge','aa345f63-dfbe-4d18-aae4-e5ed06cd4407','O',TO_DATE('2013-07-16 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-07-16 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:56:21 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
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=200157 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:50:32 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_DATE('2013-07-17 08:50:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200882
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:50:51 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2013-07-17 08:50:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200881
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:50:59 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET IsDisplayed='N',Updated=TO_DATE('2013-07-17 08:50:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200881
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:54:47 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET DisplayLogic='@BroadcastType@!''I''',Updated=TO_DATE('2013-07-17 08:54:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200873
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 9:14:17 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET DisplayLogic='@BroadcastFrequency@=''E'' | @BroadcastFrequency@=''O''',Updated=TO_DATE('2013-07-17 09:14:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200879
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 3:18:50 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,EntityType,Name,Code,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Org_ID,IsActive,AD_Client_ID) VALUES (200051,'D','AD_BroadcastMessage - Combination','AD_Ref_List.Value NOT IN(SELECT CASE WHEN AD_Client_ID<>0 THEN ''E'' ELSE ''1'' END FROM AD_Client WHERE AD_Client_ID=@#AD_Client_ID@)','S','9c09aaee-c787-4f30-900e-25412968812a',100,100,TO_DATE('2013-07-17 15:18:49','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-07-17 15:18:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 3:19:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=200051, IsToolbarButton='N',Updated=TO_DATE('2013-07-17 15:19:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200989
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 4:29:38 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET Help='<p>1. Just Once : Message will be broadcasted one time. </p>
|
||||||
|
<p><span style="line-height: 1.6em;">2. Until Acknowledge : Repeat it until the message has been acknowledged. </span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">3. </span><span style="line-height: 1.6em;">Until Expiration or Acknowledge : Repeat it until the message expires or until it has been acknowledged, whatever happens first.</span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">4. </span><span style="line-height: 1.6em;">Until Expiration : Repeat it until message expiration value.</span></p>
|
||||||
|
',Updated=TO_DATE('2013-07-17 16:29:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200873
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 4:29:49 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET Help='<p>1. Just Once : Message will be broadcasted one time. </p>
|
||||||
|
<p><span style="line-height: 1.6em;">2. Until Acknowledge : Repeat it until the message has been acknowledged. </span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">3. </span><span style="line-height: 1.6em;">Until Expiration or Acknowledge : Repeat it until the message expires or until it has been acknowledged, whatever happens first.</span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">4. </span><span style="line-height: 1.6em;">Until Expiration : Repeat it until message expiration value.</span></p>
|
||||||
|
',Updated=TO_DATE('2013-07-17 16:29:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200984
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 4:29:49 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET Name='Broadcast Frequency', Description='How Many Times Message Should be Broadcasted', Help='<p>1. Just Once : Message will be broadcasted one time. </p>
|
||||||
|
<p><span style="line-height: 1.6em;">2. Until Acknowledge : Repeat it until the message has been acknowledged. </span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">3. </span><span style="line-height: 1.6em;">Until Expiration or Acknowledge : Repeat it until the message expires or until it has been acknowledged, whatever happens first.</span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">4. </span><span style="line-height: 1.6em;">Until Expiration : Repeat it until message expiration value.</span></p>
|
||||||
|
' WHERE AD_Column_ID=200984 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('20131707164800_IDEMPIERE-1138.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
-- Aug 6, 2013 1:35:12 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=158, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-08-06 13:35:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200990
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 1:36:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
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 ('AD_User.AD_User_ID IN (SELECT AD_User_ID FROM AD_User_Roles WHERE IsActive=''Y'' AND AD_User_Roles.AD_Client_ID=@#AD_Client_ID@)',200052,'D','AD_User of Client','S','db84ffe3-27c1-4a81-85f5-dcb3effecadd',100,100,TO_TIMESTAMP('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-08-06 13:36:08','YYYY-MM-DD HH24:MI:SS'),'Y',0,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 1:36:29 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=200052, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-08-06 13:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200991
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('20130608133825_IDEMPIERE-1138.sql') FROM dual
|
||||||
|
;
|
|
@ -114,10 +114,6 @@ UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:15:16','YY
|
||||||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4771
|
UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4771
|
||||||
;
|
;
|
||||||
|
|
||||||
-- Jul 5, 2013 10:20:07 PM COT
|
|
||||||
UPDATE R_RequestProcessor SET DateLastRun=TO_TIMESTAMP('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'), DateNextRun=TO_TIMESTAMP('2013-07-05 22:35:07','YYYY-MM-DD HH24:MI:SS'),Updated=TO_TIMESTAMP('2013-07-05 22:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE R_RequestProcessor_ID=1000003
|
|
||||||
;
|
|
||||||
|
|
||||||
-- Jul 5, 2013 10:29:14 PM COT
|
-- Jul 5, 2013 10:29:14 PM COT
|
||||||
UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:29:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200972
|
UPDATE AD_Column SET IsSecure='Y',Updated=TO_TIMESTAMP('2013-07-05 22:29:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200972
|
||||||
;
|
;
|
||||||
|
|
|
@ -469,11 +469,6 @@ UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=1, ColumnSpan=3, NumLin
|
||||||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-19 17:12:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-19 17:12:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201831
|
||||||
;
|
;
|
||||||
|
|
||||||
-- Jul 22, 2013 11:48:27 AM MYT
|
|
||||||
-- IDEMPIERE-1042 Role Data Access
|
|
||||||
UPDATE AD_SysConfig SET Value='IDEMPIERE-528 Determine Zoom window depending on record',Updated=TO_TIMESTAMP('2013-07-22 11:48:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50003
|
|
||||||
;
|
|
||||||
|
|
||||||
-- Jul 22, 2013 11:50:07 AM MYT
|
-- Jul 22, 2013 11:50:07 AM MYT
|
||||||
-- IDEMPIERE-528 Determine Zoom window depending on record
|
-- IDEMPIERE-528 Determine Zoom window depending on record
|
||||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200066,210660,'Y','N','Y',0,'N',60,'Y',10,'N','N','Y','45deb4e7-a2a4-4aa5-9f32-05c2066e72cd','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_TIMESTAMP('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',469)
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200066,210660,'Y','N','Y',0,'N',60,'Y',10,'N','N','Y','45deb4e7-a2a4-4aa5-9f32-05c2066e72cd','Y','Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Name','Y',TO_TIMESTAMP('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-22 11:50:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',469)
|
||||||
|
|
|
@ -0,0 +1,500 @@
|
||||||
|
-- Jul 31, 2013 7:16:30 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAdvancedField',202574,'Advanced Field','Advanced Field','1ab899a3-278e-418a-b84e-fe5fc3f263b6',TO_TIMESTAMP('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-31 19:16:29','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:16:30 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202574 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:17:38 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,107,210679,'N','N','N',0,'N',1,'N',20,'N','N','Y','45c86144-67dc-487b-a761-54774dd34388','Y','IsAdvancedField','N','Advanced Field','Y',TO_TIMESTAMP('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-31 19:17:38','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202574,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:17:38 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=210679 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:17:51 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
ALTER TABLE AD_Field ADD COLUMN IsAdvancedField CHAR(1) DEFAULT 'N' CHECK (IsAdvancedField IN ('Y','N'))
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:18:37 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',107,1,'N','N',210679,400,'Y',202362,'N','D','Advanced Field','153209a5-5587-49dc-b587-51f236ebfd53','Y','N',100,0,TO_TIMESTAMP('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-31 19:18:36','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:18:37 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=202362 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=240, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200350
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200348
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=270,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200349
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13425
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=290,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200837
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54402
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54401
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200838
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200834
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13424
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62468
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53280
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200836
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200835
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=390,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=136
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:19:10 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=400,Updated=TO_TIMESTAMP('2013-07-31 19:19:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=139
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:20:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,CreatedBy,AD_Org_ID,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('IsAccessAdvanced',202575,'Access Advanced ','Access Advanced ','2977102f-1399-4824-ba24-2b0c902aed64',TO_TIMESTAMP('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-31 19:20:23','YYYY-MM-DD HH24:MI:SS'),100,0,100,'Y',0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:20:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202575 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:22:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,156,210680,'N','N','N',0,'N',1,'N',20,'N','N','Y','1827e3d1-f438-4d13-8162-1288ab34d2da','Y','IsAccessAdvanced','Y','Access Advanced ','Y',TO_TIMESTAMP('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-31 19:22:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',202575,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:22:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=210680 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:22:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
ALTER TABLE AD_Role ADD COLUMN IsAccessAdvanced CHAR(1) DEFAULT 'N' CHECK (IsAccessAdvanced IN ('Y','N'))
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:23:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,XPosition,AD_Client_ID,ColumnSpan) VALUES ('N',119,1,'N','N',210680,480,'Y',202366,'N','D','Access Advanced ','f1ae60d9-680d-4764-a54e-2de52d65310e','Y','N',100,0,TO_TIMESTAMP('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-31 19:23:25','YYYY-MM-DD HH24:MI:SS'),'Y',2,0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 31, 2013 7:23:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
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=202366 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 3:19:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET DisplayLogic='@IsMasterRole@=N',Updated=TO_TIMESTAMP('2013-08-01 15:19:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202362
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=142
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8343
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=140
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:44:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2013-08-06 14:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=141
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=280, IsDisplayed='Y', XPosition=2,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=290, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200071
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50168
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2013-08-06 14:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50178
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50176
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50170
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50174
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50173
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50172
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50175
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50169
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:45:24 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET SeqNo=390,Updated=TO_TIMESTAMP('2013-08-06 14:45:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50177
|
||||||
|
;
|
||||||
|
|
||||||
|
update ad_tab set isadvancedtab='N' where isadvancedtab='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW adempiere.ad_field_v AS
|
||||||
|
SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, f.name, f.description,
|
||||||
|
f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading,
|
||||||
|
f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql,
|
||||||
|
c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||||
|
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||||
|
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||||
|
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||||
|
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||||
|
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||||
|
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||||
|
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||||
|
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||||
|
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fg.name AS fieldgroup,
|
||||||
|
vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||||
|
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||||
|
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||||
|
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||||
|
c.formatpattern, f.isadvancedfield
|
||||||
|
FROM adempiere.ad_field f
|
||||||
|
JOIN adempiere.ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||||
|
LEFT JOIN adempiere.ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||||
|
LEFT JOIN adempiere.ad_column c ON f.ad_column_id = c.ad_column_id
|
||||||
|
JOIN adempiere.ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||||
|
LEFT JOIN adempiere.ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||||
|
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar
|
||||||
|
;
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW adempiere.ad_field_vt AS
|
||||||
|
SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id,
|
||||||
|
trl.name, trl.description, trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno,
|
||||||
|
f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, f.obscuretype,
|
||||||
|
c.columnname, c.columnsql, c.fieldlength, c.vformat,
|
||||||
|
COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent,
|
||||||
|
COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated,
|
||||||
|
COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout,
|
||||||
|
COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id,
|
||||||
|
COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id,
|
||||||
|
COALESCE(f.isalwaysupdateable, c.isalwaysupdateable) AS isalwaysupdateable,
|
||||||
|
COALESCE(f.readonlylogic, c.readonlylogic) AS readonlylogic,
|
||||||
|
COALESCE(f.mandatorylogic, c.mandatorylogic) AS mandatorylogic,
|
||||||
|
COALESCE(f.isupdateable, c.isupdateable) AS isupdateable, c.isencrypted AS isencryptedcolumn,
|
||||||
|
c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode,
|
||||||
|
f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault,
|
||||||
|
COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete,
|
||||||
|
COALESCE(f.isallowcopy, c.isallowcopy) AS isallowcopy, f.isdisplayedgrid, f.seqnogrid, c.seqnoselection,
|
||||||
|
f.xposition, f.columnspan, f.numlines, COALESCE(f.istoolbarbutton, c.istoolbarbutton) AS istoolbarbutton,
|
||||||
|
c.formatpattern, f.isadvancedfield
|
||||||
|
FROM adempiere.ad_field f
|
||||||
|
JOIN adempiere.ad_field_trl trl ON f.ad_field_id = trl.ad_field_id
|
||||||
|
JOIN adempiere.ad_tab t ON f.ad_tab_id = t.ad_tab_id
|
||||||
|
LEFT JOIN adempiere.ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id
|
||||||
|
LEFT JOIN adempiere.ad_fieldgroup_trl fgt ON f.ad_fieldgroup_id = fgt.ad_fieldgroup_id AND trl.ad_language::text = fgt.ad_language::text
|
||||||
|
LEFT JOIN adempiere.ad_column c ON f.ad_column_id = c.ad_column_id
|
||||||
|
JOIN adempiere.ad_table tbl ON c.ad_table_id = tbl.ad_table_id
|
||||||
|
LEFT JOIN adempiere.ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id)
|
||||||
|
WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 2:52:33 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Role SET IsAccessAdvanced='Y',Updated=TO_TIMESTAMP('2013-08-06 14:52:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID IN (0,102)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:23:57 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:23:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10318
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:24:26 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:24:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11024
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:24:51 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:24:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54238
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:25:22 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:25:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54680
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:25:56 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:25:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200948
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:26:01 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:26:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200949
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:26:43 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:26:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56981
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:27:19 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:27:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202366
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:06 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50003
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:09 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50004
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:13 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50002
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:23 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsInsertRecord='N', IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50001
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:32 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50008
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:41 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50005
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:28:45 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:28:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=50006
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=505
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:25 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=369
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:42 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=150
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:46 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=126
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:29:52 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:29:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=310
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:30:30 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:30:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200406
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:30:51 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53066
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:30:54 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:30:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53067
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:31:08 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2013-08-06 15:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200032
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:31:34 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:31:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5028
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:31:37 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:31:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5029
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:00 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5040
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:03 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200003
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:36 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5053
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:32:50 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=11252
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:04 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200858
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:13 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200855
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:18 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5054
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:21 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200849
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:26 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200851
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:29 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200852
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 6, 2013 3:33:34 PM COT
|
||||||
|
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
|
||||||
|
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-06 15:33:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200854
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('20130801160000_IDEMPIERE-1160.sql') FROM dual
|
||||||
|
;
|
|
@ -0,0 +1,292 @@
|
||||||
|
-- Aug 1, 2013 12:32:12 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID,IsSecure) VALUES (0,'N',0,493,210681,'N','N','N',0,'N',22,'N',19,'N','N','Y','01406b24-b108-4ef9-9533-688ceb8615c4','Y','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',TO_TIMESTAMP('2013-08-01 12:32:11','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-08-01 12:32:11','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',143,'N')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:32:12 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
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=210681 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:32:17 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
ALTER TABLE AD_PrintFormat ADD COLUMN AD_Window_ID NUMERIC(10) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:28 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan) VALUES ('N',425,36,'N','N',60458,220,'Y',202367,'N','D','AD_PrintFormat_UU','d856c59c-850d-4f62-98c2-b30edf36641b','N','N',100,0,TO_TIMESTAMP('2013-08-01 12:35:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-08-01 12:35:27','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:28 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
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=202367 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:29 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,EntityType,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,AD_Client_ID,ColumnSpan) VALUES ('N',425,22,'N','N',210681,230,'Y',202368,'N','The Window field identifies a unique Window in the system.','D','Data entry or display window','Window','588d3710-0a9b-497d-a5fc-f03a565b8b2d','Y','N',100,0,TO_TIMESTAMP('2013-08-01 12:35:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-08-01 12:35:28','YYYY-MM-DD HH24:MI:SS'),'Y',0,2)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:35:29 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
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=202368 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:36:10 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2013-08-01 12:36:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=5666
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=5662
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=5664
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=5659
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=5665
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=5652
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=8291
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=5655
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=5744
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=5656
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=5651
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=5663
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=5653
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y' WHERE AD_Field_ID=5762
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=140,IsDisplayedGrid='Y' WHERE AD_Field_ID=6503
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=150,IsDisplayedGrid='Y' WHERE AD_Field_ID=5657
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=160,IsDisplayedGrid='Y' WHERE AD_Field_ID=5661
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=170,IsDisplayedGrid='Y' WHERE AD_Field_ID=5654
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=180,IsDisplayedGrid='Y' WHERE AD_Field_ID=5658
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=190,IsDisplayedGrid='Y' WHERE AD_Field_ID=50179
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=200,IsDisplayedGrid='Y' WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=210,IsDisplayedGrid='Y' WHERE AD_Field_ID=52009
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=220,IsDisplayedGrid='Y' WHERE AD_Field_ID=5660
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:49 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNoGrid=230,IsDisplayedGrid='Y' WHERE AD_Field_ID=52008
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=202367
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=5666
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=5662
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=5664
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=5659
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=5665
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=5652
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=8291
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=5655
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5744
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=5656
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=5651
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=5663
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=5653
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=5762
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=6503
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=5657
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=5661
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=5654
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=5658
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=50179
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=52009
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=5660
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:37:56 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=52008
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 1, 2013 12:38:10 PM SGT
|
||||||
|
-- IDEMPIERE-1229 Purchase Order print format needs to be removed from SO window
|
||||||
|
UPDATE AD_Field SET IsSameLine='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-08-01 12:38:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202368
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308051548_IDEMPIERE-1229.sql') FROM dual
|
||||||
|
;
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- Aug 5, 2013 5:41:02 PM COT
|
||||||
|
-- IDEMPIERE-1025 Improve translation for custom tables
|
||||||
|
UPDATE AD_SysConfig SET Value='Y',Updated=TO_TIMESTAMP('2013-08-05 17:41:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=50031
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308051741_IDEMPIERE-1025.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
-- IDEMPIERE-1232 Zoom condition fixes
|
||||||
|
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType) VALUES ('AD_ZoomCondition_UU',202578,'AD_ZoomCondition_UU','AD_ZoomCondition_UU','7f562afd-d2c2-40cc-8f5f-fd71597f7621',TO_TIMESTAMP('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=202578 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Column_UU,IsUpdateable,ColumnName,Name,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (1.0,200066,210683,'N','N','N','N',36,'N',10,'N','4748d5ef-fbba-458e-8947-8676fce31f72','Y','AD_ZoomCondition_UU','AD_ZoomCondition_UU',TO_TIMESTAMP('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-08-09 08:16:19','YYYY-MM-DD HH24:MI:SS'),100,'N',0,'D','N',202578)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=210683 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:28 AM COT
|
||||||
|
ALTER TABLE AD_ZoomCondition ADD COLUMN AD_ZoomCondition_UU VARCHAR(36) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:16:29 AM COT
|
||||||
|
ALTER TABLE AD_ZoomCondition ADD CONSTRAINT AD_ZoomCondition_UU_idx UNIQUE (AD_ZoomCondition_UU)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:24:07 AM COT
|
||||||
|
UPDATE AD_ZoomCondition SET AD_ZoomCondition_UU='3962168d-caad-4057-b009-b5db798ce6d8' WHERE AD_ZoomCondition_ID=200001
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 8:24:07 AM COT
|
||||||
|
UPDATE AD_ZoomCondition SET AD_ZoomCondition_UU='9cc206f5-283f-428d-a3b5-9d8a7669d7e8' WHERE AD_ZoomCondition_ID=200002
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:35:21 AM COT
|
||||||
|
INSERT INTO AD_ZoomCondition (AD_Client_ID,AD_Org_ID,AD_Window_ID,AD_ZoomCondition_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,SeqNo,WhereClause,AD_Table_ID,Name,AD_ZoomCondition_UU) VALUES (0,0,53098,200003,TO_TIMESTAMP('2013-08-09 09:35:14','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2013-08-09 09:35:14','YYYY-MM-DD HH24:MI:SS'),100,10,'M_InOut.MovementType IN (''V-'')',319,'Return to Vendor','c4403f97-5fe3-4a70-a71a-006739d5d8cc')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:35:48 AM COT
|
||||||
|
INSERT INTO AD_ZoomCondition (AD_Client_ID,AD_Org_ID,AD_Window_ID,AD_ZoomCondition_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,SeqNo,WhereClause,AD_Table_ID,Name,AD_ZoomCondition_UU) VALUES (0,0,53097,200004,TO_TIMESTAMP('2013-08-09 09:35:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2013-08-09 09:35:47','YYYY-MM-DD HH24:MI:SS'),100,20,'M_InOut.MovementType IN (''C+'')',319,'Customer Return','c6c7fde3-2a9c-4eaf-8d22-fc2537de1678')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:38:48 AM COT
|
||||||
|
UPDATE AD_Tab SET Help='The Return to Vendor Line Tab defines the individual items in a Return to Vendor.', Name='Return to Vendor Line', Description='Return to Vendor Line',Updated=TO_TIMESTAMP('2013-08-09 09:38:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53277
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:39:06 AM COT
|
||||||
|
UPDATE AD_Tab SET Description='Optional Confirmations of Return to Vendor Lines',Updated=TO_TIMESTAMP('2013-08-09 09:39:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53278
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:40:05 AM COT
|
||||||
|
UPDATE AD_Field SET IsCentrallyMaintained='N', Help='The Return to Vendor', Description='Return to Vendor Document', Name='Return to Vendor',Updated=TO_TIMESTAMP('2013-08-09 09:40:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57900
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:40:45 AM COT
|
||||||
|
UPDATE AD_Tab SET Help='The Customer Return Line Tab defines the individual items in a Customer Return.', Name='Customer Return Line', Description='Customer Return Line',Updated=TO_TIMESTAMP('2013-08-09 09:40:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53272
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 9, 2013 9:41:08 AM COT
|
||||||
|
UPDATE AD_Field SET IsCentrallyMaintained='N', Help='The Customer Return', Description='Customer Return Document', Name='Customer Return',Updated=TO_TIMESTAMP('2013-08-09 09:41:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57761
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308090826_IDEMPIERE-1232.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Aug 12, 2013 4:21:30 PM MYT
|
||||||
|
-- IDEMPIERE-1207 Fixed inconsistent error message for well known database exception
|
||||||
|
UPDATE AD_Column SET DefaultValue='@#AD_Client_ID@',Updated=TO_TIMESTAMP('2013-08-12 16:21:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5163
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 12, 2013 4:21:53 PM MYT
|
||||||
|
-- IDEMPIERE-1207 Fixed inconsistent error message for well known database exception
|
||||||
|
UPDATE AD_Column SET DefaultValue='@#AD_Org_ID@',Updated=TO_TIMESTAMP('2013-08-12 16:21:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5164
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308120824_IDEMPIERE-1255.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- Aug 12, 2013 5:52:23 PM MYT
|
||||||
|
-- IDEMPIERE-1207 Fixed inconsistent error message for well known database exception
|
||||||
|
UPDATE AD_Column SET IsUpdateable='N', DefaultValue=NULL,Updated=TO_TIMESTAMP('2013-08-12 17:52:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2705
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308120955_IDEMPIERE-1260.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
-- Jul 22, 2013 8:56:39 PM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,808,210662,'N','N','N',0,'N',22,'N',30,'N','N','Y','c5983338-dac3-4173-ac05-81bc1bdb1ce7','N','M_MatchInv_ID','Match Shipment/Receipt to Invoice','Match Invoice','N',TO_TIMESTAMP('2013-07-22 20:56:37','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-22 20:56:37','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',1689)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 22, 2013 8:56:39 PM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
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=210662 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 22, 2013 8:56:45 PM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
ALTER TABLE M_CostDetail ADD COLUMN M_MatchInv_ID NUMERIC(10) DEFAULT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
DROP VIEW m_costmovement_v;
|
||||||
|
|
||||||
|
CREATE VIEW m_costmovement_v AS
|
||||||
|
SELECT a.ad_client_id, a.ad_org_id, b.c_acctschema_id, a.m_costhistory_id, a.m_costtype_id, a.m_costelement_id, a.m_attributesetinstance_id,
|
||||||
|
b.m_product_id, a.oldqty, a.newqty, a.oldcostprice, a.newcostprice, a.oldcqty, a.newcqty, a.oldcamt, a.newcamt, b.qty, b.amt, b.deltaqty,
|
||||||
|
b.deltaamt, b.c_orderline_id, b.m_inoutline_id, b.c_invoiceline_id, b.m_movementline_id, b.m_inventoryline_id, b.m_productionline_id,
|
||||||
|
b.c_projectissue_id, b.m_matchinv_id, a.m_costdetail_id, b.description, a.created, a.createdby, a.updated, a.updatedby, a.isactive
|
||||||
|
FROM m_costhistory a
|
||||||
|
JOIN m_costdetail b ON a.m_costdetail_id = b.m_costdetail_id
|
||||||
|
ORDER BY a.m_costhistory_id
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:55:31 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,AD_Client_ID,EntityType,IsEncrypted,AD_Element_ID) VALUES (0,'N',1,200002,210663,'N','N','N',0,'N',22,'N',30,'N','N','Y','10f7d192-2c18-497c-bcf3-548f8546fd41','N','M_MatchInv_ID','Match Shipment/Receipt to Invoice','Match Invoice','N',TO_TIMESTAMP('2013-07-23 07:55:29','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-07-23 07:55:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N',0,'D','N',1689)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:55:31 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
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=210663 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:56:36 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
INSERT INTO AD_Field (NumLines,SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry,AD_Client_ID,ColumnSpan) VALUES (1,0,'N',200000,0,'N','N',210663,270,'Y',202340,'N','D','Match Shipment/Receipt to Invoice','Match Invoice','Y','N','624749f1-6544-45d7-a6b7-cebc6bcdfc93',100,0,TO_TIMESTAMP('2013-07-23 07:56:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-23 07:56:34','YYYY-MM-DD HH24:MI:SS'),'Y','Y',270,1,'N',0,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:56:36 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
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=202340 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 23, 2013 7:57:03 AM MYT
|
||||||
|
-- IDEMPIERE-1188 Invoice Price Variance for Average PO Costing
|
||||||
|
UPDATE AD_Field SET SeqNo=270, ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-23 07:57:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202340
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308140925_IDEMPIERE-1188.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Aug 14, 2013 9:52:38 AM COT
|
||||||
|
-- IDEMPIERE-1219 Error message when saving 2 default Tax Rates are not translated
|
||||||
|
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','Only one @C_Tax_ID@ per @C_TaxCategory_ID@ can be marked as Default!',200220,'D','84a60603-8500-40be-a90f-f6c1bc16e827','OnlyOneTaxPerCategoryMarkedDefault','Y',TO_TIMESTAMP('2013-08-14 09:52:37','YYYY-MM-DD HH24:MI:SS'),100,100,0,TO_TIMESTAMP('2013-08-14 09:52:37','YYYY-MM-DD HH24:MI:SS'),0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 9:52:38 AM COT
|
||||||
|
-- IDEMPIERE-1219 Error message when saving 2 default Tax Rates are not translated
|
||||||
|
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=200220 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('201308141001_IDEMPIERE-1269.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
-- Aug 14, 2013 12:20:12 PM IST
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2013-08-14 12:20:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2053
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 12:22:49 PM IST
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=189,Updated=TO_TIMESTAMP('2013-08-14 12:22:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2223
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 12:34:17 PM IST
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2013-08-14 12:34:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3409
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 6:06:28 PM MYT
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2013-08-14 18:06:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1129
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 14, 2013 6:10:37 PM MYT
|
||||||
|
-- IDEMPIERE-1243 It shall not be possible to change Organization on the Order Line
|
||||||
|
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2013-08-14 18:10:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3388
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308141244_IDEMPIERE-1243.sql') FROM dual
|
||||||
|
;
|
|
@ -0,0 +1,95 @@
|
||||||
|
-- Jul 16, 2013 5:50:07 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Ref_List SET Value='E',Updated=TO_TIMESTAMP('2013-07-16 17:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=200046
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:56:21 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_BroadcastMessage SET BroadcastFrequency='E' WHERE BroadcastFrequency='U'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:54:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,Description,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID,EntityType) VALUES (200156,200020,'Repeat it until the message has been acknowledged','Until Acknowledge','d6b87260-502d-4984-b9e3-8daafde1acd9','A',TO_TIMESTAMP('2013-07-16 17:54:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-16 17:54:08','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:54:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
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=200156 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:56:21 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,Description,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID,EntityType) VALUES (200157,200020,'Repeat it until the message expires or until it has been acknowledged, whatever happens first','Until Expiration or Acknowledge','aa345f63-dfbe-4d18-aae4-e5ed06cd4407','O',TO_TIMESTAMP('2013-07-16 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-07-16 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0,'D')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 16, 2013 5:56:21 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
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=200157 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)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:50:32 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET IsActive='N',Updated=TO_TIMESTAMP('2013-07-17 08:50:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200882
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:50:51 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2013-07-17 08:50:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200881
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:50:59 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET IsDisplayed='N',Updated=TO_TIMESTAMP('2013-07-17 08:50:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200881
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 8:54:47 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET DisplayLogic='@BroadcastType@!''I''',Updated=TO_TIMESTAMP('2013-07-17 08:54:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200873
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 9:14:17 AM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET DisplayLogic='@BroadcastFrequency@=''E'' | @BroadcastFrequency@=''O''',Updated=TO_TIMESTAMP('2013-07-17 09:14:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200879
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 3:18:50 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,EntityType,Name,Code,Type,AD_Val_Rule_UU,CreatedBy,UpdatedBy,Updated,Created,AD_Org_ID,IsActive,AD_Client_ID) VALUES (200051,'D','AD_BroadcastMessage - Combination','AD_Ref_List.Value NOT IN(SELECT CASE WHEN AD_Client_ID<>0 THEN ''E'' ELSE ''1'' END FROM AD_Client WHERE AD_Client_ID=@#AD_Client_ID@)','S','9c09aaee-c787-4f30-900e-25412968812a',100,100,TO_TIMESTAMP('2013-07-17 15:18:49','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-07-17 15:18:49','YYYY-MM-DD HH24:MI:SS'),0,'Y',0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 3:19:09 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET AD_Val_Rule_ID=200051, IsToolbarButton='N',Updated=TO_TIMESTAMP('2013-07-17 15:19:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200989
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 4:29:38 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET Help='<p>1. Just Once : Message will be broadcasted one time. </p>
|
||||||
|
<p><span style="line-height: 1.6em;">2. Until Acknowledge : Repeat it until the message has been acknowledged. </span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">3. </span><span style="line-height: 1.6em;">Until Expiration or Acknowledge : Repeat it until the message expires or until it has been acknowledged, whatever happens first.</span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">4. </span><span style="line-height: 1.6em;">Until Expiration : Repeat it until message expiration value.</span></p>
|
||||||
|
',Updated=TO_TIMESTAMP('2013-07-17 16:29:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200873
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 4:29:49 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Column SET Help='<p>1. Just Once : Message will be broadcasted one time. </p>
|
||||||
|
<p><span style="line-height: 1.6em;">2. Until Acknowledge : Repeat it until the message has been acknowledged. </span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">3. </span><span style="line-height: 1.6em;">Until Expiration or Acknowledge : Repeat it until the message expires or until it has been acknowledged, whatever happens first.</span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">4. </span><span style="line-height: 1.6em;">Until Expiration : Repeat it until message expiration value.</span></p>
|
||||||
|
',Updated=TO_TIMESTAMP('2013-07-17 16:29:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200984
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Jul 17, 2013 4:29:49 PM COT
|
||||||
|
-- IDEMPIERE-1138 Broadcast Message Problems
|
||||||
|
UPDATE AD_Field SET Name='Broadcast Frequency', Description='How Many Times Message Should be Broadcasted', Help='<p>1. Just Once : Message will be broadcasted one time. </p>
|
||||||
|
<p><span style="line-height: 1.6em;">2. Until Acknowledge : Repeat it until the message has been acknowledged. </span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">3. </span><span style="line-height: 1.6em;">Until Expiration or Acknowledge : Repeat it until the message expires or until it has been acknowledged, whatever happens first.</span></p>
|
||||||
|
<p><span style="line-height: 1.6em;">4. </span><span style="line-height: 1.6em;">Until Expiration : Repeat it until message expiration value.</span></p>
|
||||||
|
' WHERE AD_Column_ID=200984 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('20131707164800_IDEMPIERE-1138.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class CalloutPackage extends CalloutEngine
|
||||||
String dutiesShipperAccount = null;
|
String dutiesShipperAccount = null;
|
||||||
MInOut inout = new MInOut(ctx, inout_id, null);
|
MInOut inout = new MInOut(ctx, inout_id, null);
|
||||||
|
|
||||||
if (inout.getFreightCharges().equals(MInOut.FREIGHTCHARGES_Prepaid) || inout.getFreightCharges().equals(MInOut.FREIGHTCHARGES_PrepaidAndBill))
|
if (MInOut.FREIGHTCHARGES_Prepaid.equals(inout.getFreightCharges()) || MInOut.FREIGHTCHARGES_PrepaidAndBill.equals(inout.getFreightCharges()))
|
||||||
{
|
{
|
||||||
// 2. For charging to Velocity
|
// 2. For charging to Velocity
|
||||||
// ** If M_InOut.FreightCharges In ( D_PP, E_PPB) -- prepaid or prepaid and bill
|
// ** If M_InOut.FreightCharges In ( D_PP, E_PPB) -- prepaid or prepaid and bill
|
||||||
|
|
|
@ -29,11 +29,11 @@ import org.compiere.util.Env;
|
||||||
*/
|
*/
|
||||||
public class MBroadcastMessage extends X_AD_BroadcastMessage
|
public class MBroadcastMessage extends X_AD_BroadcastMessage
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -6390563897422379468L;
|
private static final long serialVersionUID = 1908264699133879072L;
|
||||||
|
|
||||||
static private CCache<Integer,MBroadcastMessage> s_cache = new CCache<Integer,MBroadcastMessage>("AD_BroadcastMessage", 30, 60);
|
static private CCache<Integer,MBroadcastMessage> s_cache = new CCache<Integer,MBroadcastMessage>("AD_BroadcastMessage", 30, 60);
|
||||||
|
|
||||||
public MBroadcastMessage(Properties ctx, int AD_BroadcastMessage_ID,
|
public MBroadcastMessage(Properties ctx, int AD_BroadcastMessage_ID,
|
||||||
|
@ -99,4 +99,21 @@ public class MBroadcastMessage extends X_AD_BroadcastMessage
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* Before Save
|
||||||
|
* @param newRecord new
|
||||||
|
* @return save
|
||||||
|
*/
|
||||||
|
protected boolean beforeSave (boolean newRecord)
|
||||||
|
{
|
||||||
|
if (BROADCASTTYPE_Immediate.equals(getBroadcastType())) {
|
||||||
|
setBroadcastFrequency(BROADCASTFREQUENCY_JustOnce);
|
||||||
|
}
|
||||||
|
boolean logack =
|
||||||
|
( BROADCASTFREQUENCY_UntilAcknowledge.equals(getBroadcastFrequency())
|
||||||
|
|| BROADCASTFREQUENCY_UntilExpirationOrAcknowledge.equals(getBroadcastFrequency()));
|
||||||
|
setLogAcknowledge(logack);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,8 +80,6 @@ public class UUIDGenerator extends SvrProcess {
|
||||||
tableName = "%";
|
tableName = "%";
|
||||||
else
|
else
|
||||||
tableName = tableName.trim();
|
tableName = tableName.trim();
|
||||||
if (!tableName.endsWith("%"))
|
|
||||||
tableName = tableName + "%";
|
|
||||||
String sql = "SELECT AD_Table_ID, TableName FROM AD_Table WHERE TableName LIKE ? AND IsView = 'N' AND IsActive='Y' ORDER BY TableName";
|
String sql = "SELECT AD_Table_ID, TableName FROM AD_Table WHERE TableName LIKE ? AND IsView = 'N' AND IsActive='Y' ORDER BY TableName";
|
||||||
PreparedStatement stmt = null;
|
PreparedStatement stmt = null;
|
||||||
ResultSet rs = null;
|
ResultSet rs = null;
|
||||||
|
@ -219,6 +217,7 @@ public class UUIDGenerator extends SvrProcess {
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
if (AD_Column_ID > 0) {
|
if (AD_Column_ID > 0) {
|
||||||
int recordId = rs.getInt(1);
|
int recordId = rs.getInt(1);
|
||||||
|
// this line is to avoid users generating official UUIDs - comment it to do official migration script work
|
||||||
if (recordId > MTable.MAX_OFFICIAL_ID) {
|
if (recordId > MTable.MAX_OFFICIAL_ID) {
|
||||||
UUID uuid = UUID.randomUUID();
|
UUID uuid = UUID.randomUUID();
|
||||||
DB.executeUpdateEx(updateSQL.toString(),new Object[]{uuid.toString(), recordId}, trx.getTrxName());
|
DB.executeUpdateEx(updateSQL.toString(),new Object[]{uuid.toString(), recordId}, trx.getTrxName());
|
||||||
|
|
|
@ -37,6 +37,7 @@ import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.exceptions.DBException;
|
import org.adempiere.exceptions.DBException;
|
||||||
import org.compiere.Adempiere;
|
import org.compiere.Adempiere;
|
||||||
|
import org.compiere.model.MTable;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.DisplayType;
|
import org.compiere.util.DisplayType;
|
||||||
|
@ -601,9 +602,12 @@ public class ModelClassGenerator
|
||||||
String columnName)
|
String columnName)
|
||||||
{
|
{
|
||||||
StringBuilder retValue = new StringBuilder();
|
StringBuilder retValue = new StringBuilder();
|
||||||
|
if (AD_Reference_ID <= MTable.MAX_OFFICIAL_ID)
|
||||||
|
{
|
||||||
retValue.append("\n\t/** ").append(columnName).append(" AD_Reference_ID=").append(AD_Reference_ID) .append(" */")
|
retValue.append("\n\t/** ").append(columnName).append(" AD_Reference_ID=").append(AD_Reference_ID) .append(" */")
|
||||||
.append("\n\tpublic static final int ").append(columnName.toUpperCase())
|
.append("\n\tpublic static final int ").append(columnName.toUpperCase())
|
||||||
.append("_AD_Reference_ID=").append(AD_Reference_ID).append(";");
|
.append("_AD_Reference_ID=").append(AD_Reference_ID).append(";");
|
||||||
|
}
|
||||||
//
|
//
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
StringBuilder values = new StringBuilder("Reference_ID=")
|
StringBuilder values = new StringBuilder("Reference_ID=")
|
||||||
|
|
|
@ -18,9 +18,12 @@ package org.compiere.acct;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import java.sql.Savepoint;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.adempiere.exceptions.AverageCostingZeroQtyException;
|
||||||
import org.compiere.model.MAccount;
|
import org.compiere.model.MAccount;
|
||||||
import org.compiere.model.MAcctSchema;
|
import org.compiere.model.MAcctSchema;
|
||||||
import org.compiere.model.MAcctSchemaElement;
|
import org.compiere.model.MAcctSchemaElement;
|
||||||
|
@ -32,7 +35,9 @@ import org.compiere.model.MInvoice;
|
||||||
import org.compiere.model.MInvoiceLine;
|
import org.compiere.model.MInvoiceLine;
|
||||||
import org.compiere.model.MMatchInv;
|
import org.compiere.model.MMatchInv;
|
||||||
import org.compiere.model.ProductCost;
|
import org.compiere.model.ProductCost;
|
||||||
|
import org.compiere.model.X_M_Cost;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.Trx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Post MatchInv Documents.
|
* Post MatchInv Documents.
|
||||||
|
@ -272,20 +277,7 @@ public class Doc_MatchInv extends Doc
|
||||||
|
|
||||||
// Invoice Price Variance difference
|
// Invoice Price Variance difference
|
||||||
BigDecimal ipv = cr.getAcctBalance().add(dr.getAcctBalance()).negate();
|
BigDecimal ipv = cr.getAcctBalance().add(dr.getAcctBalance()).negate();
|
||||||
if (ipv.signum() != 0)
|
processInvoicePriceVariance(as, fact, ipv);
|
||||||
{
|
|
||||||
FactLine pv = fact.createLine(null,
|
|
||||||
m_pc.getAccount(ProductCost.ACCTTYPE_P_IPV, as),
|
|
||||||
as.getC_Currency_ID(), ipv);
|
|
||||||
pv.setC_Activity_ID(m_invoiceLine.getC_Activity_ID());
|
|
||||||
pv.setC_Campaign_ID(m_invoiceLine.getC_Campaign_ID());
|
|
||||||
pv.setC_Project_ID(m_invoiceLine.getC_Project_ID());
|
|
||||||
pv.setC_ProjectPhase_ID(m_invoiceLine.getC_ProjectPhase_ID());
|
|
||||||
pv.setC_ProjectTask_ID(m_invoiceLine.getC_ProjectTask_ID());
|
|
||||||
pv.setC_UOM_ID(m_invoiceLine.getC_UOM_ID());
|
|
||||||
pv.setUser1_ID(m_invoiceLine.getUser1_ID());
|
|
||||||
pv.setUser2_ID(m_invoiceLine.getUser2_ID());
|
|
||||||
}
|
|
||||||
if (log.isLoggable(Level.FINE)) log.fine("IPV=" + ipv + "; Balance=" + fact.getSourceBalance());
|
if (log.isLoggable(Level.FINE)) log.fine("IPV=" + ipv + "; Balance=" + fact.getSourceBalance());
|
||||||
|
|
||||||
String error = createMatchInvCostDetail(as);
|
String error = createMatchInvCostDetail(as);
|
||||||
|
@ -310,6 +302,90 @@ public class Doc_MatchInv extends Doc
|
||||||
return facts;
|
return facts;
|
||||||
} // createFact
|
} // createFact
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param as
|
||||||
|
* @param fact
|
||||||
|
* @param ipv
|
||||||
|
*/
|
||||||
|
protected void processInvoicePriceVariance(MAcctSchema as, Fact fact,
|
||||||
|
BigDecimal ipv) {
|
||||||
|
if (ipv.signum() == 0) return;
|
||||||
|
|
||||||
|
FactLine pv = fact.createLine(null,
|
||||||
|
m_pc.getAccount(ProductCost.ACCTTYPE_P_IPV, as),
|
||||||
|
as.getC_Currency_ID(), ipv);
|
||||||
|
pv.setC_Activity_ID(m_invoiceLine.getC_Activity_ID());
|
||||||
|
pv.setC_Campaign_ID(m_invoiceLine.getC_Campaign_ID());
|
||||||
|
pv.setC_Project_ID(m_invoiceLine.getC_Project_ID());
|
||||||
|
pv.setC_ProjectPhase_ID(m_invoiceLine.getC_ProjectPhase_ID());
|
||||||
|
pv.setC_ProjectTask_ID(m_invoiceLine.getC_ProjectTask_ID());
|
||||||
|
pv.setC_UOM_ID(m_invoiceLine.getC_UOM_ID());
|
||||||
|
pv.setUser1_ID(m_invoiceLine.getUser1_ID());
|
||||||
|
pv.setUser2_ID(m_invoiceLine.getUser2_ID());
|
||||||
|
pv.setM_Product_ID(m_invoiceLine.getM_Product_ID());
|
||||||
|
|
||||||
|
MMatchInv matchInv = (MMatchInv)getPO();
|
||||||
|
Trx trx = Trx.get(getTrxName(), false);
|
||||||
|
Savepoint savepoint = null;
|
||||||
|
boolean zeroQty = false;
|
||||||
|
try {
|
||||||
|
savepoint = trx.setSavepoint(null);
|
||||||
|
|
||||||
|
if (!MCostDetail.createMatchInvoice(as, m_invoiceLine.getAD_Org_ID(),
|
||||||
|
m_invoiceLine.getM_Product_ID(), m_invoiceLine.getM_AttributeSetInstance_ID(),
|
||||||
|
matchInv.getM_MatchInv_ID(), 0,
|
||||||
|
ipv, BigDecimal.ZERO, "Invoice Price Variance", getTrxName())) {
|
||||||
|
throw new RuntimeException("Failed to create cost detail record.");
|
||||||
|
}
|
||||||
|
} catch (SQLException e) {
|
||||||
|
throw new RuntimeException(e.getLocalizedMessage(), e);
|
||||||
|
} catch (AverageCostingZeroQtyException e) {
|
||||||
|
zeroQty = true;
|
||||||
|
try {
|
||||||
|
trx.rollback(savepoint);
|
||||||
|
savepoint = null;
|
||||||
|
} catch (SQLException e1) {
|
||||||
|
throw new RuntimeException(e1.getLocalizedMessage(), e1);
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
if (savepoint != null) {
|
||||||
|
try {
|
||||||
|
trx.releaseSavepoint(savepoint);
|
||||||
|
} catch (SQLException e) {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String costingMethod = m_pc.getProduct().getCostingMethod(as);
|
||||||
|
if (X_M_Cost.COSTINGMETHOD_AveragePO.equals(costingMethod)) {
|
||||||
|
MAccount account = zeroQty ? m_pc.getAccount(ProductCost.ACCTTYPE_P_AverageCostVariance, as) : m_pc.getAccount(ProductCost.ACCTTYPE_P_Asset, as);
|
||||||
|
|
||||||
|
FactLine line = fact.createLine(null,
|
||||||
|
m_pc.getAccount(ProductCost.ACCTTYPE_P_IPV, as),
|
||||||
|
as.getC_Currency_ID(), ipv.negate());
|
||||||
|
line.setC_Activity_ID(m_invoiceLine.getC_Activity_ID());
|
||||||
|
line.setC_Campaign_ID(m_invoiceLine.getC_Campaign_ID());
|
||||||
|
line.setC_Project_ID(m_invoiceLine.getC_Project_ID());
|
||||||
|
line.setC_ProjectPhase_ID(m_invoiceLine.getC_ProjectPhase_ID());
|
||||||
|
line.setC_ProjectTask_ID(m_invoiceLine.getC_ProjectTask_ID());
|
||||||
|
line.setC_UOM_ID(m_invoiceLine.getC_UOM_ID());
|
||||||
|
line.setUser1_ID(m_invoiceLine.getUser1_ID());
|
||||||
|
line.setUser2_ID(m_invoiceLine.getUser2_ID());
|
||||||
|
line.setM_Product_ID(m_invoiceLine.getM_Product_ID());
|
||||||
|
|
||||||
|
line = fact.createLine(null, account, as.getC_Currency_ID(), ipv);
|
||||||
|
line.setC_Activity_ID(m_invoiceLine.getC_Activity_ID());
|
||||||
|
line.setC_Campaign_ID(m_invoiceLine.getC_Campaign_ID());
|
||||||
|
line.setC_Project_ID(m_invoiceLine.getC_Project_ID());
|
||||||
|
line.setC_ProjectPhase_ID(m_invoiceLine.getC_ProjectPhase_ID());
|
||||||
|
line.setC_ProjectTask_ID(m_invoiceLine.getC_ProjectTask_ID());
|
||||||
|
line.setC_UOM_ID(m_invoiceLine.getC_UOM_ID());
|
||||||
|
line.setUser1_ID(m_invoiceLine.getUser1_ID());
|
||||||
|
line.setUser2_ID(m_invoiceLine.getUser2_ID());
|
||||||
|
line.setM_Product_ID(m_invoiceLine.getM_Product_ID());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Verify if the posting involves two or more organizations
|
/** Verify if the posting involves two or more organizations
|
||||||
@return true if there are more than one org involved on the posting
|
@return true if there are more than one org involved on the posting
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -538,6 +538,8 @@ public abstract class Convert
|
||||||
return true;
|
return true;
|
||||||
if (uppStmt.startsWith("UPDATE C_ACCTPROCESSOR SET DATENEXTRUN"))
|
if (uppStmt.startsWith("UPDATE C_ACCTPROCESSOR SET DATENEXTRUN"))
|
||||||
return true;
|
return true;
|
||||||
|
if (uppStmt.startsWith("UPDATE R_REQUESTPROCESSOR SET DATELASTRUN"))
|
||||||
|
return true;
|
||||||
// Don't log DELETE FROM Some_Table WHERE AD_Table_ID=? AND Record_ID=?
|
// Don't log DELETE FROM Some_Table WHERE AD_Table_ID=? AND Record_ID=?
|
||||||
if (uppStmt.startsWith("DELETE FROM ") && uppStmt.endsWith(" WHERE AD_TABLE_ID=? AND RECORD_ID=?"))
|
if (uppStmt.startsWith("DELETE FROM ") && uppStmt.endsWith(" WHERE AD_TABLE_ID=? AND RECORD_ID=?"))
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -433,6 +433,15 @@ public class GridField
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//check tab context
|
||||||
|
if (checkContext && getGridTab() != null)
|
||||||
|
{
|
||||||
|
if (getGridTab().isReadOnly())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Not Updateable - only editable if new updateable row
|
// Not Updateable - only editable if new updateable row
|
||||||
if (!m_vo.IsUpdateable && !m_inserting)
|
if (!m_vo.IsUpdateable && !m_inserting)
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,14 +56,24 @@ public class GridFieldVO implements Serializable
|
||||||
public static String getSQL (Properties ctx)
|
public static String getSQL (Properties ctx)
|
||||||
{
|
{
|
||||||
// IsActive is part of View
|
// IsActive is part of View
|
||||||
|
MRole role = MRole.getDefault(ctx, true);
|
||||||
|
String advancedFilter=" AND IsAdvancedField='N' ";
|
||||||
StringBuilder sql;
|
StringBuilder sql;
|
||||||
if (!Env.isBaseLanguage(ctx, "AD_Tab"))
|
if (!Env.isBaseLanguage(ctx, "AD_Tab")){
|
||||||
sql = new StringBuilder("SELECT * FROM AD_Field_vt WHERE AD_Tab_ID=?")
|
sql = new StringBuilder("SELECT * FROM AD_Field_vt WHERE AD_Tab_ID=?")
|
||||||
.append(" AND AD_Language='" + Env.getAD_Language(ctx) + "'")
|
.append(" AND AD_Language='" + Env.getAD_Language(ctx) + "'");
|
||||||
.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
if (!role.isAccessAdvanced()) {
|
||||||
else
|
sql.append(advancedFilter);
|
||||||
sql = new StringBuilder("SELECT * FROM AD_Field_v WHERE AD_Tab_ID=?")
|
}
|
||||||
.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
sql.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
sql = new StringBuilder("SELECT * FROM AD_Field_v WHERE AD_Tab_ID=?");
|
||||||
|
if (!role.isAccessAdvanced()) {
|
||||||
|
sql.append(advancedFilter);
|
||||||
|
}
|
||||||
|
sql.append(" ORDER BY IsDisplayed DESC, SeqNo");
|
||||||
|
}
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
} // getSQL
|
} // getSQL
|
||||||
|
|
||||||
|
|
|
@ -370,13 +370,26 @@ public class GridTabVO implements Evaluatee, Serializable
|
||||||
+ " AND ce.AD_Field_ID IS NULL "
|
+ " AND ce.AD_Field_ID IS NULL "
|
||||||
+ " AND ce.ASP_Status = 'H')"; // Hide
|
+ " AND ce.ASP_Status = 'H')"; // Hide
|
||||||
// View only returns IsActive='Y'
|
// View only returns IsActive='Y'
|
||||||
String sql = "SELECT * FROM AD_Tab_v WHERE AD_Window_ID=?"
|
MRole role = MRole.getDefault(ctx, true);
|
||||||
+ ASPFilter + " ORDER BY SeqNo";
|
String advancedFilter=" AND IsAdvancedTab='N' ";
|
||||||
if (!Env.isBaseLanguage(ctx, "AD_Window"))
|
StringBuilder sql;
|
||||||
sql = "SELECT * FROM AD_Tab_vt WHERE AD_Window_ID=?"
|
if (!Env.isBaseLanguage(ctx, "AD_Window")) {
|
||||||
+ " AND AD_Language='" + Env.getAD_Language(ctx) + "'"
|
sql = new StringBuilder( "SELECT * FROM AD_Tab_vt WHERE AD_Window_ID=?");
|
||||||
+ ASPFilter + " ORDER BY SeqNo";
|
sql.append(" AND AD_Language='" + Env.getAD_Language(ctx) + "'")
|
||||||
return sql;
|
.append(ASPFilter);
|
||||||
|
if (!role.isAccessAdvanced()) {
|
||||||
|
sql.append(advancedFilter);
|
||||||
|
}
|
||||||
|
sql.append(" ORDER BY SeqNo");
|
||||||
|
}else{
|
||||||
|
sql = new StringBuilder("SELECT * FROM AD_Tab_v WHERE AD_Window_ID=?");
|
||||||
|
sql.append(ASPFilter) ;
|
||||||
|
if (!role.isAccessAdvanced()) {
|
||||||
|
sql.append(advancedFilter);
|
||||||
|
}
|
||||||
|
sql.append(" ORDER BY SeqNo");
|
||||||
|
}
|
||||||
|
return sql.toString();
|
||||||
} // getSQL
|
} // getSQL
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -313,6 +313,15 @@ public interface I_AD_Field
|
||||||
*/
|
*/
|
||||||
public boolean isActive();
|
public boolean isActive();
|
||||||
|
|
||||||
|
/** Column name IsAdvancedField */
|
||||||
|
public static final String COLUMNNAME_IsAdvancedField = "IsAdvancedField";
|
||||||
|
|
||||||
|
/** Set IsAdvancedField */
|
||||||
|
public void setIsAdvancedField (boolean IsAdvancedField);
|
||||||
|
|
||||||
|
/** Get IsAdvancedField */
|
||||||
|
public boolean isAdvancedField();
|
||||||
|
|
||||||
/** Column name IsAllowCopy */
|
/** Column name IsAllowCopy */
|
||||||
public static final String COLUMNNAME_IsAllowCopy = "IsAllowCopy";
|
public static final String COLUMNNAME_IsAllowCopy = "IsAllowCopy";
|
||||||
|
|
||||||
|
|
|
@ -174,6 +174,21 @@ public interface I_AD_PrintFormat
|
||||||
|
|
||||||
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException;
|
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name AD_Window_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID";
|
||||||
|
|
||||||
|
/** Set Window.
|
||||||
|
* Data entry or display window
|
||||||
|
*/
|
||||||
|
public void setAD_Window_ID (int AD_Window_ID);
|
||||||
|
|
||||||
|
/** Get Window.
|
||||||
|
* Data entry or display window
|
||||||
|
*/
|
||||||
|
public int getAD_Window_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name Args */
|
/** Column name Args */
|
||||||
public static final String COLUMNNAME_Args = "Args";
|
public static final String COLUMNNAME_Args = "Args";
|
||||||
|
|
||||||
|
|
|
@ -300,6 +300,15 @@ public interface I_AD_Role
|
||||||
*/
|
*/
|
||||||
public String getDescription();
|
public String getDescription();
|
||||||
|
|
||||||
|
/** Column name IsAccessAdvanced */
|
||||||
|
public static final String COLUMNNAME_IsAccessAdvanced = "IsAccessAdvanced";
|
||||||
|
|
||||||
|
/** Set IsAccessAdvanced */
|
||||||
|
public void setIsAccessAdvanced (boolean IsAccessAdvanced);
|
||||||
|
|
||||||
|
/** Get IsAccessAdvanced */
|
||||||
|
public boolean isAccessAdvanced();
|
||||||
|
|
||||||
/** Column name IsAccessAllOrgs */
|
/** Column name IsAccessAllOrgs */
|
||||||
public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs";
|
public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs";
|
||||||
|
|
||||||
|
|
|
@ -350,6 +350,21 @@ public interface I_M_CostDetail
|
||||||
|
|
||||||
public org.compiere.model.I_M_InventoryLine getM_InventoryLine() throws RuntimeException;
|
public org.compiere.model.I_M_InventoryLine getM_InventoryLine() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name M_MatchInv_ID */
|
||||||
|
public static final String COLUMNNAME_M_MatchInv_ID = "M_MatchInv_ID";
|
||||||
|
|
||||||
|
/** Set Match Invoice.
|
||||||
|
* Match Shipment/Receipt to Invoice
|
||||||
|
*/
|
||||||
|
public void setM_MatchInv_ID (int M_MatchInv_ID);
|
||||||
|
|
||||||
|
/** Get Match Invoice.
|
||||||
|
* Match Shipment/Receipt to Invoice
|
||||||
|
*/
|
||||||
|
public int getM_MatchInv_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_M_MatchInv getM_MatchInv() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name M_MovementLine_ID */
|
/** Column name M_MovementLine_ID */
|
||||||
public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID";
|
public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID";
|
||||||
|
|
||||||
|
|
|
@ -370,6 +370,10 @@ public class MColumn extends X_AD_Column
|
||||||
{
|
{
|
||||||
if (!success)
|
if (!success)
|
||||||
return success;
|
return success;
|
||||||
|
|
||||||
|
/* Fields must inherit translation from element, not from column
|
||||||
|
* changing it here is useless as SynchronizeTerminology get trl from column */
|
||||||
|
/*
|
||||||
// Update Fields
|
// Update Fields
|
||||||
if (!newRecord)
|
if (!newRecord)
|
||||||
{
|
{
|
||||||
|
@ -387,6 +391,8 @@ public class MColumn extends X_AD_Column
|
||||||
if (log.isLoggable(Level.FINE)) log.fine("afterSave - Fields updated #" + no);
|
if (log.isLoggable(Level.FINE)) log.fine("afterSave - Fields updated #" + no);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
} // afterSave
|
} // afterSave
|
||||||
|
|
||||||
|
|
|
@ -464,6 +464,69 @@ public class MCostDetail extends X_M_CostDetail
|
||||||
return ok;
|
return ok;
|
||||||
} // createProduction
|
} // createProduction
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param as
|
||||||
|
* @param AD_Org_ID
|
||||||
|
* @param M_Product_ID
|
||||||
|
* @param M_AttributeSetInstance_ID
|
||||||
|
* @param M_MatchInv_ID
|
||||||
|
* @param M_CostElement_ID
|
||||||
|
* @param Amt
|
||||||
|
* @param Qty
|
||||||
|
* @param Description
|
||||||
|
* @param trxName
|
||||||
|
* @return true if no error
|
||||||
|
*/
|
||||||
|
public static boolean createMatchInvoice (MAcctSchema as, int AD_Org_ID,
|
||||||
|
int M_Product_ID, int M_AttributeSetInstance_ID,
|
||||||
|
int M_MatchInv_ID, int M_CostElement_ID,
|
||||||
|
BigDecimal Amt, BigDecimal Qty,
|
||||||
|
String Description, String trxName)
|
||||||
|
{
|
||||||
|
// Delete Unprocessed zero Differences
|
||||||
|
StringBuilder sql = new StringBuilder("DELETE M_CostDetail ")
|
||||||
|
.append("WHERE Processed='N' AND COALESCE(DeltaAmt,0)=0 AND COALESCE(DeltaQty,0)=0")
|
||||||
|
.append(" AND M_MatchInv_ID=").append(M_MatchInv_ID)
|
||||||
|
.append(" AND C_AcctSchema_ID =").append(as.getC_AcctSchema_ID())
|
||||||
|
.append(" AND M_AttributeSetInstance_ID=").append(M_AttributeSetInstance_ID)
|
||||||
|
.append(" AND Coalesce(M_CostElement_ID,0)=").append(M_CostElement_ID);
|
||||||
|
|
||||||
|
int no = DB.executeUpdate(sql.toString(), trxName);
|
||||||
|
if (no != 0)
|
||||||
|
if (s_log.isLoggable(Level.CONFIG)) s_log.config("Deleted #" + no);
|
||||||
|
MCostDetail cd = get (as.getCtx(), "M_MatchInv_ID=? AND Coalesce(M_CostElement_ID,0)="+M_CostElement_ID,
|
||||||
|
M_MatchInv_ID, M_AttributeSetInstance_ID, as.getC_AcctSchema_ID(), trxName);
|
||||||
|
//
|
||||||
|
if (cd == null) // createNew
|
||||||
|
{
|
||||||
|
cd = new MCostDetail (as, AD_Org_ID,
|
||||||
|
M_Product_ID, M_AttributeSetInstance_ID,
|
||||||
|
M_CostElement_ID,
|
||||||
|
Amt, Qty, Description, trxName);
|
||||||
|
cd.setM_MatchInv_ID(M_MatchInv_ID);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cd.setDeltaAmt(Amt.subtract(cd.getAmt()));
|
||||||
|
cd.setDeltaQty(Qty.subtract(cd.getQty()));
|
||||||
|
if (cd.isDelta())
|
||||||
|
{
|
||||||
|
cd.setProcessed(false);
|
||||||
|
cd.setAmt(Amt);
|
||||||
|
cd.setQty(Qty);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return true; // nothing to do
|
||||||
|
}
|
||||||
|
boolean ok = cd.save();
|
||||||
|
if (ok && !cd.isProcessed())
|
||||||
|
{
|
||||||
|
ok = cd.process();
|
||||||
|
}
|
||||||
|
if (s_log.isLoggable(Level.CONFIG)) s_log.config("(" + ok + ") " + cd);
|
||||||
|
return ok;
|
||||||
|
} // createMatchInvoice
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Get Cost Detail
|
* Get Cost Detail
|
||||||
* @param ctx context
|
* @param ctx context
|
||||||
|
@ -1184,6 +1247,13 @@ public class MCostDetail extends X_M_CostDetail
|
||||||
log.warning("QtyAdjust - " + ce + " - " + cost);
|
log.warning("QtyAdjust - " + ce + " - " + cost);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if (getM_MatchInv_ID() > 0)
|
||||||
|
{
|
||||||
|
if (ce.isAveragePO())
|
||||||
|
{
|
||||||
|
cost.setWeightedAverage(amt, qty);
|
||||||
|
}
|
||||||
|
}
|
||||||
else // unknown or no id
|
else // unknown or no id
|
||||||
{
|
{
|
||||||
log.warning("Unknown Type: " + toString());
|
log.warning("Unknown Type: " + toString());
|
||||||
|
|
|
@ -783,7 +783,7 @@ public class MLookupFactory
|
||||||
|
|
||||||
private static StringBuilder getDisplayColumn(Language language,
|
private static StringBuilder getDisplayColumn(Language language,
|
||||||
String tableName, ArrayList<LookupDisplayColumn> list) {
|
String tableName, ArrayList<LookupDisplayColumn> list) {
|
||||||
return getDisplayColumn(language, tableName, list, null);
|
return getDisplayColumn(language, tableName, list, tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static StringBuilder getDisplayColumn(Language language,
|
private static StringBuilder getDisplayColumn(Language language,
|
||||||
|
|
|
@ -40,12 +40,12 @@ import org.osgi.service.event.Event;
|
||||||
*/
|
*/
|
||||||
public class MRecentItem extends X_AD_RecentItem
|
public class MRecentItem extends X_AD_RecentItem
|
||||||
{
|
{
|
||||||
public static final String ON_RECENT_ITEM_CHANGED_TOPIC = "onRecentItemChanged";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 8337619537799431984L;
|
private static final long serialVersionUID = 6899554875745832L;
|
||||||
|
|
||||||
|
public static final String ON_RECENT_ITEM_CHANGED_TOPIC = "onRecentItemChanged";
|
||||||
|
|
||||||
/** Recent Item Cache */
|
/** Recent Item Cache */
|
||||||
private static CCache<Integer,MRecentItem> s_cache = new CCache<Integer,MRecentItem>(Table_Name, 10);
|
private static CCache<Integer,MRecentItem> s_cache = new CCache<Integer,MRecentItem>(Table_Name, 10);
|
||||||
|
@ -189,7 +189,7 @@ public class MRecentItem extends X_AD_RecentItem
|
||||||
publishChangedEvent(AD_User_ID);
|
publishChangedEvent(AD_User_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void publishChangedEvent(int AD_User_ID) {
|
public static void publishChangedEvent(int AD_User_ID) {
|
||||||
IMessageService service = Service.locator().locate(IMessageService.class).getService();
|
IMessageService service = Service.locator().locate(IMessageService.class).getService();
|
||||||
if (service != null) {
|
if (service != null) {
|
||||||
ITopic<Integer> topic = service.getTopic(ON_RECENT_ITEM_CHANGED_TOPIC);
|
ITopic<Integer> topic = service.getTopic(ON_RECENT_ITEM_CHANGED_TOPIC);
|
||||||
|
@ -276,8 +276,14 @@ public class MRecentItem extends X_AD_RecentItem
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLabel() {
|
public String getLabel() {
|
||||||
|
String windowName;
|
||||||
|
MUserDefWin userDef = MUserDefWin.getBestMatch(getCtx(), getAD_Window_ID());
|
||||||
|
if (userDef != null) {
|
||||||
|
windowName = userDef.getName();
|
||||||
|
} else {
|
||||||
MWindow win = new MWindow(getCtx(), getAD_Window_ID(), null);
|
MWindow win = new MWindow(getCtx(), getAD_Window_ID(), null);
|
||||||
String windowName = win.get_Translation("Name");
|
windowName = win.get_Translation("Name");
|
||||||
|
}
|
||||||
MTable table = MTable.get(getCtx(), getAD_Table_ID());
|
MTable table = MTable.get(getCtx(), getAD_Table_ID());
|
||||||
PO po = table.getPO(getRecord_ID(), null);
|
PO po = table.getPO(getRecord_ID(), null);
|
||||||
if (po == null) {
|
if (po == null) {
|
||||||
|
|
|
@ -289,7 +289,7 @@ public class MTax extends X_C_Tax
|
||||||
.setOnlyActiveRecords(true)
|
.setOnlyActiveRecords(true)
|
||||||
.list();
|
.list();
|
||||||
if (list.size() >= 1) {
|
if (list.size() >= 1) {
|
||||||
log.saveError("Error", Msg.parseTranslation(getCtx(), "Only one @C_Tax_ID@ per @C_TaxCategory_ID@ can be marked as Default!"));
|
log.saveError("Error", Msg.parseTranslation(getCtx(), Msg.getMsg(Env.getCtx(),"OnlyOneTaxPerCategoryMarkedDefault")));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,9 +108,8 @@ public class MUserDefWin extends X_AD_UserDef_Win
|
||||||
{
|
{
|
||||||
// Check Cache
|
// Check Cache
|
||||||
Integer key = new Integer(window_ID);
|
Integer key = new Integer(window_ID);
|
||||||
MUserDefWin retValue = (MUserDefWin)s_cache.get(key);
|
if (s_cache.containsKey(key))
|
||||||
if (retValue != null)
|
return s_cache.get(key);
|
||||||
return retValue;
|
|
||||||
|
|
||||||
// parameters
|
// parameters
|
||||||
final int AD_Org_ID = Env.getAD_Org_ID(ctx);
|
final int AD_Org_ID = Env.getAD_Org_ID(ctx);
|
||||||
|
@ -122,8 +121,10 @@ public class MUserDefWin extends X_AD_UserDef_Win
|
||||||
|
|
||||||
// candidates
|
// candidates
|
||||||
MUserDefWin[] candidates = getAll(ctx, window_ID);
|
MUserDefWin[] candidates = getAll(ctx, window_ID);
|
||||||
if (candidates == null)
|
if (candidates == null) {
|
||||||
|
s_cache.put(key, null);
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
final int size = candidates.length;
|
final int size = candidates.length;
|
||||||
int[] weight = new int[size];
|
int[] weight = new int[size];
|
||||||
|
|
||||||
|
@ -177,10 +178,12 @@ public class MUserDefWin extends X_AD_UserDef_Win
|
||||||
}
|
}
|
||||||
|
|
||||||
if (weight[maxindex] > -1) {
|
if (weight[maxindex] > -1) {
|
||||||
|
MUserDefWin retValue = null;
|
||||||
retValue=candidates[maxindex];
|
retValue=candidates[maxindex];
|
||||||
s_cache.put(key, retValue);
|
s_cache.put(key, retValue);
|
||||||
return retValue;
|
return retValue;
|
||||||
} else {
|
} else {
|
||||||
|
s_cache.put(key, null);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,6 +193,20 @@ public class MWarehouse extends X_M_Warehouse
|
||||||
log.warning("No default locator for " + getName());
|
log.warning("No default locator for " + getName());
|
||||||
return locators[0];
|
return locators[0];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
String whereClause = "M_Warehouse_ID=?";
|
||||||
|
List<MLocator> list = new Query(getCtx(), I_M_Locator.Table_Name, whereClause, null)
|
||||||
|
.setParameters(getM_Warehouse_ID())
|
||||||
|
.setOnlyActiveRecords(false).list();
|
||||||
|
if (!list.isEmpty())
|
||||||
|
{
|
||||||
|
if (log.isLoggable(Level.INFO))
|
||||||
|
log.info("All locator is inactive for " + getName());
|
||||||
|
//Do not auto create if there are inactive locator since that could trigger unique key exception
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
// No Locator - create one
|
// No Locator - create one
|
||||||
MLocator loc = new MLocator (this, "Standard");
|
MLocator loc = new MLocator (this, "Standard");
|
||||||
loc.setIsDefault(true);
|
loc.setIsDefault(true);
|
||||||
|
|
|
@ -21,6 +21,7 @@ import java.util.Properties;
|
||||||
|
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zoom Condition model
|
* Zoom Condition model
|
||||||
|
@ -75,6 +76,9 @@ public class MZoomCondition extends X_AD_ZoomCondition
|
||||||
|
|
||||||
private static int findZoomWindowByTableId(int AD_Table_ID, MQuery query)
|
private static int findZoomWindowByTableId(int AD_Table_ID, MQuery query)
|
||||||
{
|
{
|
||||||
|
if (query == null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
MZoomCondition[] conditions = MZoomCondition.getConditions(AD_Table_ID);
|
MZoomCondition[] conditions = MZoomCondition.getConditions(AD_Table_ID);
|
||||||
if (conditions.length > 0)
|
if (conditions.length > 0)
|
||||||
{
|
{
|
||||||
|
@ -99,7 +103,11 @@ public class MZoomCondition extends X_AD_ZoomCondition
|
||||||
public static int findZoomWindow(MQuery query)
|
public static int findZoomWindow(MQuery query)
|
||||||
{
|
{
|
||||||
String tableName = query.getTableName();
|
String tableName = query.getTableName();
|
||||||
|
if (Util.isEmpty(tableName))
|
||||||
|
return 0;
|
||||||
MTable table = MTable.get(Env.getCtx(), tableName);
|
MTable table = MTable.get(Env.getCtx(), tableName);
|
||||||
|
if (table == null)
|
||||||
|
return 0;
|
||||||
return findZoomWindowByTableId(table.getAD_Table_ID(), query);
|
return findZoomWindowByTableId(table.getAD_Table_ID(), query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,15 +119,27 @@ public class MZoomCondition extends X_AD_ZoomCondition
|
||||||
*/
|
*/
|
||||||
public static int findZoomWindowByWindowId(int AD_Window_ID, MQuery query)
|
public static int findZoomWindowByWindowId(int AD_Window_ID, MQuery query)
|
||||||
{
|
{
|
||||||
|
if (query == null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
int tableID = DB.getSQLValueEx(null,
|
||||||
|
"SELECT t.AD_Table_ID " +
|
||||||
|
"FROM AD_Tab tab JOIN AD_Table t ON t.AD_Table_ID=tab.AD_Table_ID " +
|
||||||
|
"WHERE t.IsActive='Y' AND tab.IsActive='Y' AND tab.AD_Window_ID=? " +
|
||||||
|
"ORDER BY tab.SeqNo",
|
||||||
|
AD_Window_ID);
|
||||||
|
String tableName = null;
|
||||||
|
if (tableID > 0) {
|
||||||
|
tableName = MTable.get(Env.getCtx(), tableID).getTableName();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tableName != null && tableName.equals(query.getZoomTableName())) {
|
||||||
|
return findZoomWindowByTableId(tableID, query);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
GridWindow window = GridWindow.get(Env.getCtx(), -1, AD_Window_ID);
|
GridWindow window = GridWindow.get(Env.getCtx(), -1, AD_Window_ID);
|
||||||
if (window == null || window.getTabCount() == 0)
|
if (window == null || window.getTabCount() == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (window.getTab(0).getTableName().equals(query.getZoomTableName())) {
|
|
||||||
return findZoomWindowByTableId(window.getTab(0).getAD_Table_ID(), query);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//resolve zoom to detail
|
//resolve zoom to detail
|
||||||
int size = window.getTabCount();
|
int size = window.getTabCount();
|
||||||
GridTab gTab = null;
|
GridTab gTab = null;
|
||||||
|
@ -157,6 +177,9 @@ public class MZoomCondition extends X_AD_ZoomCondition
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
Env.clearWinContext(-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -202,7 +225,7 @@ public class MZoomCondition extends X_AD_ZoomCondition
|
||||||
.append(" WHERE ")
|
.append(" WHERE ")
|
||||||
.append(whereClause)
|
.append(whereClause)
|
||||||
.append(" AND ")
|
.append(" AND ")
|
||||||
.append(getWhereClause());
|
.append(Env.parseContext(Env.getCtx(), 0, getWhereClause(), false, true));
|
||||||
|
|
||||||
int no = DB.getSQLValue(null, builder.toString());
|
int no = DB.getSQLValue(null, builder.toString());
|
||||||
return no == 1;
|
return no == 1;
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class X_AD_BroadcastMessage extends PO implements I_AD_BroadcastMessage,
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130626L;
|
private static final long serialVersionUID = 20130716L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_BroadcastMessage (Properties ctx, int AD_BroadcastMessage_ID, String trxName)
|
public X_AD_BroadcastMessage (Properties ctx, int AD_BroadcastMessage_ID, String trxName)
|
||||||
|
@ -171,8 +171,12 @@ public class X_AD_BroadcastMessage extends PO implements I_AD_BroadcastMessage,
|
||||||
public static final int BROADCASTFREQUENCY_AD_Reference_ID=200020;
|
public static final int BROADCASTFREQUENCY_AD_Reference_ID=200020;
|
||||||
/** Just Once = J */
|
/** Just Once = J */
|
||||||
public static final String BROADCASTFREQUENCY_JustOnce = "J";
|
public static final String BROADCASTFREQUENCY_JustOnce = "J";
|
||||||
/** Until Expiration = U */
|
/** Until Expiration = E */
|
||||||
public static final String BROADCASTFREQUENCY_UntilExpiration = "U";
|
public static final String BROADCASTFREQUENCY_UntilExpiration = "E";
|
||||||
|
/** Until Acknowledge = A */
|
||||||
|
public static final String BROADCASTFREQUENCY_UntilAcknowledge = "A";
|
||||||
|
/** Until Expiration or Acknowledge = O */
|
||||||
|
public static final String BROADCASTFREQUENCY_UntilExpirationOrAcknowledge = "O";
|
||||||
/** Set Broadcast Frequency.
|
/** Set Broadcast Frequency.
|
||||||
@param BroadcastFrequency
|
@param BroadcastFrequency
|
||||||
How Many Times Message Should be Broadcasted
|
How Many Times Message Should be Broadcasted
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130626L;
|
private static final long serialVersionUID = 20130801L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
||||||
|
@ -449,6 +449,27 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set IsAdvancedField.
|
||||||
|
@param IsAdvancedField IsAdvancedField */
|
||||||
|
public void setIsAdvancedField (boolean IsAdvancedField)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsAdvancedField, Boolean.valueOf(IsAdvancedField));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get IsAdvancedField.
|
||||||
|
@return IsAdvancedField */
|
||||||
|
public boolean isAdvancedField ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsAdvancedField);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/** IsAllowCopy AD_Reference_ID=319 */
|
/** IsAllowCopy AD_Reference_ID=319 */
|
||||||
public static final int ISALLOWCOPY_AD_Reference_ID=319;
|
public static final int ISALLOWCOPY_AD_Reference_ID=319;
|
||||||
/** Yes = Y */
|
/** Yes = Y */
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130626L;
|
private static final long serialVersionUID = 20130801L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID, String trxName)
|
public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID, String trxName)
|
||||||
|
@ -289,6 +289,34 @@ public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persiste
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_AD_Window)MTable.get(getCtx(), org.compiere.model.I_AD_Window.Table_Name)
|
||||||
|
.getPO(getAD_Window_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Window.
|
||||||
|
@param AD_Window_ID
|
||||||
|
Data entry or display window
|
||||||
|
*/
|
||||||
|
public void setAD_Window_ID (int AD_Window_ID)
|
||||||
|
{
|
||||||
|
if (AD_Window_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_AD_Window_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Window.
|
||||||
|
@return Data entry or display window
|
||||||
|
*/
|
||||||
|
public int getAD_Window_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Args.
|
/** Set Args.
|
||||||
@param Args Args */
|
@param Args Args */
|
||||||
public void setArgs (String Args)
|
public void setArgs (String Args)
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130626L;
|
private static final long serialVersionUID = 20130801L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
|
public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
|
||||||
|
@ -555,6 +555,27 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
||||||
return (String)get_Value(COLUMNNAME_Description);
|
return (String)get_Value(COLUMNNAME_Description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set IsAccessAdvanced .
|
||||||
|
@param IsAccessAdvanced IsAccessAdvanced */
|
||||||
|
public void setIsAccessAdvanced (boolean IsAccessAdvanced)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsAccessAdvanced, Boolean.valueOf(IsAccessAdvanced));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get IsAccessAdvanced .
|
||||||
|
@return IsAccessAdvanced */
|
||||||
|
public boolean isAccessAdvanced ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsAccessAdvanced);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Access all Orgs.
|
/** Set Access all Orgs.
|
||||||
@param IsAccessAllOrgs
|
@param IsAccessAllOrgs
|
||||||
Access all Organizations (no org access control) of the client
|
Access all Organizations (no org access control) of the client
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130626L;
|
private static final long serialVersionUID = 20130722L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_M_CostDetail (Properties ctx, int M_CostDetail_ID, String trxName)
|
public X_M_CostDetail (Properties ctx, int M_CostDetail_ID, String trxName)
|
||||||
|
@ -520,6 +520,34 @@ public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_M_MatchInv getM_MatchInv() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_M_MatchInv)MTable.get(getCtx(), org.compiere.model.I_M_MatchInv.Table_Name)
|
||||||
|
.getPO(getM_MatchInv_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Match Invoice.
|
||||||
|
@param M_MatchInv_ID
|
||||||
|
Match Shipment/Receipt to Invoice
|
||||||
|
*/
|
||||||
|
public void setM_MatchInv_ID (int M_MatchInv_ID)
|
||||||
|
{
|
||||||
|
if (M_MatchInv_ID < 1)
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_MatchInv_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_MatchInv_ID, Integer.valueOf(M_MatchInv_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Match Invoice.
|
||||||
|
@return Match Shipment/Receipt to Invoice
|
||||||
|
*/
|
||||||
|
public int getM_MatchInv_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_M_MatchInv_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
public org.compiere.model.I_M_MovementLine getM_MovementLine() throws RuntimeException
|
public org.compiere.model.I_M_MovementLine getM_MovementLine() throws RuntimeException
|
||||||
{
|
{
|
||||||
return (org.compiere.model.I_M_MovementLine)MTable.get(getCtx(), org.compiere.model.I_M_MovementLine.Table_Name)
|
return (org.compiere.model.I_M_MovementLine)MTable.get(getCtx(), org.compiere.model.I_M_MovementLine.Table_Name)
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class MPrintFormat extends X_AD_PrintFormat
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -1378114118642378625L;
|
private static final long serialVersionUID = 2826550741107576964L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Public Constructor.
|
* Public Constructor.
|
||||||
|
@ -1163,15 +1163,26 @@ public class MPrintFormat extends X_AD_PrintFormat
|
||||||
* @param trxName
|
* @param trxName
|
||||||
*/
|
*/
|
||||||
public static RowSet getAccessiblePrintFormats (int AD_Table_ID, int AD_Client_ID, String trxName)
|
public static RowSet getAccessiblePrintFormats (int AD_Table_ID, int AD_Client_ID, String trxName)
|
||||||
|
{
|
||||||
|
return getAccessiblePrintFormats(AD_Table_ID, -1, AD_Client_ID, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param AD_Table_ID
|
||||||
|
* @param AD_Window_ID
|
||||||
|
* @param AD_Client_ID use -1 to retrieve from all client
|
||||||
|
* @param trxName
|
||||||
|
*/
|
||||||
|
public static RowSet getAccessiblePrintFormats (int AD_Table_ID, int AD_Window_ID, int AD_Client_ID, String trxName)
|
||||||
{
|
{
|
||||||
RowSet rowSet = null;
|
RowSet rowSet = null;
|
||||||
String sql = "SELECT AD_PrintFormat_ID, Name, AD_Client_ID "
|
String sql = "SELECT AD_PrintFormat_ID, Name, AD_Client_ID "
|
||||||
+ "FROM AD_PrintFormat "
|
+ "FROM AD_PrintFormat "
|
||||||
+ "WHERE AD_Table_ID=? AND IsTableBased='Y' ";
|
+ "WHERE AD_Table_ID=? AND IsTableBased='Y' ";
|
||||||
|
if (AD_Window_ID > 0)
|
||||||
|
sql += "AND (AD_Window_ID=? OR AD_Window_ID IS NULL) ";
|
||||||
if (AD_Client_ID >= 0)
|
if (AD_Client_ID >= 0)
|
||||||
{
|
sql += " AND AD_Client_ID = ? ";
|
||||||
sql = sql + " AND AD_Client_ID = ? ";
|
|
||||||
}
|
|
||||||
sql = sql + "ORDER BY AD_Client_ID DESC, IsDefault DESC, Name"; // Own First
|
sql = sql + "ORDER BY AD_Client_ID DESC, IsDefault DESC, Name"; // Own First
|
||||||
//
|
//
|
||||||
sql = MRole.getDefault().addAccessSQL (
|
sql = MRole.getDefault().addAccessSQL (
|
||||||
|
@ -1180,9 +1191,12 @@ public class MPrintFormat extends X_AD_PrintFormat
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pstmt = DB.prepareStatement(sql, trxName);
|
pstmt = DB.prepareStatement(sql, trxName);
|
||||||
pstmt.setInt(1, AD_Table_ID);
|
int count = 1;
|
||||||
|
pstmt.setInt(count++, AD_Table_ID);
|
||||||
|
if (AD_Window_ID > 0)
|
||||||
|
pstmt.setInt(count++, AD_Window_ID);
|
||||||
if (AD_Client_ID >= 0)
|
if (AD_Client_ID >= 0)
|
||||||
pstmt.setInt(2, AD_Client_ID);
|
pstmt.setInt(count++, AD_Client_ID);
|
||||||
rowSet = pstmt.getRowSet();
|
rowSet = pstmt.getRowSet();
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
|
|
@ -56,8 +56,11 @@ import org.compiere.model.I_AD_Window;
|
||||||
import org.compiere.model.MClient;
|
import org.compiere.model.MClient;
|
||||||
import org.compiere.model.MColumn;
|
import org.compiere.model.MColumn;
|
||||||
import org.compiere.model.MLookupCache;
|
import org.compiere.model.MLookupCache;
|
||||||
|
import org.compiere.model.MQuery;
|
||||||
import org.compiere.model.MRole;
|
import org.compiere.model.MRole;
|
||||||
import org.compiere.model.MSession;
|
import org.compiere.model.MSession;
|
||||||
|
import org.compiere.model.MTable;
|
||||||
|
import org.compiere.model.MZoomCondition;
|
||||||
import org.compiere.model.PO;
|
import org.compiere.model.PO;
|
||||||
import org.compiere.process.ProcessInfo;
|
import org.compiere.process.ProcessInfo;
|
||||||
import org.compiere.process.SvrProcess;
|
import org.compiere.process.SvrProcess;
|
||||||
|
@ -1789,6 +1792,83 @@ public final class Env
|
||||||
return Util.isEmpty(s) ? Adempiere.ADEMPIERE_R : s;
|
return Util.isEmpty(s) ? Adempiere.ADEMPIERE_R : s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int getZoomWindowID(MQuery query)
|
||||||
|
{
|
||||||
|
int AD_Window_ID = MZoomCondition.findZoomWindow(query);
|
||||||
|
if (AD_Window_ID <= 0)
|
||||||
|
{
|
||||||
|
String TableName = query.getTableName();
|
||||||
|
int PO_Window_ID = 0;
|
||||||
|
String sql = "SELECT AD_Window_ID, PO_Window_ID FROM AD_Table WHERE TableName=?";
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
|
pstmt.setString(1, TableName);
|
||||||
|
rs = pstmt.executeQuery();
|
||||||
|
if (rs.next())
|
||||||
|
{
|
||||||
|
AD_Window_ID = rs.getInt(1);
|
||||||
|
PO_Window_ID = rs.getInt(2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (SQLException e)
|
||||||
|
{
|
||||||
|
log.log(Level.SEVERE, sql, e);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
|
// Nothing to Zoom to
|
||||||
|
if (AD_Window_ID == 0)
|
||||||
|
return AD_Window_ID;
|
||||||
|
|
||||||
|
// PO Zoom ?
|
||||||
|
boolean isSOTrx = true;
|
||||||
|
if (PO_Window_ID != 0)
|
||||||
|
{
|
||||||
|
isSOTrx = DB.isSOTrx(TableName, query.getWhereClause(false));
|
||||||
|
if (!isSOTrx)
|
||||||
|
AD_Window_ID = PO_Window_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (log.isLoggable(Level.CONFIG)) log.config(query + " (IsSOTrx=" + isSOTrx + ")");
|
||||||
|
}
|
||||||
|
return AD_Window_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int getZoomWindowID(int AD_Table_ID, int Record_ID)
|
||||||
|
{
|
||||||
|
int AD_Window_ID = MZoomCondition.findZoomWindowByTableId(AD_Table_ID, Record_ID);
|
||||||
|
MTable table = MTable.get(Env.getCtx(), AD_Table_ID);
|
||||||
|
if (AD_Window_ID <= 0)
|
||||||
|
{
|
||||||
|
AD_Window_ID = table.getAD_Window_ID();
|
||||||
|
// Nothing to Zoom to
|
||||||
|
if (AD_Window_ID == 0)
|
||||||
|
return AD_Window_ID;
|
||||||
|
|
||||||
|
// PO Zoom ?
|
||||||
|
boolean isSOTrx = true;
|
||||||
|
if (table.getPO_Window_ID() != 0)
|
||||||
|
{
|
||||||
|
String whereClause = table.getTableName() + "_ID=" + Record_ID;
|
||||||
|
isSOTrx = DB.isSOTrx(table.getTableName(), whereClause);
|
||||||
|
if (!isSOTrx)
|
||||||
|
AD_Window_ID = table.getPO_Window_ID();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (log.isLoggable(Level.CONFIG)) log.config(table.getTableName() + " - Record_ID=" + Record_ID + " (IsSOTrx=" + isSOTrx + ")");
|
||||||
|
}
|
||||||
|
return AD_Window_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Static Variables
|
* Static Variables
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -128,9 +128,6 @@ public final class Ini implements Serializable
|
||||||
/** Show Acct Tabs */
|
/** Show Acct Tabs */
|
||||||
public static final String P_SHOW_ACCT = "ShowAcct";
|
public static final String P_SHOW_ACCT = "ShowAcct";
|
||||||
private static final boolean DEFAULT_SHOW_ACCT = true;
|
private static final boolean DEFAULT_SHOW_ACCT = true;
|
||||||
/** Show Advanced Tabs */
|
|
||||||
public static final String P_SHOW_ADVANCED = "ShowAdvanced";
|
|
||||||
private static final boolean DEFAULT_SHOW_ADVANCED = true;
|
|
||||||
/** Show Translation Tabs */
|
/** Show Translation Tabs */
|
||||||
public static final String P_SHOW_TRL = "ShowTrl";
|
public static final String P_SHOW_TRL = "ShowTrl";
|
||||||
private static final boolean DEFAULT_SHOW_TRL = false;
|
private static final boolean DEFAULT_SHOW_TRL = false;
|
||||||
|
@ -196,7 +193,7 @@ public final class Ini implements Serializable
|
||||||
P_UI_LOOK, P_UI_THEME, /* P_UI_FLAT,*/
|
P_UI_LOOK, P_UI_THEME, /* P_UI_FLAT,*/
|
||||||
P_A_COMMIT, P_A_LOGIN, P_A_NEW,
|
P_A_COMMIT, P_A_LOGIN, P_A_NEW,
|
||||||
P_ADEMPIERESYS, P_LOGMIGRATIONSCRIPT, P_SHOW_ACCT, P_SHOW_TRL,
|
P_ADEMPIERESYS, P_LOGMIGRATIONSCRIPT, P_SHOW_ACCT, P_SHOW_TRL,
|
||||||
P_SHOW_ADVANCED, P_CACHE_WINDOW,
|
P_CACHE_WINDOW,
|
||||||
P_CONTEXT, P_TEMP_DIR,
|
P_CONTEXT, P_TEMP_DIR,
|
||||||
P_ROLE, P_CLIENT, P_ORG, P_PRINTER, P_WAREHOUSE, P_TODAY,
|
P_ROLE, P_CLIENT, P_ORG, P_PRINTER, P_WAREHOUSE, P_TODAY,
|
||||||
P_PRINTPREVIEW,
|
P_PRINTPREVIEW,
|
||||||
|
@ -214,7 +211,7 @@ public final class Ini implements Serializable
|
||||||
DEFAULT_UI_LOOK, DEFAULT_UI_THEME, /* DEFAULT_UI_FLAT?"Y":"N", */
|
DEFAULT_UI_LOOK, DEFAULT_UI_THEME, /* DEFAULT_UI_FLAT?"Y":"N", */
|
||||||
DEFAULT_A_COMMIT?"Y":"N", DEFAULT_A_LOGIN?"Y":"N", DEFAULT_A_NEW?"Y":"N",
|
DEFAULT_A_COMMIT?"Y":"N", DEFAULT_A_LOGIN?"Y":"N", DEFAULT_A_NEW?"Y":"N",
|
||||||
DEFAULT_ADEMPIERESYS?"Y":"N", DEFAULT_LOGMIGRATIONSCRIPT?"Y":"N", DEFAULT_SHOW_ACCT?"Y":"N", DEFAULT_SHOW_TRL?"Y":"N",
|
DEFAULT_ADEMPIERESYS?"Y":"N", DEFAULT_LOGMIGRATIONSCRIPT?"Y":"N", DEFAULT_SHOW_ACCT?"Y":"N", DEFAULT_SHOW_TRL?"Y":"N",
|
||||||
DEFAULT_SHOW_ADVANCED?"Y":"N", DEFAULT_CACHE_WINDOW?"Y":"N",
|
DEFAULT_CACHE_WINDOW?"Y":"N",
|
||||||
DEFAULT_CONTEXT, DEFAULT_TEMP_DIR,
|
DEFAULT_CONTEXT, DEFAULT_TEMP_DIR,
|
||||||
DEFAULT_ROLE, DEFAULT_CLIENT, DEFAULT_ORG, DEFAULT_PRINTER, DEFAULT_WAREHOUSE, DEFAULT_TODAY.toString(),
|
DEFAULT_ROLE, DEFAULT_CLIENT, DEFAULT_ORG, DEFAULT_PRINTER, DEFAULT_WAREHOUSE, DEFAULT_TODAY.toString(),
|
||||||
DEFAULT_PRINTPREVIEW?"Y":"N",
|
DEFAULT_PRINTPREVIEW?"Y":"N",
|
||||||
|
|
|
@ -838,7 +838,7 @@ public class Login
|
||||||
else
|
else
|
||||||
Env.setContext(m_ctx, "#ShowAcct", "N");
|
Env.setContext(m_ctx, "#ShowAcct", "N");
|
||||||
Env.setContext(m_ctx, "#ShowTrl", Ini.getProperty(Ini.P_SHOW_TRL));
|
Env.setContext(m_ctx, "#ShowTrl", Ini.getProperty(Ini.P_SHOW_TRL));
|
||||||
Env.setContext(m_ctx, "#ShowAdvanced", Ini.getProperty(Ini.P_SHOW_ADVANCED));
|
Env.setContext(m_ctx, "#ShowAdvanced", MRole.getDefault().isAccessAdvanced());
|
||||||
|
|
||||||
String retValue = "";
|
String retValue = "";
|
||||||
int AD_Client_ID = Env.getContextAsInt(m_ctx, "#AD_Client_ID");
|
int AD_Client_ID = Env.getContextAsInt(m_ctx, "#AD_Client_ID");
|
||||||
|
|
|
@ -27,6 +27,7 @@ import org.adempiere.exceptions.DBException;
|
||||||
import org.adempiere.model.MBroadcastMessage;
|
import org.adempiere.model.MBroadcastMessage;
|
||||||
import org.compiere.Adempiere;
|
import org.compiere.Adempiere;
|
||||||
import org.compiere.model.MNote;
|
import org.compiere.model.MNote;
|
||||||
|
import org.compiere.model.MUser;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -61,20 +62,24 @@ public class BroadcastMsgUtil
|
||||||
// get list of users based on rule
|
// get list of users based on rule
|
||||||
if (mbMessage.getTarget() != null) {
|
if (mbMessage.getTarget() != null) {
|
||||||
String sql = "SELECT DISTINCT(AD_User_ID) FROM AD_User_Roles WHERE IsActive='Y'";
|
String sql = "SELECT DISTINCT(AD_User_ID) FROM AD_User_Roles WHERE IsActive='Y'";
|
||||||
|
|
||||||
// Role
|
// Role
|
||||||
if (mbMessage.getTarget().equals(MBroadcastMessage.TARGET_Role)) {
|
if (mbMessage.getTarget().equals(MBroadcastMessage.TARGET_Role)) {
|
||||||
sql += " AND AD_Role_ID=" + mbMessage.getAD_Role_ID();
|
sql += " AND AD_Role_ID=" + mbMessage.getAD_Role_ID();
|
||||||
} else if (mbMessage.getTarget().equals(MBroadcastMessage.TARGET_User)) {
|
} else if (mbMessage.getTarget().equals(MBroadcastMessage.TARGET_User)) {
|
||||||
sql += " AND AD_User_ID=" + mbMessage.getAD_User_ID();
|
sql += " AND AD_User_ID=" + mbMessage.getAD_User_ID();
|
||||||
} else if (mbMessage.getTarget().equals(MBroadcastMessage.TARGET_Client)) {
|
} else if (mbMessage.getTarget().equals(MBroadcastMessage.TARGET_Client)) {
|
||||||
sql += " AND ad_client_id = " + mbMessage.getNotification_Client_ID();
|
sql += " AND AD_Client_ID = " + Env.getAD_Client_ID(Env.getCtx());
|
||||||
}
|
} // else Everybody doesn't need additional filtering
|
||||||
|
|
||||||
int[] userIDs = DB.getIDsEx(null, sql);
|
int[] userIDs = DB.getIDsEx(null, sql);
|
||||||
|
|
||||||
for (int userID : userIDs) {
|
for (int userID : userIDs) {
|
||||||
|
MUser user = MUser.get(Env.getCtx(), userID);
|
||||||
|
if (! user.isActive())
|
||||||
|
continue;
|
||||||
MNote note = new MNote(Env.getCtx(), 0, trxName);
|
MNote note = new MNote(Env.getCtx(), 0, trxName);
|
||||||
|
if (MBroadcastMessage.TARGET_Everybody.equals(mbMessage.getTarget()))
|
||||||
|
note.setClientOrg(user.getAD_Client_ID(), 0);
|
||||||
note.setAD_BroadcastMessage_ID(messageID);
|
note.setAD_BroadcastMessage_ID(messageID);
|
||||||
note.setAD_User_ID(userID);
|
note.setAD_User_ID(userID);
|
||||||
note.setAD_Message_ID(0);
|
note.setAD_Message_ID(0);
|
||||||
|
@ -147,13 +152,17 @@ public class BroadcastMsgUtil
|
||||||
* @param messageWindow
|
* @param messageWindow
|
||||||
*/
|
*/
|
||||||
public static void showPendingMessage(int AD_User_ID, IBroadcastMsgPopup messageWindow) {
|
public static void showPendingMessage(int AD_User_ID, IBroadcastMsgPopup messageWindow) {
|
||||||
String sql = "SELECT bm.AD_BroadcastMessage_ID "
|
String sql = ""
|
||||||
+ " FROM AD_Note n INNER JOIN AD_BroadcastMessage bm ON (bm.AD_BroadcastMessage_ID=n.AD_BroadcastMessage_ID) "
|
+ "SELECT bm.AD_BroadcastMessage_ID "
|
||||||
+ " WHERE n.AD_User_ID=?"
|
+ "FROM AD_Note n "
|
||||||
+ " AND n.AD_Client_ID=?"
|
+ " INNER JOIN AD_BroadcastMessage bm "
|
||||||
+ " AND (bm.BroadcastType='IL' OR bm.BroadcastType='L') "
|
+ " ON ( bm.AD_BroadcastMessage_ID = n.AD_BroadcastMessage_ID ) "
|
||||||
+ " AND bm.isPublished='Y' AND n.processed = 'N'"
|
+ "WHERE n.AD_User_ID = ? "
|
||||||
+ " AND ((bm.BroadcastFrequency='U' AND bm.Expired='N' AND (bm.expiration IS NULL OR bm.expiration > SYSDATE)) OR bm.BroadcastFrequency='J')";
|
+ " AND n.AD_Client_ID = ? "
|
||||||
|
+ " AND ( bm.BroadcastType = 'IL' OR bm.BroadcastType = 'L' ) "
|
||||||
|
+ " AND bm.isPublished = 'Y' "
|
||||||
|
+ " AND ( n.Processed = 'N' OR ( n.Processed = 'Y' AND bm.BroadcastFrequency = 'E' ) ) "
|
||||||
|
+ " AND ( bm.Expired = 'N' AND ( bm.Expiration IS NULL OR bm.Expiration > SYSDATE ) ) ";
|
||||||
|
|
||||||
ArrayList<MBroadcastMessage> mbMessages = new ArrayList<MBroadcastMessage>();
|
ArrayList<MBroadcastMessage> mbMessages = new ArrayList<MBroadcastMessage>();
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
|
|
|
@ -38,16 +38,18 @@ public class AutoCommitConnectionBroker {
|
||||||
*/
|
*/
|
||||||
public static Connection getConnection() {
|
public static Connection getConnection() {
|
||||||
ConnectionReference connReference = threadLocalConnection.get();
|
ConnectionReference connReference = threadLocalConnection.get();
|
||||||
if (connReference != null) {
|
try {
|
||||||
|
if (connReference != null && !connReference.connection.isClosed()) {
|
||||||
connReference.referenceCount++;
|
connReference.referenceCount++;
|
||||||
return connReference.connection;
|
return connReference.connection;
|
||||||
} else {
|
}
|
||||||
|
} catch (SQLException e) {}
|
||||||
|
|
||||||
Connection connection = DB.createConnection(true, false, Connection.TRANSACTION_READ_COMMITTED);
|
Connection connection = DB.createConnection(true, false, Connection.TRANSACTION_READ_COMMITTED);
|
||||||
connReference = new ConnectionReference(connection);
|
connReference = new ConnectionReference(connection);
|
||||||
threadLocalConnection.set(connReference);
|
threadLocalConnection.set(connReference);
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Release connection. The connection goes back to pool if reference count is zero.
|
* Release connection. The connection goes back to pool if reference count is zero.
|
||||||
|
|
|
@ -78,7 +78,6 @@ public class AdElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mElement.is_new() || mElement.is_Changed()) {
|
if (mElement.is_new() || mElement.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Element.Table_Name, X_AD_Element.Table_ID);
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Element.Table_Name, X_AD_Element.Table_ID);
|
||||||
if (!mElement.is_new()) {
|
if (!mElement.is_new()) {
|
||||||
|
@ -92,8 +91,6 @@ public class AdElementHandler extends AbstractElementHandler {
|
||||||
logImportDetail(ctx, impDetail, 1, mElement.getName(),
|
logImportDetail(ctx, impDetail, 1, mElement.getName(),
|
||||||
mElement.get_ID(), action);
|
mElement.get_ID(), action);
|
||||||
|
|
||||||
element.recordId = mElement.getAD_Element_ID();
|
|
||||||
|
|
||||||
processedElements.add(mElement.getAD_Element_ID());
|
processedElements.add(mElement.getAD_Element_ID());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -102,6 +99,7 @@ public class AdElementHandler extends AbstractElementHandler {
|
||||||
throw new POSaveFailedException("Failed to save Element " + mElement.getName());
|
throw new POSaveFailedException("Failed to save Element " + mElement.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
element.recordId = mElement.getAD_Element_ID();
|
||||||
} else {
|
} else {
|
||||||
element.skip = true;
|
element.skip = true;
|
||||||
}
|
}
|
||||||
|
@ -116,14 +114,10 @@ public class AdElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
int adElement_id = Env.getContextAsInt(ctx.ctx,
|
int adElement_id = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Element.COLUMNNAME_AD_Element_ID);
|
X_AD_Element.COLUMNNAME_AD_Element_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Element.COLUMNNAME_AD_Element_ID+"|"+adElement_id))
|
||||||
if (processedElements.contains(adElement_id))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
processedElements.add(adElement_id);
|
|
||||||
|
|
||||||
X_AD_Element mAdElement = new X_AD_Element(ctx.ctx, adElement_id, null);
|
X_AD_Element mAdElement = new X_AD_Element(ctx.ctx, adElement_id, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
if (mAdElement.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
|
if (mAdElement.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -136,11 +130,10 @@ public class AdElementHandler extends AbstractElementHandler {
|
||||||
createAdElementBinding(ctx, document, mAdElement);
|
createAdElementBinding(ctx, document, mAdElement);
|
||||||
|
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
try{
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Element.Table_Name);
|
||||||
|
try {
|
||||||
new CommonTranslationHandler().packOut(packOut,document,null,mAdElement.get_ID());
|
new CommonTranslationHandler().packOut(packOut,document,null,mAdElement.get_ID());
|
||||||
}
|
} catch(Exception e) {
|
||||||
catch(Exception e)
|
|
||||||
{
|
|
||||||
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ import org.compiere.model.X_AD_AttachmentNote;
|
||||||
import org.compiere.model.X_AD_Package_Imp_Detail;
|
import org.compiere.model.X_AD_Package_Imp_Detail;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
@ -127,12 +126,9 @@ public class AttachmentElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
|
|
||||||
int AD_Attachment_ID = Env.getContextAsInt(ctx.ctx, "AD_Attachment_ID");
|
int AD_Attachment_ID = Env.getContextAsInt(ctx.ctx, "AD_Attachment_ID");
|
||||||
|
if (ctx.packOut.isExported("AD_Attachment_ID"+"|"+AD_Attachment_ID))
|
||||||
if (attachments.contains(AD_Attachment_ID))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
attachments.add(AD_Attachment_ID);
|
|
||||||
|
|
||||||
MAttachment mAttachment = new MAttachment(ctx.ctx, AD_Attachment_ID, getTrxName(ctx));
|
MAttachment mAttachment = new MAttachment(ctx.ctx, AD_Attachment_ID, getTrxName(ctx));
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -26,10 +26,10 @@ import java.util.logging.Level;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -297,6 +297,9 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Column_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_Column_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Column.COLUMNNAME_AD_Column_ID);
|
X_AD_Column.COLUMNNAME_AD_Column_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Column.COLUMNNAME_AD_Column_ID+"|"+AD_Column_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
X_AD_Column m_Column = new X_AD_Column(ctx.ctx, AD_Column_ID,
|
X_AD_Column m_Column = new X_AD_Column(ctx.ctx, AD_Column_ID,
|
||||||
getTrxName(ctx));
|
getTrxName(ctx));
|
||||||
|
|
|
@ -11,18 +11,17 @@ import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.exceptions.DBException;
|
import org.adempiere.exceptions.DBException;
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
import org.adempiere.pipo2.ElementHandler;
|
import org.adempiere.pipo2.ElementHandler;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
|
import org.compiere.model.MTable;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
import org.compiere.model.X_AD_Element;
|
|
||||||
|
|
||||||
public class CommonTranslationHandler extends AbstractElementHandler implements ElementHandler {
|
public class CommonTranslationHandler extends AbstractElementHandler implements ElementHandler {
|
||||||
|
|
||||||
public static final String CONTEXT_KEY_PARENT_TABLE = "currentParentTableForTranslation";
|
public static final String CONTEXT_KEY_PARENT_TABLE = "currentParentTableForTranslation";
|
||||||
|
@ -288,10 +287,18 @@ public class CommonTranslationHandler extends AbstractElementHandler implements
|
||||||
return str.substring(1, str.length()-1);
|
return str.substring(1, str.length()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean existTranslated(String Name)
|
||||||
|
{
|
||||||
|
if (MTable.getTable_ID(Name+"_Trl")>0)
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public void packOut(PackOut packout, TransformerHandler packoutHandler, TransformerHandler docHandler,int recordId) throws Exception
|
public void packOut(PackOut packout, TransformerHandler packoutHandler, TransformerHandler docHandler,int recordId) throws Exception
|
||||||
{
|
{
|
||||||
if("true".equals(packout.getCtx().ctx.getProperty("isHandleTranslations"))){
|
if("Y".equals(packout.getCtx().ctx.getProperty("isHandleTranslations")) && existTranslated(packout.getCtx().ctx.getProperty("Table_Name"))){
|
||||||
Env.setContext(packout.getCtx().ctx, CommonTranslationHandler.CONTEXT_KEY_PARENT_TABLE,X_AD_Element.Table_Name);
|
Env.setContext(packout.getCtx().ctx, CommonTranslationHandler.CONTEXT_KEY_PARENT_TABLE,packout.getCtx().ctx.getProperty("Table_Name"));
|
||||||
Env.setContext(packout.getCtx().ctx, CommonTranslationHandler.CONTEXT_KEY_PARENT_RECORD_ID,recordId);
|
Env.setContext(packout.getCtx().ctx, CommonTranslationHandler.CONTEXT_KEY_PARENT_RECORD_ID,recordId);
|
||||||
this.create(packout.getCtx(), packoutHandler);
|
this.create(packout.getCtx(), packoutHandler);
|
||||||
packout.getCtx().ctx.remove(CommonTranslationHandler.CONTEXT_KEY_PARENT_TABLE);
|
packout.getCtx().ctx.remove(CommonTranslationHandler.CONTEXT_KEY_PARENT_TABLE);
|
||||||
|
|
|
@ -16,16 +16,15 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_Val_Rule;
|
import org.compiere.model.I_AD_Val_Rule;
|
||||||
|
@ -38,8 +37,6 @@ import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
public class DynValRuleElementHandler extends AbstractElementHandler {
|
public class DynValRuleElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private List<Integer> rules = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element) throws SAXException {
|
public void startElement(PIPOContext ctx, Element element) throws SAXException {
|
||||||
String entitytype = getStringValue(element, "EntityType");
|
String entitytype = getStringValue(element, "EntityType");
|
||||||
if (isProcessElement(ctx.ctx, entitytype)) {
|
if (isProcessElement(ctx.ctx, entitytype)) {
|
||||||
|
@ -99,9 +96,8 @@ public class DynValRuleElementHandler extends AbstractElementHandler {
|
||||||
protected void create(PIPOContext ctx, TransformerHandler document)
|
protected void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Val_Rule_ID = Env.getContextAsInt(ctx.ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Val_Rule_ID);
|
int AD_Val_Rule_ID = Env.getContextAsInt(ctx.ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Val_Rule_ID);
|
||||||
if (rules.contains(AD_Val_Rule_ID))
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_Val_Rule_ID+"|"+AD_Val_Rule_ID))
|
||||||
return;
|
return;
|
||||||
rules.add(AD_Val_Rule_ID);
|
|
||||||
X_AD_Val_Rule m_ValRule = new X_AD_Val_Rule (ctx.ctx, AD_Val_Rule_ID, null);
|
X_AD_Val_Rule m_ValRule = new X_AD_Val_Rule (ctx.ctx, AD_Val_Rule_ID, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -120,11 +120,8 @@ public class EntityTypeElementHandler extends AbstractElementHandler{
|
||||||
|
|
||||||
public void create(PIPOContext ctx, TransformerHandler document) throws SAXException {
|
public void create(PIPOContext ctx, TransformerHandler document) throws SAXException {
|
||||||
int AD_ElementType_ID = Env.getContextAsInt(ctx.ctx, X_AD_EntityType.COLUMNNAME_AD_EntityType_ID);
|
int AD_ElementType_ID = Env.getContextAsInt(ctx.ctx, X_AD_EntityType.COLUMNNAME_AD_EntityType_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_EntityType.COLUMNNAME_AD_EntityType_ID+"|"+AD_ElementType_ID))
|
||||||
if(entityTypes.contains(AD_ElementType_ID))
|
|
||||||
return;
|
return;
|
||||||
entityTypes.add(AD_ElementType_ID);
|
|
||||||
|
|
||||||
|
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
|
|
||||||
|
|
|
@ -17,15 +17,16 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
|
import org.adempiere.pipo2.Element;
|
||||||
import org.adempiere.pipo2.ElementHandler;
|
import org.adempiere.pipo2.ElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -134,7 +135,7 @@ public class FieldElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mField.getAD_Field_ID();
|
||||||
if (mField.is_new() || mField.is_Changed()) {
|
if (mField.is_new() || mField.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Field.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Field.Table_Name,
|
||||||
X_AD_Field.Table_ID);
|
X_AD_Field.Table_ID);
|
||||||
|
@ -169,10 +170,12 @@ public class FieldElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Field_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_Field_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Field.COLUMNNAME_AD_Field_ID);
|
X_AD_Field.COLUMNNAME_AD_Field_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Field.COLUMNNAME_AD_Field_ID+"|"+AD_Field_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_Field m_Field = new X_AD_Field(ctx.ctx, AD_Field_ID, null);
|
X_AD_Field m_Field = new X_AD_Field(ctx.ctx, AD_Field_ID, null);
|
||||||
|
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if(m_Field.getAD_FieldGroup_ID() > 0)
|
if(m_Field.getAD_FieldGroup_ID() > 0)
|
||||||
|
@ -202,6 +205,13 @@ public class FieldElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", X_AD_Field.Table_Name, atts);
|
document.startElement("", "", X_AD_Field.Table_Name, atts);
|
||||||
createFieldBinding(ctx, document, m_Field);
|
createFieldBinding(ctx, document, m_Field);
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Field.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Field.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("", "", X_AD_Field.Table_Name);
|
document.endElement("", "", X_AD_Field.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,8 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.recordId = fieldGroup.getAD_FieldGroup_ID();
|
||||||
|
|
||||||
if (fieldGroup.is_new() || fieldGroup.is_Changed()) {
|
if (fieldGroup.is_new() || fieldGroup.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_FieldGroup.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_FieldGroup.Table_Name,
|
||||||
X_AD_FieldGroup.Table_ID);
|
X_AD_FieldGroup.Table_ID);
|
||||||
|
@ -96,10 +98,8 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
||||||
if (fieldGroup.save(getTrxName(ctx)) == true) {
|
if (fieldGroup.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, fieldGroup.getName(),
|
logImportDetail(ctx, impDetail, 1, fieldGroup.getName(),
|
||||||
fieldGroup.get_ID(), action);
|
fieldGroup.get_ID(), action);
|
||||||
|
|
||||||
element.recordId = fieldGroup.getAD_FieldGroup_ID();
|
|
||||||
|
|
||||||
processedFieldGroups.add(fieldGroup.getAD_FieldGroup_ID());
|
processedFieldGroups.add(fieldGroup.getAD_FieldGroup_ID());
|
||||||
|
element.recordId = fieldGroup.getAD_FieldGroup_ID();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, fieldGroup.getName(),
|
logImportDetail(ctx, impDetail, 0, fieldGroup.getName(),
|
||||||
|
@ -121,12 +121,9 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
int fieldGroup_id = Env.getContextAsInt(ctx.ctx,
|
int fieldGroup_id = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID);
|
X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID+"|"+fieldGroup_id))
|
||||||
if (processedFieldGroups.contains(fieldGroup_id))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
processedFieldGroups.add(fieldGroup_id);
|
|
||||||
|
|
||||||
X_AD_FieldGroup fieldGroup = new X_AD_FieldGroup(ctx.ctx, fieldGroup_id, null);
|
X_AD_FieldGroup fieldGroup = new X_AD_FieldGroup(ctx.ctx, fieldGroup_id, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
@ -138,16 +135,13 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_FieldGroup.Table_Name, atts);
|
document.startElement("", "", I_AD_FieldGroup.Table_Name, atts);
|
||||||
|
|
||||||
createAdElementBinding(ctx, document, fieldGroup);
|
createAdElementBinding(ctx, document, fieldGroup);
|
||||||
|
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_FieldGroup.Table_Name);
|
||||||
try{
|
try {
|
||||||
new CommonTranslationHandler().packOut(packOut,document,null,fieldGroup.get_ID());
|
new CommonTranslationHandler().packOut(packOut,document,null,fieldGroup.get_ID());
|
||||||
}
|
} catch(Exception e) {
|
||||||
catch(Exception e)
|
|
||||||
{
|
|
||||||
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
}
|
}
|
||||||
document.endElement("", "", I_AD_FieldGroup.Table_Name);
|
document.endElement("", "", I_AD_FieldGroup.Table_Name);
|
||||||
|
@ -169,7 +163,6 @@ public class FieldGroupElementHandler extends AbstractElementHandler {
|
||||||
public void packOut(PackOut packout, TransformerHandler packoutHandler, TransformerHandler docHandler,int recordId) throws Exception
|
public void packOut(PackOut packout, TransformerHandler packoutHandler, TransformerHandler docHandler,int recordId) throws Exception
|
||||||
{
|
{
|
||||||
Env.setContext(packout.getCtx().ctx, X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID, recordId);
|
Env.setContext(packout.getCtx().ctx, X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID, recordId);
|
||||||
|
|
||||||
this.create(packout.getCtx(), packoutHandler);
|
this.create(packout.getCtx(), packoutHandler);
|
||||||
packout.getCtx().ctx.remove(X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID);
|
packout.getCtx().ctx.remove(X_AD_FieldGroup.COLUMNNAME_AD_FieldGroup_ID);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,16 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_Form;
|
import org.compiere.model.I_AD_Form;
|
||||||
|
@ -40,8 +40,6 @@ import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
public class FormElementHandler extends AbstractElementHandler {
|
public class FormElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private List<Integer> forms = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element) throws SAXException {
|
public void startElement(PIPOContext ctx, Element element) throws SAXException {
|
||||||
List<String> excludes = defaultExcludeList(X_AD_Form.Table_Name);
|
List<String> excludes = defaultExcludeList(X_AD_Form.Table_Name);
|
||||||
|
|
||||||
|
@ -69,7 +67,7 @@ public class FormElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mForm.get_ID();
|
||||||
if (mForm.is_new() || mForm.is_Changed()) {
|
if (mForm.is_new() || mForm.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Form.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Form.Table_Name,
|
||||||
X_AD_Form.Table_ID);
|
X_AD_Form.Table_ID);
|
||||||
|
@ -84,6 +82,7 @@ public class FormElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
if (mForm.save(getTrxName(ctx)) == true){
|
if (mForm.save(getTrxName(ctx)) == true){
|
||||||
logImportDetail (ctx, impDetail, 1, mForm.getName(), mForm.get_ID(), action);
|
logImportDetail (ctx, impDetail, 1, mForm.getName(), mForm.get_ID(), action);
|
||||||
|
element.recordId = mForm.get_ID();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
logImportDetail (ctx, impDetail, 0, mForm.getName(), mForm.get_ID(), action);
|
logImportDetail (ctx, impDetail, 0, mForm.getName(), mForm.get_ID(), action);
|
||||||
|
@ -101,9 +100,9 @@ public class FormElementHandler extends AbstractElementHandler {
|
||||||
protected void create(PIPOContext ctx, TransformerHandler document)
|
protected void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Form_ID = Env.getContextAsInt(ctx.ctx, "AD_Form_ID");
|
int AD_Form_ID = Env.getContextAsInt(ctx.ctx, "AD_Form_ID");
|
||||||
if (forms.contains(AD_Form_ID)) return;
|
if (ctx.packOut.isExported("AD_Form_ID"+"|"+AD_Form_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
forms.add(AD_Form_ID);
|
|
||||||
X_AD_Form m_Form = new X_AD_Form (ctx.ctx, AD_Form_ID, null);
|
X_AD_Form m_Form = new X_AD_Form (ctx.ctx, AD_Form_ID, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
@ -116,6 +115,15 @@ public class FormElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("","",I_AD_Form.Table_Name,atts);
|
document.startElement("","",I_AD_Form.Table_Name,atts);
|
||||||
createFormBinding(ctx, document, m_Form);
|
createFormBinding(ctx, document, m_Form);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Form.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Form.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("","",I_AD_Form.Table_Name);
|
document.endElement("","",I_AD_Form.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,17 +18,16 @@ package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -46,8 +45,6 @@ public class ImpFormatElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private ImpFormatRowElementHandler rowHandler = new ImpFormatRowElementHandler();
|
private ImpFormatRowElementHandler rowHandler = new ImpFormatRowElementHandler();
|
||||||
|
|
||||||
private List<Integer> formats = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element)
|
public void startElement(PIPOContext ctx, Element element)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
|
|
||||||
|
@ -105,10 +102,9 @@ public class ImpFormatElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int import_id = Env.getContextAsInt(ctx.ctx,
|
int import_id = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Package_Exp_Detail.COLUMNNAME_AD_ImpFormat_ID);
|
X_AD_Package_Exp_Detail.COLUMNNAME_AD_ImpFormat_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_ImpFormat_ID+"|"+import_id))
|
||||||
if (formats.contains(import_id))
|
|
||||||
return;
|
return;
|
||||||
formats.add(import_id);
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
X_AD_ImpFormat m_ImpFormat = new X_AD_ImpFormat(ctx.ctx, import_id, null);
|
X_AD_ImpFormat m_ImpFormat = new X_AD_ImpFormat(ctx.ctx, import_id, null);
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,10 @@ import java.util.List;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -151,6 +151,9 @@ public class ImpFormatRowElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_ImpFormat_Row_ID = Env.getContextAsInt(ctx.ctx, X_AD_ImpFormat_Row.COLUMNNAME_AD_ImpFormat_Row_ID);
|
int AD_ImpFormat_Row_ID = Env.getContextAsInt(ctx.ctx, X_AD_ImpFormat_Row.COLUMNNAME_AD_ImpFormat_Row_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_ImpFormat_Row.COLUMNNAME_AD_ImpFormat_Row_ID+"|"+AD_ImpFormat_Row_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_ImpFormat_Row m_ImpFormat_Row = new X_AD_ImpFormat_Row (ctx.ctx, AD_ImpFormat_Row_ID, getTrxName(ctx));
|
X_AD_ImpFormat_Row m_ImpFormat_Row = new X_AD_ImpFormat_Row (ctx.ctx, AD_ImpFormat_Row_ID, getTrxName(ctx));
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notFounds.toString();
|
element.unresolved = notFounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mMenu.get_ID();
|
||||||
if (!mMenu.is_new() && !mMenu.is_Changed())
|
if (!mMenu.is_new() && !mMenu.is_Changed())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -96,6 +96,7 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
try {
|
try {
|
||||||
logImportDetail(ctx, impDetail, 1, mMenu.getName(), mMenu
|
logImportDetail(ctx, impDetail, 1, mMenu.getName(), mMenu
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
|
element.recordId = mMenu.get_ID();
|
||||||
} catch (SAXException e) {
|
} catch (SAXException e) {
|
||||||
if (log.isLoggable(Level.INFO)) log.info("setmenu:" + e);
|
if (log.isLoggable(Level.INFO)) log.info("setmenu:" + e);
|
||||||
}
|
}
|
||||||
|
@ -203,6 +204,8 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Menu_ID = Env.getContextAsInt(ctx.ctx, "AD_Menu_ID");
|
int AD_Menu_ID = Env.getContextAsInt(ctx.ctx, "AD_Menu_ID");
|
||||||
|
if (ctx.packOut.isExported("AD_Menu_ID"+"|"+AD_Menu_ID))
|
||||||
|
return;
|
||||||
X_AD_Menu m_Menu = new X_AD_Menu(ctx.ctx, AD_Menu_ID, null);
|
X_AD_Menu m_Menu = new X_AD_Menu(ctx.ctx, AD_Menu_ID, null);
|
||||||
if (m_Menu.isSummary() == false) {
|
if (m_Menu.isSummary() == false) {
|
||||||
createApplication(ctx, document, AD_Menu_ID);
|
createApplication(ctx, document, AD_Menu_ID);
|
||||||
|
@ -211,6 +214,15 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Menu.Table_Name, atts);
|
document.startElement("", "", I_AD_Menu.Table_Name, atts);
|
||||||
createMenuBinding(ctx, document, m_Menu);
|
createMenuBinding(ctx, document, m_Menu);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Menu.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Menu.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
createModule(ctx, document, AD_Menu_ID);
|
createModule(ctx, document, AD_Menu_ID);
|
||||||
document.endElement("", "", I_AD_Menu.Table_Name);
|
document.endElement("", "", I_AD_Menu.Table_Name);
|
||||||
}
|
}
|
||||||
|
@ -260,6 +272,14 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Menu.Table_Name, atts);
|
document.startElement("", "", I_AD_Menu.Table_Name, atts);
|
||||||
createMenuBinding(ctx, document, m_Menu);
|
createMenuBinding(ctx, document, m_Menu);
|
||||||
|
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Menu.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Menu.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
if (rs.getInt("AD_WINDOW_ID") > 0
|
if (rs.getInt("AD_WINDOW_ID") > 0
|
||||||
|| rs.getInt("AD_WORKFLOW_ID") > 0
|
|| rs.getInt("AD_WORKFLOW_ID") > 0
|
||||||
|| rs.getInt("AD_TASK_ID") > 0
|
|| rs.getInt("AD_TASK_ID") > 0
|
||||||
|
|
|
@ -18,6 +18,7 @@ package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
|
@ -56,13 +57,18 @@ public class MessageElementHandler extends AbstractElementHandler {
|
||||||
PoFiller filler = new PoFiller(ctx, mMessage, element, this);
|
PoFiller filler = new PoFiller(ctx, mMessage, element, this);
|
||||||
List<String> excludes = defaultExcludeList(X_AD_Message.Table_Name);
|
List<String> excludes = defaultExcludeList(X_AD_Message.Table_Name);
|
||||||
|
|
||||||
|
if (messages.contains(mMessage.getAD_Message_ID())) {
|
||||||
|
element.skip = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<String> notfounds = filler.autoFill(excludes);
|
List<String> notfounds = filler.autoFill(excludes);
|
||||||
if (notfounds.size() > 0) {
|
if (notfounds.size() > 0) {
|
||||||
element.defer = true;
|
element.defer = true;
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mMessage.getAD_Message_ID();
|
||||||
if (mMessage.is_new() || mMessage.is_Changed()) {
|
if (mMessage.is_new() || mMessage.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Message.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Message.Table_Name,
|
||||||
X_AD_Message.Table_ID);
|
X_AD_Message.Table_ID);
|
||||||
|
@ -79,6 +85,8 @@ public class MessageElementHandler extends AbstractElementHandler {
|
||||||
}
|
}
|
||||||
if (mMessage.save(getTrxName(ctx)) == true){
|
if (mMessage.save(getTrxName(ctx)) == true){
|
||||||
logImportDetail (ctx, impDetail, 1, mMessage.getValue(), mMessage.get_ID(),action);
|
logImportDetail (ctx, impDetail, 1, mMessage.getValue(), mMessage.get_ID(),action);
|
||||||
|
messages.add(mMessage.getAD_Message_ID());
|
||||||
|
element.recordId = mMessage.getAD_Message_ID();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
logImportDetail (ctx, impDetail, 0, mMessage.getValue(), mMessage.get_ID(),action);
|
logImportDetail (ctx, impDetail, 0, mMessage.getValue(), mMessage.get_ID(),action);
|
||||||
|
@ -97,12 +105,11 @@ public class MessageElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Message_ID = Env.getContextAsInt(ctx.ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Message_ID);
|
int AD_Message_ID = Env.getContextAsInt(ctx.ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Message_ID);
|
||||||
if (messages.contains(AD_Message_ID))
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_Message_ID+"|"+AD_Message_ID))
|
||||||
return;
|
return;
|
||||||
messages.add(AD_Message_ID);
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
X_AD_Message m_Message = new X_AD_Message (ctx.ctx, AD_Message_ID, null);
|
X_AD_Message m_Message = new X_AD_Message (ctx.ctx, AD_Message_ID, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
if (m_Message.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
|
if (m_Message.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
|
||||||
return;
|
return;
|
||||||
|
@ -112,6 +119,15 @@ public class MessageElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("","",I_AD_Message.Table_Name,atts);
|
document.startElement("","",I_AD_Message.Table_Name,atts);
|
||||||
createMessageBinding(ctx,document,m_Message);
|
createMessageBinding(ctx,document,m_Message);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Message.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Message.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("","",I_AD_Message.Table_Name);
|
document.endElement("","",I_AD_Message.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,12 +99,9 @@ public class ModelValidatorElementHandler extends AbstractElementHandler{
|
||||||
|
|
||||||
public void create(PIPOContext ctx, TransformerHandler document) throws SAXException {
|
public void create(PIPOContext ctx, TransformerHandler document) throws SAXException {
|
||||||
int ad_modelvalidator_id = Env.getContextAsInt(ctx.ctx, X_AD_ModelValidator.COLUMNNAME_AD_ModelValidator_ID);
|
int ad_modelvalidator_id = Env.getContextAsInt(ctx.ctx, X_AD_ModelValidator.COLUMNNAME_AD_ModelValidator_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_ModelValidator.COLUMNNAME_AD_ModelValidator_ID+"|"+ad_modelvalidator_id))
|
||||||
if (validators.contains(ad_modelvalidator_id))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
validators.add(ad_modelvalidator_id);
|
|
||||||
|
|
||||||
X_AD_ModelValidator validator = new X_AD_ModelValidator(ctx.ctx, ad_modelvalidator_id, null);
|
X_AD_ModelValidator validator = new X_AD_ModelValidator(ctx.ctx, ad_modelvalidator_id, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -112,12 +112,9 @@ public class ModificationElementHandler extends AbstractElementHandler{
|
||||||
|
|
||||||
public void create(PIPOContext ctx, TransformerHandler document) throws SAXException {
|
public void create(PIPOContext ctx, TransformerHandler document) throws SAXException {
|
||||||
int ad_modification_id = Env.getContextAsInt(ctx.ctx, X_AD_Modification.COLUMNNAME_AD_Modification_ID);
|
int ad_modification_id = Env.getContextAsInt(ctx.ctx, X_AD_Modification.COLUMNNAME_AD_Modification_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Modification.COLUMNNAME_AD_Modification_ID+"|"+ad_modification_id))
|
||||||
if (modifications.contains(ad_modification_id))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
modifications.add(ad_modification_id);
|
|
||||||
|
|
||||||
X_AD_Modification modification = new X_AD_Modification(ctx.ctx, ad_modification_id, null);
|
X_AD_Modification modification = new X_AD_Modification(ctx.ctx, ad_modification_id, null);
|
||||||
|
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -21,10 +21,10 @@ import java.util.List;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_Preference;
|
import org.compiere.model.I_AD_Preference;
|
||||||
|
@ -109,6 +109,9 @@ public class PreferenceElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Preference_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_Preference_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Preference.COLUMNNAME_AD_Preference_ID);
|
X_AD_Preference.COLUMNNAME_AD_Preference_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Preference.COLUMNNAME_AD_Preference_ID+"|"+AD_Preference_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_Preference m_Preference = new X_AD_Preference(ctx.ctx,
|
X_AD_Preference m_Preference = new X_AD_Preference(ctx.ctx,
|
||||||
AD_Preference_ID, getTrxName(ctx));
|
AD_Preference_ID, getTrxName(ctx));
|
||||||
|
|
||||||
|
|
|
@ -19,17 +19,16 @@ package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.exceptions.DBException;
|
import org.adempiere.exceptions.DBException;
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_PrintFormat;
|
import org.compiere.model.I_AD_PrintFormat;
|
||||||
|
@ -48,8 +47,6 @@ import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
public class PrintFormatElementHandler extends AbstractElementHandler {
|
public class PrintFormatElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private List<Integer> formats = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element)
|
public void startElement(PIPOContext ctx, Element element)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
|
|
||||||
|
@ -103,10 +100,9 @@ public class PrintFormatElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_PrintFormat_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_PrintFormat_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Package_Exp_Detail.COLUMNNAME_AD_PrintFormat_ID);
|
X_AD_Package_Exp_Detail.COLUMNNAME_AD_PrintFormat_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_PrintFormat_ID+"|"+AD_PrintFormat_ID))
|
||||||
if (formats.contains(AD_PrintFormat_ID))
|
|
||||||
return;
|
return;
|
||||||
formats.add(AD_PrintFormat_ID);
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
|
|
||||||
MPrintFormat m_Printformat = new MPrintFormat(ctx.ctx, AD_PrintFormat_ID, null);
|
MPrintFormat m_Printformat = new MPrintFormat(ctx.ctx, AD_PrintFormat_ID, null);
|
||||||
|
|
|
@ -18,14 +18,15 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -113,6 +114,7 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.recordId = mPrintFormatItem.get_ID();
|
||||||
if (mPrintFormatItem.is_new() || mPrintFormatItem.is_Changed()) {
|
if (mPrintFormatItem.is_new() || mPrintFormatItem.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_PrintFormatItem.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_PrintFormatItem.Table_Name,
|
||||||
X_AD_PrintFormatItem.Table_ID);
|
X_AD_PrintFormatItem.Table_ID);
|
||||||
|
@ -126,6 +128,7 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler {
|
||||||
if (mPrintFormatItem.save(getTrxName(ctx)) == true) {
|
if (mPrintFormatItem.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, mPrintFormatItem.getName(),
|
logImportDetail(ctx, impDetail, 1, mPrintFormatItem.getName(),
|
||||||
mPrintFormatItem.get_ID(), action);
|
mPrintFormatItem.get_ID(), action);
|
||||||
|
element.recordId = mPrintFormatItem.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, mPrintFormatItem.getName(),
|
logImportDetail(ctx, impDetail, 0, mPrintFormatItem.getName(),
|
||||||
mPrintFormatItem.get_ID(), action);
|
mPrintFormatItem.get_ID(), action);
|
||||||
|
@ -141,6 +144,9 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_PrintFormatItem_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_PrintFormatItem_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_PrintFormatItem.COLUMNNAME_AD_PrintFormatItem_ID);
|
X_AD_PrintFormatItem.COLUMNNAME_AD_PrintFormatItem_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_PrintFormatItem.COLUMNNAME_AD_PrintFormatItem_ID+"|"+AD_PrintFormatItem_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_PrintFormatItem m_PrintFormatItem = new X_AD_PrintFormatItem(ctx.ctx,
|
X_AD_PrintFormatItem m_PrintFormatItem = new X_AD_PrintFormatItem(ctx.ctx,
|
||||||
AD_PrintFormatItem_ID, null);
|
AD_PrintFormatItem_ID, null);
|
||||||
|
|
||||||
|
@ -150,10 +156,19 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_PrintFormatItem.Table_Name, atts);
|
document.startElement("", "", I_AD_PrintFormatItem.Table_Name, atts);
|
||||||
createPrintFormatItemBinding(ctx, document, m_PrintFormatItem);
|
createPrintFormatItemBinding(ctx, document, m_PrintFormatItem);
|
||||||
|
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",I_AD_PrintFormatItem.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_PrintFormatItem.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("", "", I_AD_PrintFormatItem.Table_Name);
|
document.endElement("", "", I_AD_PrintFormatItem.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,10 @@ import java.util.List;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_PrintPaper;
|
import org.compiere.model.I_AD_PrintPaper;
|
||||||
|
@ -92,6 +92,9 @@ public class PrintPaperElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_PrintPaper_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_PrintPaper_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_PrintPaper.COLUMNNAME_AD_PrintPaper_ID);
|
X_AD_PrintPaper.COLUMNNAME_AD_PrintPaper_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_PrintPaper.COLUMNNAME_AD_PrintPaper_ID+"|"+AD_PrintPaper_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_PrintPaper printPaper = new X_AD_PrintPaper(ctx.ctx,
|
X_AD_PrintPaper printPaper = new X_AD_PrintPaper(ctx.ctx,
|
||||||
AD_PrintPaper_ID, null);
|
AD_PrintPaper_ID, null);
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
|
@ -51,8 +51,6 @@ public class ProcessElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private ProcessParaElementHandler paraHandler = new ProcessParaElementHandler();
|
private ProcessParaElementHandler paraHandler = new ProcessParaElementHandler();
|
||||||
|
|
||||||
private List<Integer> processes = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element)
|
public void startElement(PIPOContext ctx, Element element)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
String entitytype = getStringValue(element, "EntityType");
|
String entitytype = getStringValue(element, "EntityType");
|
||||||
|
@ -82,6 +80,7 @@ public class ProcessElementHandler extends AbstractElementHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.recordId = mProcess.get_ID();
|
||||||
if (mProcess.is_new() || mProcess.is_Changed()) {
|
if (mProcess.is_new() || mProcess.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Process.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Process.Table_Name,
|
||||||
X_AD_Process.Table_ID);
|
X_AD_Process.Table_ID);
|
||||||
|
@ -96,7 +95,7 @@ public class ProcessElementHandler extends AbstractElementHandler {
|
||||||
if (mProcess.save(getTrxName(ctx)) == true) {
|
if (mProcess.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, mProcess.getName(), mProcess
|
logImportDetail(ctx, impDetail, 1, mProcess.getName(), mProcess
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
element.recordId = mProcess.getAD_Process_ID();
|
element.recordId = mProcess.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, mProcess.getName(), mProcess
|
logImportDetail(ctx, impDetail, 0, mProcess.getName(), mProcess
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
|
@ -114,9 +113,9 @@ public class ProcessElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Process_ID = Env.getContextAsInt(ctx.ctx, "AD_Process_ID");
|
int AD_Process_ID = Env.getContextAsInt(ctx.ctx, "AD_Process_ID");
|
||||||
if (processes.contains(AD_Process_ID))
|
if (ctx.packOut.isExported("AD_Process_ID"+"|"+AD_Process_ID))
|
||||||
return;
|
return;
|
||||||
processes.add(AD_Process_ID);
|
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
|
|
||||||
X_AD_Process m_Process = new X_AD_Process(ctx.ctx, AD_Process_ID, getTrxName(ctx));
|
X_AD_Process m_Process = new X_AD_Process(ctx.ctx, AD_Process_ID, getTrxName(ctx));
|
||||||
|
@ -162,6 +161,14 @@ public class ProcessElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Process.Table_Name, atts);
|
document.startElement("", "", I_AD_Process.Table_Name, atts);
|
||||||
createProcessBinding(ctx, document, m_Process);
|
createProcessBinding(ctx, document, m_Process);
|
||||||
|
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",I_AD_Process.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Process.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Query query = new Query(ctx.ctx, "AD_Process_PARA", "AD_Process_ID = ?", getTrxName(ctx));
|
Query query = new Query(ctx.ctx, "AD_Process_PARA", "AD_Process_ID = ?", getTrxName(ctx));
|
||||||
|
|
|
@ -17,15 +17,16 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
|
import org.adempiere.pipo2.Element;
|
||||||
import org.adempiere.pipo2.ElementHandler;
|
import org.adempiere.pipo2.ElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -89,6 +90,7 @@ public class ProcessParaElementHandler extends AbstractElementHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.recordId = mProcessPara.get_ID();
|
||||||
if (mProcessPara.is_new() || mProcessPara.is_Changed()) {
|
if (mProcessPara.is_new() || mProcessPara.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Process_Para.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Process_Para.Table_Name,
|
||||||
X_AD_Process_Para.Table_ID);
|
X_AD_Process_Para.Table_ID);
|
||||||
|
@ -103,6 +105,7 @@ public class ProcessParaElementHandler extends AbstractElementHandler {
|
||||||
if (mProcessPara.save(getTrxName(ctx)) == true) {
|
if (mProcessPara.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, mProcessPara.getColumnName(),
|
logImportDetail(ctx, impDetail, 1, mProcessPara.getColumnName(),
|
||||||
mProcessPara.get_ID(), action);
|
mProcessPara.get_ID(), action);
|
||||||
|
element.recordId = mProcessPara.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, mProcessPara.getColumnName(),
|
logImportDetail(ctx, impDetail, 0, mProcessPara.getColumnName(),
|
||||||
mProcessPara.get_ID(), action);
|
mProcessPara.get_ID(), action);
|
||||||
|
@ -121,6 +124,9 @@ public class ProcessParaElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Process_Para_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_Process_Para_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Process_Para.COLUMNNAME_AD_Process_Para_ID);
|
X_AD_Process_Para.COLUMNNAME_AD_Process_Para_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Process_Para.COLUMNNAME_AD_Process_Para_ID+"|"+AD_Process_Para_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_Process_Para m_Processpara = new X_AD_Process_Para(ctx.ctx,
|
X_AD_Process_Para m_Processpara = new X_AD_Process_Para(ctx.ctx,
|
||||||
AD_Process_Para_ID, getTrxName(ctx));
|
AD_Process_Para_ID, getTrxName(ctx));
|
||||||
|
|
||||||
|
@ -143,6 +149,15 @@ public class ProcessParaElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Process_Para.Table_Name, atts);
|
document.startElement("", "", I_AD_Process_Para.Table_Name, atts);
|
||||||
createProcessParaBinding(ctx, document, m_Processpara);
|
createProcessParaBinding(ctx, document, m_Processpara);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",I_AD_Process_Para.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Processpara.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("", "", I_AD_Process_Para.Table_Name);
|
document.endElement("", "", I_AD_Process_Para.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class ReferenceElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mReference.getAD_Reference_ID();
|
||||||
if (mReference.is_new() || mReference.is_Changed()) {
|
if (mReference.is_new() || mReference.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Reference.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Reference.Table_Name,
|
||||||
X_AD_Reference.Table_ID);
|
X_AD_Reference.Table_ID);
|
||||||
|
@ -115,11 +115,9 @@ public class ReferenceElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int Reference_id = Env.getContextAsInt(ctx.ctx,
|
int Reference_id = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Reference.COLUMNNAME_AD_Reference_ID);
|
X_AD_Reference.COLUMNNAME_AD_Reference_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Reference.COLUMNNAME_AD_Reference_ID+"|"+Reference_id))
|
||||||
if (references.contains(Reference_id))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
references.add(Reference_id);
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
|
|
||||||
X_AD_Reference m_Reference = new X_AD_Reference(ctx.ctx, Reference_id, getTrxName(ctx));
|
X_AD_Reference m_Reference = new X_AD_Reference(ctx.ctx, Reference_id, getTrxName(ctx));
|
||||||
|
@ -130,11 +128,17 @@ public class ReferenceElementHandler extends AbstractElementHandler {
|
||||||
createElement = false;
|
createElement = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Reference.Table_Name);
|
||||||
if (createElement) {
|
if (createElement) {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Reference.Table_Name, atts);
|
document.startElement("", "", I_AD_Reference.Table_Name, atts);
|
||||||
createReferenceBinding(ctx, document, m_Reference);
|
createReferenceBinding(ctx, document, m_Reference);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Reference.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_Reference.getValidationType().compareTo("L") == 0) {
|
if (m_Reference.getValidationType().compareTo("L") == 0) {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
|
@ -77,7 +78,7 @@ public class ReferenceListElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mRefList.get_ID();
|
||||||
if (mRefList.is_new() || mRefList.is_Changed()) {
|
if (mRefList.is_new() || mRefList.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Ref_List.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Ref_List.Table_Name,
|
||||||
X_AD_Ref_List.Table_ID);
|
X_AD_Ref_List.Table_ID);
|
||||||
|
@ -91,6 +92,7 @@ public class ReferenceListElementHandler extends AbstractElementHandler {
|
||||||
if (mRefList.save(getTrxName(ctx)) == true) {
|
if (mRefList.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, mRefList.getName(),
|
logImportDetail(ctx, impDetail, 1, mRefList.getName(),
|
||||||
mRefList.get_ID(), action);
|
mRefList.get_ID(), action);
|
||||||
|
element.recordId = mRefList.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, mRefList.getName(),
|
logImportDetail(ctx, impDetail, 0, mRefList.getName(),
|
||||||
mRefList.get_ID(), action);
|
mRefList.get_ID(), action);
|
||||||
|
@ -109,6 +111,8 @@ public class ReferenceListElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Ref_List_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_Ref_List_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Ref_List.COLUMNNAME_AD_Ref_List_ID);
|
X_AD_Ref_List.COLUMNNAME_AD_Ref_List_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Ref_List.COLUMNNAME_AD_Ref_List_ID+"|"+AD_Ref_List_ID))
|
||||||
|
return;
|
||||||
X_AD_Ref_List m_Ref_List = new X_AD_Ref_List(ctx.ctx, AD_Ref_List_ID,
|
X_AD_Ref_List m_Ref_List = new X_AD_Ref_List(ctx.ctx, AD_Ref_List_ID,
|
||||||
getTrxName(ctx));
|
getTrxName(ctx));
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
@ -120,6 +124,15 @@ public class ReferenceListElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Ref_List.Table_Name, atts);
|
document.startElement("", "", I_AD_Ref_List.Table_Name, atts);
|
||||||
createRefListBinding(ctx, document, m_Ref_List);
|
createRefListBinding(ctx, document, m_Ref_List);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Ref_List.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Ref_List.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("", "", I_AD_Ref_List.Table_Name);
|
document.endElement("", "", I_AD_Ref_List.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,10 @@ import java.util.List;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -148,6 +148,9 @@ public class ReportViewColElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_ReportView_Col_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_ReportView_Col_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_ReportView_Col.COLUMNNAME_AD_ReportView_Col_ID);
|
X_AD_ReportView_Col.COLUMNNAME_AD_ReportView_Col_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_ReportView_Col.COLUMNNAME_AD_ReportView_Col_ID+"|"+AD_ReportView_Col_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
X_AD_ReportView_Col m_Reportview_Col = new X_AD_ReportView_Col(ctx.ctx,
|
X_AD_ReportView_Col m_Reportview_Col = new X_AD_ReportView_Col(ctx.ctx,
|
||||||
AD_ReportView_Col_ID, getTrxName(ctx));
|
AD_ReportView_Col_ID, getTrxName(ctx));
|
||||||
|
|
||||||
|
|
|
@ -18,18 +18,17 @@ package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.exceptions.AdempiereException;
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
|
import org.adempiere.pipo2.Element;
|
||||||
import org.adempiere.pipo2.ElementHandler;
|
import org.adempiere.pipo2.ElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_PrintFormat;
|
import org.compiere.model.I_AD_PrintFormat;
|
||||||
|
@ -48,8 +47,6 @@ public class ReportViewElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private ReportViewColElementHandler columnHandler = new ReportViewColElementHandler();
|
private ReportViewColElementHandler columnHandler = new ReportViewColElementHandler();
|
||||||
|
|
||||||
private List<Integer> views = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element)
|
public void startElement(PIPOContext ctx, Element element)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
|
|
||||||
|
@ -104,10 +101,9 @@ public class ReportViewElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
int AD_ReportView_ID = Env.getContextAsInt(ctx.ctx, "AD_ReportView_ID");
|
int AD_ReportView_ID = Env.getContextAsInt(ctx.ctx, "AD_ReportView_ID");
|
||||||
if (views.contains(AD_ReportView_ID))
|
if (ctx.packOut.isExported("AD_ReportView_ID"+"|"+AD_ReportView_ID))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
views.add(AD_ReportView_ID);
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
X_AD_ReportView m_Reportview = new X_AD_ReportView(ctx.ctx, AD_ReportView_ID, getTrxName(ctx));
|
X_AD_ReportView m_Reportview = new X_AD_ReportView(ctx.ctx, AD_ReportView_ID, getTrxName(ctx));
|
||||||
|
|
||||||
|
|
|
@ -18,17 +18,16 @@ package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
||||||
|
@ -51,8 +50,6 @@ import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
public class RoleElementHandler extends AbstractElementHandler {
|
public class RoleElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private List<Integer> roles = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
private OrgRoleElementHandler orgHandler = new OrgRoleElementHandler();
|
private OrgRoleElementHandler orgHandler = new OrgRoleElementHandler();
|
||||||
private ProcessAccessElementHandler processHandler = new ProcessAccessElementHandler();
|
private ProcessAccessElementHandler processHandler = new ProcessAccessElementHandler();
|
||||||
private UserRoleElementHandler userHandler = new UserRoleElementHandler();
|
private UserRoleElementHandler userHandler = new UserRoleElementHandler();
|
||||||
|
@ -117,9 +114,8 @@ public class RoleElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int Role_id = Env.getContextAsInt(ctx.ctx,
|
int Role_id = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Package_Exp_Detail.COLUMNNAME_AD_Role_ID);
|
X_AD_Package_Exp_Detail.COLUMNNAME_AD_Role_ID);
|
||||||
if (roles.contains(Role_id))
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_Role_ID+"|"+Role_id))
|
||||||
return;
|
return;
|
||||||
roles.add(Role_id);
|
|
||||||
|
|
||||||
boolean createElement = true;
|
boolean createElement = true;
|
||||||
X_AD_Role m_Role = new X_AD_Role(ctx.ctx, Role_id, null);
|
X_AD_Role m_Role = new X_AD_Role(ctx.ctx, Role_id, null);
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
import java.sql.Savepoint;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ import org.adempiere.pipo2.SQLElementParameters;
|
||||||
import org.compiere.model.X_AD_Package_Imp_Detail;
|
import org.compiere.model.X_AD_Package_Imp_Detail;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.Trx;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
@ -46,13 +47,17 @@ public class SQLStatementElementHandler extends AbstractElementHandler {
|
||||||
String sql = getStringValue(element, "statement");
|
String sql = getStringValue(element, "statement");
|
||||||
if (sql.endsWith(";") && !(sql.toLowerCase().endsWith("end;")))
|
if (sql.endsWith(";") && !(sql.toLowerCase().endsWith("end;")))
|
||||||
sql = sql.substring(0, sql.length() - 1);
|
sql = sql.substring(0, sql.length() - 1);
|
||||||
|
Savepoint savepoint = null;
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
try {
|
try {
|
||||||
// NOTE Postgres needs to commit DDL statements
|
// NOTE Postgres needs to commit DDL statements
|
||||||
// add a SQL command just with COMMIT if you want to simulate the Oracle behavior (commit on DDL)
|
// add a SQL command just with COMMIT if you want to simulate the Oracle behavior (commit on DDL)
|
||||||
|
// Use savepoint here so that SQL exception would not rollback the whole process
|
||||||
// It is also recommended on postgres to add a COMMIT before any SQL statement that can fail
|
if (DB.isPostgreSQL())
|
||||||
// for example a create index where is possible the index already exists
|
{
|
||||||
|
Trx trx = Trx.get(getTrxName(ctx), true);
|
||||||
|
savepoint = trx.setSavepoint(null);
|
||||||
|
}
|
||||||
|
|
||||||
pstmt = DB.prepareStatement(sql, getTrxName(ctx));
|
pstmt = DB.prepareStatement(sql, getTrxName(ctx));
|
||||||
if (DBType.equals("ALL")) {
|
if (DBType.equals("ALL")) {
|
||||||
|
@ -89,14 +94,13 @@ public class SQLStatementElementHandler extends AbstractElementHandler {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (DB.isPostgreSQL()) {
|
if (DB.isPostgreSQL()) {
|
||||||
// rollback immediately postgres on exception to avoid a wrong SQL stop the whole process
|
// rollback immediately postgres on exception to avoid a wrong SQL stop the whole process
|
||||||
if (pstmt != null) {
|
if (savepoint != null)
|
||||||
Connection m_con = null;
|
{
|
||||||
|
Trx trx = Trx.get(getTrxName(ctx), false);
|
||||||
try {
|
try {
|
||||||
m_con = pstmt.getConnection();
|
trx.rollback(savepoint);
|
||||||
if (m_con != null && !m_con.getAutoCommit())
|
} catch (SQLException e1) {}
|
||||||
m_con.rollback();
|
savepoint = null;
|
||||||
} catch (SQLException ex) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.log(Level.SEVERE,"SQLSatement", e);
|
log.log(Level.SEVERE,"SQLSatement", e);
|
||||||
|
@ -106,6 +110,12 @@ public class SQLStatementElementHandler extends AbstractElementHandler {
|
||||||
} finally {
|
} finally {
|
||||||
DB.close(pstmt);
|
DB.close(pstmt);
|
||||||
pstmt = null;
|
pstmt = null;
|
||||||
|
if (savepoint != null) {
|
||||||
|
Trx trx = Trx.get(getTrxName(ctx), false);
|
||||||
|
try {
|
||||||
|
trx.releaseSavepoint(savepoint);
|
||||||
|
} catch (SQLException e) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,11 @@ import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.exceptions.AdempiereException;
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
|
import org.adempiere.pipo2.Element;
|
||||||
import org.adempiere.pipo2.ElementHandler;
|
import org.adempiere.pipo2.ElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
import org.adempiere.pipo2.exception.DatabaseAccessException;
|
||||||
|
@ -140,6 +140,7 @@ public class TabElementHandler extends AbstractElementHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.recordId = mTab.get_ID();
|
||||||
if (mTab.is_new() || mTab.is_Changed()) {
|
if (mTab.is_new() || mTab.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Tab.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Tab.Table_Name,
|
||||||
X_AD_Tab.Table_ID);
|
X_AD_Tab.Table_ID);
|
||||||
|
@ -153,7 +154,7 @@ public class TabElementHandler extends AbstractElementHandler {
|
||||||
}
|
}
|
||||||
if (mTab.save(getTrxName(ctx)) == true){
|
if (mTab.save(getTrxName(ctx)) == true){
|
||||||
logImportDetail (ctx, impDetail, 1, mTab.getName(), mTab.get_ID(),action);
|
logImportDetail (ctx, impDetail, 1, mTab.getName(), mTab.get_ID(),action);
|
||||||
element.recordId = mTab.getAD_Tab_ID();
|
element.recordId = mTab.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail (ctx, impDetail, 0, mTab.getName(), mTab.get_ID(),action);
|
logImportDetail (ctx, impDetail, 0, mTab.getName(), mTab.get_ID(),action);
|
||||||
throw new POSaveFailedException("Failed to save Tab " + mTab.getName());
|
throw new POSaveFailedException("Failed to save Tab " + mTab.getName());
|
||||||
|
@ -172,6 +173,8 @@ public class TabElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
int AD_Tab_ID = Env.getContextAsInt(ctx.ctx, "AD_Tab_ID");
|
int AD_Tab_ID = Env.getContextAsInt(ctx.ctx, "AD_Tab_ID");
|
||||||
|
if (ctx.packOut.isExported("AD_Tab_ID"+"|"+AD_Tab_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
boolean createElement = true;
|
boolean createElement = true;
|
||||||
X_AD_Tab m_Tab = new X_AD_Tab (ctx.ctx, AD_Tab_ID, getTrxName(ctx));
|
X_AD_Tab m_Tab = new X_AD_Tab (ctx.ctx, AD_Tab_ID, getTrxName(ctx));
|
||||||
|
@ -185,6 +188,13 @@ public class TabElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("","",I_AD_Tab.Table_Name,atts);
|
document.startElement("","",I_AD_Tab.Table_Name,atts);
|
||||||
createTabBinding(ctx,document,m_Tab);
|
createTabBinding(ctx,document,m_Tab);
|
||||||
|
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Tab.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Tab.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Fields tags.
|
//Fields tags.
|
||||||
|
|
|
@ -165,11 +165,10 @@ public class TableElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
|
|
||||||
int AD_Table_ID = Env.getContextAsInt(ctx.ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Table_ID);
|
int AD_Table_ID = Env.getContextAsInt(ctx.ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Table_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_Table_ID+"|"+AD_Table_ID))
|
||||||
|
return;
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
boolean exported = isTableProcess(ctx, AD_Table_ID);
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
//Export table if not already done so
|
|
||||||
if (!exported){
|
|
||||||
boolean createElement = true;
|
boolean createElement = true;
|
||||||
X_AD_Table m_Table = new X_AD_Table (ctx.ctx, AD_Table_ID, null);
|
X_AD_Table m_Table = new X_AD_Table (ctx.ctx, AD_Table_ID, null);
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
@ -269,8 +268,6 @@ public class TableElementHandler extends AbstractElementHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createColumn(PIPOContext ctx, TransformerHandler document, int AD_Column_ID) throws SAXException {
|
private void createColumn(PIPOContext ctx, TransformerHandler document, int AD_Column_ID) throws SAXException {
|
||||||
Env.setContext(ctx.ctx, X_AD_Column.COLUMNNAME_AD_Column_ID, AD_Column_ID);
|
Env.setContext(ctx.ctx, X_AD_Column.COLUMNNAME_AD_Column_ID, AD_Column_ID);
|
||||||
columnHandler.create(ctx, document);
|
columnHandler.create(ctx, document);
|
||||||
|
|
|
@ -17,16 +17,16 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
import org.compiere.model.I_AD_Task;
|
import org.compiere.model.I_AD_Task;
|
||||||
|
@ -39,8 +39,6 @@ import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
public class TaskElementHandler extends AbstractElementHandler {
|
public class TaskElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
private List<Integer> tasks = new ArrayList<Integer>();
|
|
||||||
|
|
||||||
public void startElement(PIPOContext ctx, Element element)
|
public void startElement(PIPOContext ctx, Element element)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
List<String> excludes = defaultExcludeList(X_AD_Task.Table_Name);
|
List<String> excludes = defaultExcludeList(X_AD_Task.Table_Name);
|
||||||
|
@ -69,6 +67,7 @@ public class TaskElementHandler extends AbstractElementHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
element.recordId = mTask.get_ID();
|
||||||
if (mTask.is_new() || mTask.is_Changed()) {
|
if (mTask.is_new() || mTask.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Task.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Task.Table_Name,
|
||||||
X_AD_Task.Table_ID);
|
X_AD_Task.Table_ID);
|
||||||
|
@ -82,6 +81,7 @@ public class TaskElementHandler extends AbstractElementHandler {
|
||||||
if (mTask.save(getTrxName(ctx)) == true) {
|
if (mTask.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, mTask.getName(), mTask.get_ID(),
|
logImportDetail(ctx, impDetail, 1, mTask.getName(), mTask.get_ID(),
|
||||||
action);
|
action);
|
||||||
|
element.recordId = mTask.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, mTask.getName(), mTask.get_ID(),
|
logImportDetail(ctx, impDetail, 0, mTask.getName(), mTask.get_ID(),
|
||||||
action);
|
action);
|
||||||
|
@ -99,9 +99,9 @@ public class TaskElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Task_ID = Env.getContextAsInt(ctx.ctx, "AD_Task_ID");
|
int AD_Task_ID = Env.getContextAsInt(ctx.ctx, "AD_Task_ID");
|
||||||
if (tasks.contains(AD_Task_ID))
|
if (ctx.packOut.isExported("AD_Task_ID"+"|"+AD_Task_ID))
|
||||||
return;
|
return;
|
||||||
tasks.add(AD_Task_ID);
|
|
||||||
X_AD_Task m_Task = new X_AD_Task(ctx.ctx, AD_Task_ID, null);
|
X_AD_Task m_Task = new X_AD_Task(ctx.ctx, AD_Task_ID, null);
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
if (m_Task.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
|
if (m_Task.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
|
||||||
|
@ -112,6 +112,15 @@ public class TaskElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Task.Table_Name, atts);
|
document.startElement("", "", I_AD_Task.Table_Name, atts);
|
||||||
createTaskBinding(ctx, document, m_Task);
|
createTaskBinding(ctx, document, m_Task);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",I_AD_Task.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Task.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("", "", I_AD_Task.Table_Name);
|
document.endElement("", "", I_AD_Task.Table_Name);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class WindowElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mWindow.get_ID();
|
||||||
if (mWindow.is_new() || mWindow.is_Changed()) {
|
if (mWindow.is_new() || mWindow.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Window.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Window.Table_Name,
|
||||||
X_AD_Window.Table_ID);
|
X_AD_Window.Table_ID);
|
||||||
|
@ -104,8 +104,8 @@ public class WindowElementHandler extends AbstractElementHandler {
|
||||||
if (mWindow.save(getTrxName(ctx)) == true) {
|
if (mWindow.save(getTrxName(ctx)) == true) {
|
||||||
logImportDetail(ctx, impDetail, 1, mWindow.getName(), mWindow
|
logImportDetail(ctx, impDetail, 1, mWindow.getName(), mWindow
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
element.recordId = mWindow.getAD_Window_ID();
|
|
||||||
windows.add(mWindow.getAD_Window_ID());
|
windows.add(mWindow.getAD_Window_ID());
|
||||||
|
element.recordId = mWindow.get_ID();
|
||||||
} else {
|
} else {
|
||||||
logImportDetail(ctx, impDetail, 0, mWindow.getName(), mWindow
|
logImportDetail(ctx, impDetail, 0, mWindow.getName(), mWindow
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
|
@ -123,6 +123,8 @@ public class WindowElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Window_ID = Env.getContextAsInt(ctx.ctx, "AD_Window_ID");
|
int AD_Window_ID = Env.getContextAsInt(ctx.ctx, "AD_Window_ID");
|
||||||
|
if (ctx.packOut.isExported("AD_Window_ID"+"|"+AD_Window_ID))
|
||||||
|
return;
|
||||||
PackOut packOut = ctx.packOut;
|
PackOut packOut = ctx.packOut;
|
||||||
|
|
||||||
boolean createElement = true;
|
boolean createElement = true;
|
||||||
|
@ -164,6 +166,12 @@ public class WindowElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_Window.Table_Name, atts);
|
document.startElement("", "", I_AD_Window.Table_Name, atts);
|
||||||
createWindowBinding(ctx, document, m_Window);
|
createWindowBinding(ctx, document, m_Window);
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",X_AD_Window.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Window.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Tab Tag
|
// Tab Tag
|
||||||
String sql = "SELECT AD_Tab_ID, AD_Table_ID FROM AD_TAB WHERE AD_WINDOW_ID = "
|
String sql = "SELECT AD_Tab_ID, AD_Table_ID FROM AD_TAB WHERE AD_WINDOW_ID = "
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mWorkflow.get_ID();
|
||||||
if (mWorkflow.is_new() || mWorkflow.is_Changed()) {
|
if (mWorkflow.is_new() || mWorkflow.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Workflow.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_Workflow.Table_Name,
|
||||||
X_AD_Workflow.Table_ID);
|
X_AD_Workflow.Table_ID);
|
||||||
|
@ -103,7 +103,7 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
logImportDetail(ctx,impDetail, 1, mWorkflow.getName(), mWorkflow
|
logImportDetail(ctx,impDetail, 1, mWorkflow.getName(), mWorkflow
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
workflows.add(mWorkflow.getAD_Workflow_ID());
|
workflows.add(mWorkflow.getAD_Workflow_ID());
|
||||||
element.recordId = mWorkflow.getAD_Workflow_ID();
|
element.recordId = mWorkflow.get_ID();
|
||||||
} else {
|
} else {
|
||||||
log.info("m_Workflow save failure");
|
log.info("m_Workflow save failure");
|
||||||
logImportDetail(ctx, impDetail, 0, mWorkflow.getName(), mWorkflow
|
logImportDetail(ctx, impDetail, 0, mWorkflow.getName(), mWorkflow
|
||||||
|
@ -158,10 +158,9 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_Workflow_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_Workflow_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_Package_Exp_Detail.COLUMNNAME_AD_Workflow_ID);
|
X_AD_Package_Exp_Detail.COLUMNNAME_AD_Workflow_ID);
|
||||||
if (workflows.contains(AD_Workflow_ID))
|
if (ctx.packOut.isExported(X_AD_Package_Exp_Detail.COLUMNNAME_AD_Workflow_ID+"|"+AD_Workflow_ID))
|
||||||
return;
|
return;
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
workflows.add(AD_Workflow_ID);
|
|
||||||
int ad_wf_nodenext_id = 0;
|
int ad_wf_nodenext_id = 0;
|
||||||
int ad_wf_nodenextcondition_id = 0;
|
int ad_wf_nodenextcondition_id = 0;
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
|
@ -179,6 +178,13 @@ public class WorkflowElementHandler extends AbstractElementHandler {
|
||||||
atts.addAttribute("", "", "type-name", "CDATA", "ad.workflow");
|
atts.addAttribute("", "", "type-name", "CDATA", "ad.workflow");
|
||||||
document.startElement("", "", I_AD_Workflow.Table_Name, atts);
|
document.startElement("", "", I_AD_Workflow.Table_Name, atts);
|
||||||
createWorkflowBinding(ctx, document, m_Workflow);
|
createWorkflowBinding(ctx, document, m_Workflow);
|
||||||
|
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",I_AD_Workflow.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_Workflow.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String sql = "SELECT AD_WF_Node_ID FROM AD_WF_Node WHERE AD_Workflow_ID = "
|
String sql = "SELECT AD_WF_Node_ID FROM AD_WF_Node WHERE AD_Workflow_ID = "
|
||||||
|
|
|
@ -18,14 +18,15 @@
|
||||||
package org.adempiere.pipo2.handler;
|
package org.adempiere.pipo2.handler;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -94,7 +95,7 @@ public class WorkflowNodeElementHandler extends AbstractElementHandler {
|
||||||
element.unresolved = notfounds.toString();
|
element.unresolved = notfounds.toString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
element.recordId = mWFNode.get_ID();
|
||||||
if (mWFNode.is_new() || mWFNode.is_Changed()) {
|
if (mWFNode.is_new() || mWFNode.is_Changed()) {
|
||||||
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_WF_Node.Table_Name,
|
X_AD_Package_Imp_Detail impDetail = createImportDetail(ctx, element.qName, X_AD_WF_Node.Table_Name,
|
||||||
X_AD_WF_Node.Table_ID);
|
X_AD_WF_Node.Table_ID);
|
||||||
|
@ -111,6 +112,7 @@ public class WorkflowNodeElementHandler extends AbstractElementHandler {
|
||||||
log.info("m_WFNode save success");
|
log.info("m_WFNode save success");
|
||||||
logImportDetail(ctx, impDetail, 1, mWFNode.getName(), mWFNode
|
logImportDetail(ctx, impDetail, 1, mWFNode.getName(), mWFNode
|
||||||
.get_ID(), action);
|
.get_ID(), action);
|
||||||
|
element.recordId = mWFNode.get_ID();
|
||||||
} else {
|
} else {
|
||||||
log.info("m_WFNode save failure");
|
log.info("m_WFNode save failure");
|
||||||
logImportDetail(ctx, impDetail, 0, mWFNode.getName(), mWFNode
|
logImportDetail(ctx, impDetail, 0, mWFNode.getName(), mWFNode
|
||||||
|
@ -130,6 +132,9 @@ public class WorkflowNodeElementHandler extends AbstractElementHandler {
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int AD_WF_Node_ID = Env.getContextAsInt(ctx.ctx,
|
int AD_WF_Node_ID = Env.getContextAsInt(ctx.ctx,
|
||||||
X_AD_WF_Node.COLUMNNAME_AD_WF_Node_ID);
|
X_AD_WF_Node.COLUMNNAME_AD_WF_Node_ID);
|
||||||
|
if (ctx.packOut.isExported(X_AD_WF_Node.COLUMNNAME_AD_WF_Node_ID+"|"+AD_WF_Node_ID))
|
||||||
|
return;
|
||||||
|
|
||||||
AttributesImpl atts = new AttributesImpl();
|
AttributesImpl atts = new AttributesImpl();
|
||||||
MWFNode m_WF_Node = new MWFNode(ctx.ctx, AD_WF_Node_ID,
|
MWFNode m_WF_Node = new MWFNode(ctx.ctx, AD_WF_Node_ID,
|
||||||
getTrxName(ctx));
|
getTrxName(ctx));
|
||||||
|
@ -141,6 +146,15 @@ public class WorkflowNodeElementHandler extends AbstractElementHandler {
|
||||||
addTypeName(atts, "table");
|
addTypeName(atts, "table");
|
||||||
document.startElement("", "", I_AD_WF_Node.Table_Name, atts);
|
document.startElement("", "", I_AD_WF_Node.Table_Name, atts);
|
||||||
createWorkflowNodeBinding(ctx, document, m_WF_Node);
|
createWorkflowNodeBinding(ctx, document, m_WF_Node);
|
||||||
|
|
||||||
|
PackOut packOut = ctx.packOut;
|
||||||
|
packOut.getCtx().ctx.put("Table_Name",I_AD_WF_Node.Table_Name);
|
||||||
|
try {
|
||||||
|
new CommonTranslationHandler().packOut(packOut,document,null,m_WF_Node.get_ID());
|
||||||
|
} catch(Exception e) {
|
||||||
|
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||||
|
}
|
||||||
|
|
||||||
document.endElement("", "", I_AD_WF_Node.Table_Name);
|
document.endElement("", "", I_AD_WF_Node.Table_Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,10 @@ import java.util.List;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -154,6 +154,9 @@ public class WorkflowNodeNextConditionElementHandler extends
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int ad_wf_nodenextcondition_id = Env.getContextAsInt(ctx.ctx, "AD_WF_NextCondition_ID");
|
int ad_wf_nodenextcondition_id = Env.getContextAsInt(ctx.ctx, "AD_WF_NextCondition_ID");
|
||||||
|
if (ctx.packOut.isExported("AD_WF_NextCondition_ID"+"|"+ad_wf_nodenextcondition_id))
|
||||||
|
return;
|
||||||
|
|
||||||
MWFNextCondition m_WF_NodeNextCondition = new MWFNextCondition(
|
MWFNextCondition m_WF_NodeNextCondition = new MWFNextCondition(
|
||||||
ctx.ctx, ad_wf_nodenextcondition_id, null);
|
ctx.ctx, ad_wf_nodenextcondition_id, null);
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -21,10 +21,10 @@ import java.util.List;
|
||||||
import javax.xml.transform.sax.TransformerHandler;
|
import javax.xml.transform.sax.TransformerHandler;
|
||||||
|
|
||||||
import org.adempiere.pipo2.AbstractElementHandler;
|
import org.adempiere.pipo2.AbstractElementHandler;
|
||||||
import org.adempiere.pipo2.PIPOContext;
|
|
||||||
import org.adempiere.pipo2.PoExporter;
|
|
||||||
import org.adempiere.pipo2.Element;
|
import org.adempiere.pipo2.Element;
|
||||||
|
import org.adempiere.pipo2.PIPOContext;
|
||||||
import org.adempiere.pipo2.PackOut;
|
import org.adempiere.pipo2.PackOut;
|
||||||
|
import org.adempiere.pipo2.PoExporter;
|
||||||
import org.adempiere.pipo2.PoFiller;
|
import org.adempiere.pipo2.PoFiller;
|
||||||
import org.adempiere.pipo2.ReferenceUtils;
|
import org.adempiere.pipo2.ReferenceUtils;
|
||||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||||
|
@ -145,6 +145,9 @@ public class WorkflowNodeNextElementHandler extends AbstractElementHandler {
|
||||||
public void create(PIPOContext ctx, TransformerHandler document)
|
public void create(PIPOContext ctx, TransformerHandler document)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
int ad_wf_nodenext_id = Env.getContextAsInt(ctx.ctx, "AD_WF_NodeNext_ID");
|
int ad_wf_nodenext_id = Env.getContextAsInt(ctx.ctx, "AD_WF_NodeNext_ID");
|
||||||
|
if (ctx.packOut.isExported("AD_WF_NodeNext_ID"+"|"+ad_wf_nodenext_id))
|
||||||
|
return;
|
||||||
|
|
||||||
MWFNodeNext m_WF_NodeNext = new MWFNodeNext(
|
MWFNodeNext m_WF_NodeNext = new MWFNodeNext(
|
||||||
ctx.ctx, ad_wf_nodenext_id, null);
|
ctx.ctx, ad_wf_nodenext_id, null);
|
||||||
if (ctx.packOut.getFromDate() != null) {
|
if (ctx.packOut.getFromDate() != null) {
|
||||||
|
|
|
@ -440,7 +440,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
|
||||||
*/
|
*/
|
||||||
protected boolean isHandleTranslations(Properties ctx) {
|
protected boolean isHandleTranslations(Properties ctx) {
|
||||||
|
|
||||||
return "true".equalsIgnoreCase(Env.getContext(ctx, "isHandleTranslations"));
|
return "Y".equalsIgnoreCase(Env.getContext(ctx, "isHandleTranslations"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue