BF 2957756: Payment selection print creates payments out of transaction
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2957756
This commit is contained in:
parent
b6fe0e9ee8
commit
c5f6c84434
|
@ -436,7 +436,7 @@ public final class MPaySelectionCheck extends X_C_PaySelectionCheck
|
|||
for (int i = 0; i < checks.length; i++)
|
||||
{
|
||||
MPaySelectionCheck check = checks[i];
|
||||
MPayment payment = new MPayment(check.getCtx(), check.getC_Payment_ID(), null);
|
||||
MPayment payment = new MPayment(check.getCtx(), check.getC_Payment_ID(), check.get_TrxName());
|
||||
// Existing Payment
|
||||
if (check.getC_Payment_ID() != 0)
|
||||
{
|
||||
|
@ -450,7 +450,7 @@ public final class MPaySelectionCheck extends X_C_PaySelectionCheck
|
|||
}
|
||||
else // New Payment
|
||||
{
|
||||
payment = new MPayment(check.getCtx(), 0, null);
|
||||
payment = new MPayment(check.getCtx(), 0, check.get_TrxName());
|
||||
payment.setAD_Org_ID(check.getAD_Org_ID());
|
||||
//
|
||||
if (check.getPaymentRule().equals(PAYMENTRULE_Check))
|
||||
|
|
Loading…
Reference in New Issue