BF [2910289] - More on RMA Stabilization

https://sourceforge.net/tracker/?func=detail&aid=2910289&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2009-12-07 21:16:29 +00:00
parent 3cb217bb60
commit ffbdd8f3ee
1 changed files with 21 additions and 2 deletions

View File

@ -291,10 +291,29 @@ public class MRMALine extends X_M_RMALine
return success; return success;
} }
MRMA rma = new MRMA(getCtx(), getM_RMA_ID(), get_TrxName()); MRMA rma = getParent();
rma.updateAmount(); rma.updateAmount();
if (!rma.save()) if (!rma.save(get_TrxName()))
{
throw new IllegalStateException("Could not update RMA grand total");
}
return true;
}
@Override
protected boolean afterDelete(boolean success)
{
if (!success)
{
return success;
}
MRMA rma = getParent();
rma.updateAmount();
if (!rma.save(get_TrxName()))
{ {
throw new IllegalStateException("Could not update RMA grand total"); throw new IllegalStateException("Could not update RMA grand total");
} }