public void modified()
{
Super();
select prodBom where prodBom.ProdId == rejectionLine.ProdId;
if(rejectionLine.ReceivedQuantity <= prodBom.BOMQty)
{
RejectionLine.x_ForwardQuantity = RejectionLine.ReceivedQuantity - RejectionLine.Error_Qty;
}
else
{
RejectionLine.ReceivedQuantity = 0;
error(strfmt("Received quantity should be less than BOM quantity - %1 " ,prodBom.BOMQty));
error(strfmt(" BOM quantity is - %1 ",prodBom.BOMQty));
}
}
No comments:
Post a Comment