IDEMPIERE-5304 - Missing Message from Payment (#1346)
* IDEMPIERE-5304 - Missing Message from Payment * IDEMPIERE-5304 - replaced message type and Msg.translate method
This commit is contained in:
parent
935987bd9d
commit
0dd6c2b4a9
|
@ -0,0 +1,14 @@
|
|||
-- IDEMPIERE-5304
|
||||
SELECT register_migration_script('202205261621_IDEMPIERE-5304.sql') FROM dual;
|
||||
|
||||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- May 26, 2022, 4:21:54 PM CEST
|
||||
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 ('E','Business Partner is different from Invoice - Business Partner',0,0,'Y',TO_TIMESTAMP('2022-05-26 16:21:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-26 16:21:53','YYYY-MM-DD HH24:MI:SS'),100,200757,'BPDifferentFromBPInvoice','D','a67cc8e4-94e3-449e-aacb-55a45ae7f4fd')
|
||||
;
|
||||
|
||||
-- May 26, 2022, 4:22:12 PM CEST
|
||||
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 ('E','Business Partner is different from Order - Business Partner',0,0,'Y',TO_TIMESTAMP('2022-05-26 16:22:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-26 16:22:12','YYYY-MM-DD HH24:MI:SS'),100,200758,'BPDifferentFromBPOrder','D','d7547154-6d4f-490f-ba2f-c90ef83604c0')
|
||||
;
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
-- IDEMPIERE-5304
|
||||
SELECT register_migration_script('202205261621_IDEMPIERE-5304.sql') FROM dual;
|
||||
|
||||
-- May 26, 2022, 4:21:54 PM CEST
|
||||
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 ('E','Business Partner is different from Invoice - Business Partner',0,0,'Y',TO_TIMESTAMP('2022-05-26 16:21:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-26 16:21:53','YYYY-MM-DD HH24:MI:SS'),100,200757,'BPDifferentFromBPInvoice','D','a67cc8e4-94e3-449e-aacb-55a45ae7f4fd')
|
||||
;
|
||||
|
||||
-- May 26, 2022, 4:22:12 PM CEST
|
||||
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 ('E','Business Partner is different from Order - Business Partner',0,0,'Y',TO_TIMESTAMP('2022-05-26 16:22:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-26 16:22:12','YYYY-MM-DD HH24:MI:SS'),100,200758,'BPDifferentFromBPOrder','D','d7547154-6d4f-490f-ba2f-c90ef83604c0')
|
||||
;
|
||||
|
|
@ -792,14 +792,14 @@ public class MPayment extends X_C_Payment
|
|||
if (getC_Invoice_ID() != 0) {
|
||||
MInvoice inv = new MInvoice(getCtx(), getC_Invoice_ID(), get_TrxName());
|
||||
if (inv.getC_BPartner_ID() != getC_BPartner_ID()) {
|
||||
log.saveError("Error", Msg.parseTranslation(getCtx(), "BP different from BP Invoice"));
|
||||
log.saveError("Error", Msg.getMsg(getCtx(), "BPDifferentFromBPInvoice"));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (getC_Order_ID() != 0) {
|
||||
MOrder ord = new MOrder(getCtx(), getC_Order_ID(), get_TrxName());
|
||||
if (ord.getC_BPartner_ID() != getC_BPartner_ID()) {
|
||||
log.saveError("Error", Msg.parseTranslation(getCtx(), "BP different from BP Order"));
|
||||
log.saveError("Error", Msg.getMsg(getCtx(), "BPDifferentFromBPOrder"));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue