IDEMPIERE-370 Implement link from process ending message to next records / BankTransfer
This commit is contained in:
parent
e133d7ceaa
commit
26e9f707cd
|
@ -164,6 +164,10 @@ public class BankTransfer extends SvrProcess
|
||||||
throw new IllegalStateException("Payment Process Failed: " + paymentBankFrom + " - " + paymentBankFrom.getProcessMsg());
|
throw new IllegalStateException("Payment Process Failed: " + paymentBankFrom + " - " + paymentBankFrom.getProcessMsg());
|
||||||
}
|
}
|
||||||
paymentBankFrom.saveEx();
|
paymentBankFrom.saveEx();
|
||||||
|
addLog(paymentBankFrom.getC_Payment_ID(), paymentBankFrom.getDateTrx(),
|
||||||
|
null, paymentBankFrom.getC_DocType().getName() + " " + paymentBankFrom.getDocumentNo(),
|
||||||
|
MPayment.Table_ID, paymentBankFrom.getC_Payment_ID());
|
||||||
|
m_created++;
|
||||||
|
|
||||||
MPayment paymentBankTo = new MPayment(getCtx(), 0 , get_TrxName());
|
MPayment paymentBankTo = new MPayment(getCtx(), 0 , get_TrxName());
|
||||||
paymentBankTo.setC_BankAccount_ID(mBankTo.getC_BankAccount_ID());
|
paymentBankTo.setC_BankAccount_ID(mBankTo.getC_BankAccount_ID());
|
||||||
|
@ -186,6 +190,9 @@ public class BankTransfer extends SvrProcess
|
||||||
throw new IllegalStateException("Payment Process Failed: " + paymentBankTo + " - " + paymentBankTo.getProcessMsg());
|
throw new IllegalStateException("Payment Process Failed: " + paymentBankTo + " - " + paymentBankTo.getProcessMsg());
|
||||||
}
|
}
|
||||||
paymentBankTo.saveEx();
|
paymentBankTo.saveEx();
|
||||||
|
addLog(paymentBankTo.getC_Payment_ID(), paymentBankTo.getDateTrx(),
|
||||||
|
null, paymentBankTo.getC_DocType().getName() + " " + paymentBankTo.getDocumentNo(),
|
||||||
|
MPayment.Table_ID, paymentBankTo.getC_Payment_ID());
|
||||||
m_created++;
|
m_created++;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue