IDEMPIERE-545 improve logic of MMovementLineConfirm.ProcessLine() method. Fixed difference doc not created when it is fully confirmed but there's scrapped qty.

This commit is contained in:
Heng Sin Low 2013-07-29 17:44:18 +08:00
parent 19e875baf1
commit a9b1e95f6b
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ public class MMovementConfirm extends X_M_MovementConfirm implements DocAction
m_processMsg = "ShipLine not saved - " + confirm;
return DocAction.STATUS_Invalid;
}
if (confirm.isFullyConfirmed())
if (confirm.isFullyConfirmed() && confirm.getScrappedQty().signum() == 0)
{
confirm.setProcessed(true);
confirm.saveEx(get_TrxName());