From a7bd20b4a470fe61c899fa1e504f79c9fd12032b Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 16 Nov 2007 04:22:29 +0000 Subject: [PATCH] Complete FR [ 1675372 ] Add supplier/vendor to productinfo --- .../src/org/compiere/apps/search/InfoProduct.java | 2 +- migration/330-trunk/036_FR1675372.sql | 14 ++++++++++++++ migration/330-trunk/postgresql/036_FR1675372.sql | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 migration/330-trunk/036_FR1675372.sql create mode 100644 migration/330-trunk/postgresql/036_FR1675372.sql diff --git a/client/src/org/compiere/apps/search/InfoProduct.java b/client/src/org/compiere/apps/search/InfoProduct.java index 1a6e7c2838..e9094f9e3b 100644 --- a/client/src/org/compiere/apps/search/InfoProduct.java +++ b/client/src/org/compiere/apps/search/InfoProduct.java @@ -158,7 +158,7 @@ public final class InfoProduct extends Info implements ActionListener parameterPanel.add(fieldValue, null); parameterPanel.add(labelUPC, null); parameterPanel.add(fieldUPC, null); - parameterPanel.add(labelWarehouse, null); + parameterPanel.add(labelWarehouse, new ALayoutConstraint(0,6)); parameterPanel.add(pickWarehouse, null); parameterPanel.add(m_InfoPAttributeButton); // Line 2 diff --git a/migration/330-trunk/036_FR1675372.sql b/migration/330-trunk/036_FR1675372.sql new file mode 100644 index 0000000000..7244fcd721 --- /dev/null +++ b/migration/330-trunk/036_FR1675372.sql @@ -0,0 +1,14 @@ +-- Nov 15, 2007 9:19:15 PM COT +-- FR 1675372 - Add supplier/vendor to productinfo +INSERT INTO AD_MESSAGE (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,VALUE) VALUES (0,53008,0,TO_DATE('2007-11-15 21:19:10','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Vendor','I',TO_DATE('2007-11-15 21:19:10','YYYY-MM-DD HH24:MI:SS'),100,'Vendor') +/ + +-- Nov 15, 2007 9:19:15 PM COT +-- FR 1675372 - Add supplier/vendor to productinfo +INSERT INTO AD_MESSAGE_TRL (AD_LANGUAGE,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_LANGUAGE,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_LANGUAGE l, AD_MESSAGE t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53008 AND EXISTS (SELECT * FROM AD_MESSAGE_TRL tt WHERE tt.AD_LANGUAGE!=l.AD_LANGUAGE OR tt.AD_Message_ID!=t.AD_Message_ID) +/ + +UPDATE AD_MESSAGE_TRL + SET msgtext = 'Proveedor' + WHERE ad_message_id = 53008 AND AD_LANGUAGE LIKE 'es_%' +/ diff --git a/migration/330-trunk/postgresql/036_FR1675372.sql b/migration/330-trunk/postgresql/036_FR1675372.sql new file mode 100644 index 0000000000..88eca4c9aa --- /dev/null +++ b/migration/330-trunk/postgresql/036_FR1675372.sql @@ -0,0 +1,14 @@ +-- Nov 15, 2007 9:19:15 PM COT +-- FR 1675372 - Add supplier/vendor to productinfo +INSERT INTO AD_MESSAGE (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,VALUE) VALUES (0,53008,0,TO_TIMESTAMP('2007-11-15 21:19:10','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Vendor','I',TO_TIMESTAMP('2007-11-15 21:19:10','YYYY-MM-DD HH24:MI:SS'),100,'Vendor') +/ + +-- Nov 15, 2007 9:19:15 PM COT +-- FR 1675372 - Add supplier/vendor to productinfo +INSERT INTO AD_MESSAGE_TRL (AD_LANGUAGE,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_LANGUAGE,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_LANGUAGE l, AD_MESSAGE t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53008 AND EXISTS (SELECT * FROM AD_MESSAGE_TRL tt WHERE tt.AD_LANGUAGE!=l.AD_LANGUAGE OR tt.AD_Message_ID!=t.AD_Message_ID) +/ + +UPDATE AD_MESSAGE_TRL + SET msgtext = 'Proveedor' + WHERE ad_message_id = 53008 AND AD_LANGUAGE LIKE 'es_%' +/