
在InventMovent的checkLocationBlocking方法中可以看到它的逻辑:
boolean checkLocationBlocking(InventDim inventDimLocation = null)
{
boolean ret = true;
WMSLocation WMSLocation;
InventDim inventDimThis;
;
if (!this.mustCheckLocationBlocking())
return true;
inventDimThis = inventDimLocation;
if (!inventDimLocation.wMSLocationId)
{
inventDimThis = this.inventdim();
if (!inventDimThis.wMSLocationId)
return true;
}
WMSLocation = inventDimThis.WMSLocation();
if (!WMSLocation)
return true;
if (WMSLocation.InputBlockingCauseId && this.transQty() > 0)
ret = checkFailed(strfmt("@SYS72264", inventDimThis.wMSLocationId));
if (WMSLocation.OutputBlockingCauseId && this.transQty() < 0)
ret = checkFailed(strfmt("@SYS72265", inventDimThis.wMSLocationId));
return ret;
}个人觉得还是通过是否来判断比较好,无非加个字段而已.

