BF [2910289] - More on RMA Stabilization
https://sourceforge.net/tracker/?func=detail&aid=2910289&group_id=176962&atid=879332
This commit is contained in:
parent
3cb217bb60
commit
ffbdd8f3ee
|
@ -291,10 +291,29 @@ public class MRMALine extends X_M_RMALine
|
|||
return success;
|
||||
}
|
||||
|
||||
MRMA rma = new MRMA(getCtx(), getM_RMA_ID(), get_TrxName());
|
||||
MRMA rma = getParent();
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue