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:
phib 2010-02-24 03:44:39 +00:00
parent b6fe0e9ee8
commit c5f6c84434
1 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@ public final class MPaySelectionCheck extends X_C_PaySelectionCheck
for (int i = 0; i < checks.length; i++) for (int i = 0; i < checks.length; i++)
{ {
MPaySelectionCheck check = checks[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 // Existing Payment
if (check.getC_Payment_ID() != 0) if (check.getC_Payment_ID() != 0)
{ {
@ -450,7 +450,7 @@ public final class MPaySelectionCheck extends X_C_PaySelectionCheck
} }
else // New Payment 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()); payment.setAD_Org_ID(check.getAD_Org_ID());
// //
if (check.getPaymentRule().equals(PAYMENTRULE_Check)) if (check.getPaymentRule().equals(PAYMENTRULE_Check))