IDEMPIERE-235 Generate Shipments is generating partial for complete orders (#58)
This commit is contained in:
parent
cc159a3e53
commit
86ca0a9523
|
@ -1289,7 +1289,7 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bug 1564431
|
// Bug 1564431
|
||||||
if (getDeliveryRule() != null && getDeliveryRule().equals(MOrder.DELIVERYRULE_CompleteOrder))
|
if (MOrder.DELIVERYRULE_CompleteOrder.equals(getDeliveryRule()) )
|
||||||
{
|
{
|
||||||
for (int i = 0; i < lines.length; i++)
|
for (int i = 0; i < lines.length; i++)
|
||||||
{
|
{
|
||||||
|
@ -1300,6 +1300,11 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
m_processMsg = "@M_Product_ID@ "+product.getValue()+" @IsExcludeAutoDelivery@";
|
m_processMsg = "@M_Product_ID@ "+product.getValue()+" @IsExcludeAutoDelivery@";
|
||||||
return DocAction.STATUS_Invalid;
|
return DocAction.STATUS_Invalid;
|
||||||
}
|
}
|
||||||
|
if (line.getDatePromised() != null && !line.getDatePromised().equals(getDatePromised()))
|
||||||
|
{
|
||||||
|
m_processMsg = "@Line@ " + line.getLine() + " - @Invalid@ @DatePromised@";
|
||||||
|
return DocAction.STATUS_Invalid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue