Commit 64d7d740 authored by ngadkari's avatar ngadkari

commented changes done to set discount when free item is entered .

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@193466 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2a0707ca
......@@ -872,12 +872,12 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
rs=null;
*/
//change by kunal on 4/9/2018 fix for dicount calculated as infinity if rate is zero for free item
double tempqty= Double.parseDouble(invTraceDetMap.get("desp_rate__stduom")==null?"0.00":invTraceDetMap.get("desp_rate__stduom"));
/*double tempqty= Double.parseDouble(invTraceDetMap.get("desp_rate__stduom")==null?"0.00":invTraceDetMap.get("desp_rate__stduom"));
if(lc_disc_amt > 0 && tempqty > 0)
{
ld_discount=(lc_disc_amt * 100)/(Double.parseDouble(invTraceDetMap.get("desp_quantity__stduom")==null?"0.00":invTraceDetMap.get("desp_quantity__stduom")) * Double.parseDouble(invTraceDetMap.get("desp_rate__stduom")==null?"0.00":invTraceDetMap.get("desp_rate__stduom")));
xmlBuff.append("<discount><![CDATA["+ld_discount+"]]></discount>");
}
}*/ //commented by nandkumar Gadkari on 28/11/18
xmlBuff.append("<line_type><![CDATA["+invTraceDetMap.get("line_type")+"]]></line_type>");
xmlBuff.append("<cust_item__ref><![CDATA["+invTraceDetMap.get("cust_item__ref")+"]]></cust_item__ref>");
......
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