From 31b758cd7610d89f3648dd0dfcbf3b54533ccda7 Mon Sep 17 00:00:00 2001 From: Layda Salas Date: Tue, 1 Mar 2022 09:06:22 +0100 Subject: [PATCH] =?UTF-8?q?IDEMPIERE-2567=20RfQResponseRank's=20message=20?= =?UTF-8?q?is=20hard=20coding,cannot=20transl=E2=80=A6=20(#1205)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IDEMPIERE-2567 RfQResponseRank's message is hard coding,cannot translaten #resolve #fixversion 10 * IDEMPIERE-2567 RfQResponseRank's message is hard coding,cannot translaten #resolve #fixversion 10 --- migration/iD10/oracle/202202271650_IDEMPIERE-2567.sql | 11 +++++++++++ .../iD10/postgresql/202202271650_IDEMPIERE-2567.sql | 8 ++++++++ .../src/org/compiere/process/RfQResponseRank.java | 3 ++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 migration/iD10/oracle/202202271650_IDEMPIERE-2567.sql create mode 100644 migration/iD10/postgresql/202202271650_IDEMPIERE-2567.sql diff --git a/migration/iD10/oracle/202202271650_IDEMPIERE-2567.sql b/migration/iD10/oracle/202202271650_IDEMPIERE-2567.sql new file mode 100644 index 0000000000..00a3617d03 --- /dev/null +++ b/migration/iD10/oracle/202202271650_IDEMPIERE-2567.sql @@ -0,0 +1,11 @@ +-- IDEMPIERE-2567 RfQResponseRank's message is hard coding,cannot translate +SELECT register_migration_script('202202271650_IDEMPIERE-2567.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Feb 27, 2022, 4:50:46 PM CET +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Only one completed RfQ Response found',0,0,'Y',TO_TIMESTAMP('2022-02-27 16:50:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-02-27 16:50:46','YYYY-MM-DD HH24:MI:SS'),100,200731,'OnlyOneRfQResponse','D','4d2dea2d-b2e9-443f-9aef-27a5d8fafa18') +; + + diff --git a/migration/iD10/postgresql/202202271650_IDEMPIERE-2567.sql b/migration/iD10/postgresql/202202271650_IDEMPIERE-2567.sql new file mode 100644 index 0000000000..4cfcd228af --- /dev/null +++ b/migration/iD10/postgresql/202202271650_IDEMPIERE-2567.sql @@ -0,0 +1,8 @@ +-- IDEMPIERE-2567 RfQResponseRank's message is hard coding,cannot translate +SELECT register_migration_script('202202271650_IDEMPIERE-2567.sql') FROM dual; + +-- Feb 27, 2022, 4:50:46 PM CET +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Only one completed RfQ Response found',0,0,'Y',TO_TIMESTAMP('2022-02-27 16:50:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-02-27 16:50:46','YYYY-MM-DD HH24:MI:SS'),100,200731,'OnlyOneRfQResponse','D','4d2dea2d-b2e9-443f-9aef-27a5d8fafa18') +; + + diff --git a/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java b/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java index 4b469907bf..302ffaec75 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java +++ b/org.adempiere.base.process/src/org/compiere/process/RfQResponseRank.java @@ -27,6 +27,7 @@ import org.compiere.model.MRfQResponse; import org.compiere.model.MRfQResponseLine; import org.compiere.model.MRfQResponseLineQty; import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Rank RfQ Responses @@ -90,7 +91,7 @@ public class RfQResponseRank extends SvrProcess { responses[0].setIsSelectedWinner(true); responses[0].saveEx(); - return "Only one completed RfQ Response found"; + return Msg.getMsg(Env.getCtx(), "OnlyOneRfQResponse"); } // Rank