Commit a6d5a58f authored by smestry's avatar smestry

Updated the SalesReturn to set the claim qty and phy qty same as qty.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102276 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1e48f383
...@@ -2341,11 +2341,26 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -2341,11 +2341,26 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
valueXmlString.append("<claim_qty>").append("<![CDATA[" + getRequiredDecimal( sQuantity, 3 ) + "]]>").append("</claim_qty>"); valueXmlString.append("<claim_qty>").append("<![CDATA[" + getRequiredDecimal( sQuantity, 3 ) + "]]>").append("</claim_qty>");
setNodeValue( dom, "claim_qty", getRequiredDecimal( sQuantity, 3 ) ); setNodeValue( dom, "claim_qty", getRequiredDecimal( sQuantity, 3 ) );
} }
// Changed by Sneha on 28-06-2016, to set claim_qty and physical_qty [Start]
else if(Double.parseDouble(claimQty) != sQuantity)
{
valueXmlString.append("<claim_qty>").append("<![CDATA[" + getRequiredDecimal( sQuantity, 3 ) + "]]>").append("</claim_qty>");
setNodeValue( dom, "claim_qty", getRequiredDecimal( sQuantity, 3 ) );
}
// Changed by Sneha on 28-06-2016, to set claim_qty and physical_qty [End]
if (claimQty == null) if (claimQty == null)
{ {
valueXmlString.append("<physical_qty>").append("<![CDATA[" + getRequiredDecimal( sQuantity, 3 ) + "]]>").append("</physical_qty>"); valueXmlString.append("<physical_qty>").append("<![CDATA[" + getRequiredDecimal( sQuantity, 3 ) + "]]>").append("</physical_qty>");
setNodeValue( dom, "physical_qty", getRequiredDecimal( sQuantity, 3 ) ); setNodeValue( dom, "physical_qty", getRequiredDecimal( sQuantity, 3 ) );
} }
// Changed by Sneha on 28-06-2016, to set claim_qty and physical_qty [Start]
else if(Double.parseDouble(physicalQty) != sQuantity)
{
valueXmlString.append("<physical_qty>").append("<![CDATA[" + getRequiredDecimal( sQuantity, 3 ) + "]]>").append("</physical_qty>");
setNodeValue( dom, "physical_qty", getRequiredDecimal( sQuantity, 3 ) );
}
// Changed by Sneha on 28-06-2016, to set claim_qty and physical_qty [End]
infoMap = new HashMap(); infoMap = new HashMap();
retReplFlag = genericUtility.getColumnValue("ret_repl_flag", dom); retReplFlag = genericUtility.getColumnValue("ret_repl_flag", dom);
siteCode = genericUtility.getColumnValue("site_code", dom1); siteCode = genericUtility.getColumnValue("site_code", dom1);
......
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