IDEMPIERE-1764 Reversing a prepayment messes up the accounting

This commit is contained in:
Carlos Ruiz 2014-02-26 10:10:12 -05:00
parent 6dd5e1e204
commit 17d281a701
1 changed files with 2 additions and 3 deletions

View File

@ -2381,8 +2381,7 @@ public final class MPayment extends X_C_Payment
*/
private void deAllocate(boolean accrual)
{
if (getC_Order_ID() != 0)
setC_Order_ID(0);
// if (getC_Order_ID() != 0) setC_Order_ID(0); // IDEMPIERE-1764
// if (getC_Invoice_ID() == 0)
// return;
// De-Allocate all
@ -2577,7 +2576,7 @@ public final class MPayment extends X_C_Payment
MPayment reversal = new MPayment (getCtx(), 0, get_TrxName());
copyValues(this, reversal);
reversal.setClientOrg(this);
reversal.setC_Order_ID(0);
// reversal.setC_Order_ID(0); // IDEMPIERE-1764
reversal.setC_Invoice_ID(0);
reversal.setDateAcct(dateAcct);
//