Fix [ 2092198 ] Error voiding an Inventory Move
This commit is contained in:
parent
53bc5e47c4
commit
db492a76f6
|
@ -177,9 +177,22 @@ public class MMovementLine extends X_M_MovementLine
|
||||||
|
|
||||||
if (getMovementQty().signum() == 0)
|
if (getMovementQty().signum() == 0)
|
||||||
{
|
{
|
||||||
|
if ( MMovement.DOCACTION_Void.equals(getParent().getDocAction())
|
||||||
|
&& ( MMovement.DOCSTATUS_Drafted.equals(getParent().getDocStatus())
|
||||||
|
|| MMovement.DOCSTATUS_Invalid.equals(getParent().getDocStatus())
|
||||||
|
|| MMovement.DOCSTATUS_InProgress.equals(getParent().getDocStatus())
|
||||||
|
|| MMovement.DOCSTATUS_Approved.equals(getParent().getDocStatus())
|
||||||
|
|| MMovement.DOCSTATUS_NotApproved.equals(getParent().getDocStatus())
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
// [ 2092198 ] Error voiding an Inventory Move - globalqss
|
||||||
|
// zero allowed in this case (action Void and status Draft)
|
||||||
|
} else {
|
||||||
log.saveError("FillMandatory", Msg.getElement(getCtx(), "MovementQty"));
|
log.saveError("FillMandatory", Msg.getElement(getCtx(), "MovementQty"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Qty Precision
|
// Qty Precision
|
||||||
if (newRecord || is_ValueChanged(COLUMNNAME_MovementQty))
|
if (newRecord || is_ValueChanged(COLUMNNAME_MovementQty))
|
||||||
|
|
Loading…
Reference in New Issue