IDEMPIERE-2624 Cant confirm 0 qty on Shipment Confirmation (#917)

This commit is contained in:
Carlos Ruiz 2021-10-12 03:36:49 +02:00 committed by GitHub
parent eb3db56364
commit 68d2d7432e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -527,6 +527,11 @@ public class MInOutLine extends X_M_InOutLine
)
{
// OK to save qty=0 when voiding
} else if ( MInOut.DOCACTION_Complete.equals(docAction)
&& MInOut.DOCSTATUS_InProgress.equals(docStatus))
{
// IDEMPIERE-2624 Cant confirm 0 qty on Movement Confirmation
// zero allowed in this case (action Complete and status In Progress)
} else {
log.saveError("SaveError", Msg.parseTranslation(getCtx(), "@Open@: @M_InOutConfirm_ID@"));
return false;