BF [ 2797938 ] Receipt should not allow lines with Qty=0
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2797938&group_id=176962 Data integrity check
This commit is contained in:
parent
68767b0219
commit
4c87aebb13
|
@ -37,6 +37,8 @@ import org.compiere.util.Util;
|
||||||
* @author Teo Sarca, www.arhipac.ro
|
* @author Teo Sarca, www.arhipac.ro
|
||||||
* <li>BF [ 2784194 ] Check Warehouse-Locator conflict
|
* <li>BF [ 2784194 ] Check Warehouse-Locator conflict
|
||||||
* https://sourceforge.net/tracker/?func=detail&aid=2784194&group_id=176962&atid=879332
|
* https://sourceforge.net/tracker/?func=detail&aid=2784194&group_id=176962&atid=879332
|
||||||
|
* <li>BF [ 2797938 ] Receipt should not allow lines with Qty=0
|
||||||
|
* https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2797938&group_id=176962
|
||||||
*/
|
*/
|
||||||
public class MInOutLine extends X_M_InOutLine
|
public class MInOutLine extends X_M_InOutLine
|
||||||
{
|
{
|
||||||
|
@ -520,6 +522,15 @@ public class MInOutLine extends X_M_InOutLine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Receipt should not allow lines with Qty=0 - teo_sarca [ 2797938 ]
|
||||||
|
if (!isDescription()
|
||||||
|
&& getMovementQty().signum() == 0
|
||||||
|
&& getPickedQty().signum() == 0
|
||||||
|
&& getScrappedQty().signum() == 0)
|
||||||
|
{
|
||||||
|
throw new FillMandatoryException(COLUMNNAME_MovementQty);
|
||||||
|
}
|
||||||
|
|
||||||
// Get Line No
|
// Get Line No
|
||||||
if (getLine() == 0)
|
if (getLine() == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue