Can't create shipments with product type service

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2794909&group_id=176962
Bug introducing in BF[ 2557978 ]

kind regards
Victor Perez
www.e-evolution.com
This commit is contained in:
vpj-cd 2009-05-21 17:28:37 +00:00
parent d77535084e
commit 3e4f43e80e
1 changed files with 7 additions and 3 deletions

View File

@ -494,10 +494,14 @@ public class MInOutLine extends X_M_InOutLine
return false;
}
// Locator is mandatory if no charge is defined - teo_sarca BF [ 2757978 ]
if (getM_Locator_ID() <= 0 && getC_Charge_ID() <= 0)
{
throw new FillMandatoryException(COLUMNNAME_M_Locator_ID);
if(MProduct.PRODUCTTYPE_Item.equals(getProduct().getProductType()))
{
if (getM_Locator_ID() <= 0 && getC_Charge_ID() <= 0)
{
throw new FillMandatoryException(COLUMNNAME_M_Locator_ID);
}
}
// Get Line No
if (getLine() == 0)
{