Commit 412c5479 authored by msharma's avatar msharma

Scrap item considered in QC transfer


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94483 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 987aecae
......@@ -350,7 +350,8 @@ QCTransferConfLocal, QCTransferConfRemote
//if(!byprodUnit.equalsIgnoreCase(qcOrdItemUnit))
if(!qcOrderItem.equalsIgnoreCase(itemCode))
{
convertedQty=dcommon.convQtyFactor(byprodUnit, qcOrdItemUnit, "X", qty, conn);
convertedQty=roundVal(dcommon.convQtyFactor(byprodUnit, qcOrdItemUnit, "X", qty, conn),3);
System.out.println("convertedQty-----"+convertedQty);
if(qcQty < convertedQty )
{
errCode = "QCTRFQTY"; //'QC Transfer quantity more then QC Order Quantity'
......@@ -786,4 +787,8 @@ QCTransferConfLocal, QCTransferConfRemote
return string;
}
*/
private double roundVal(double round,int scale)
{
return Math.round(round*Math.pow(10, scale))/Math.pow(10, scale);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment