Commit 54fd8767 authored by dpawar's avatar dpawar

chnages in new qty and rate


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94620 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 717e8dec
...@@ -598,6 +598,8 @@ private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int l ...@@ -598,6 +598,8 @@ private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int l
String dbTranID="",retString="" ,acctCctrCode="",acctCctrCodeInvRev=""; String dbTranID="",retString="" ,acctCctrCode="",acctCctrCodeInvRev="";
double oldRate=0,newRate=0,quantity=0,amountOld,amountNew=0,amountDiff=0; double oldRate=0,newRate=0,quantity=0,amountOld,amountNew=0,amountDiff=0;
try{ try{
oldRate=Double.parseDouble(detail2MapL.get("old_rate"));
quantity=Double.parseDouble(detail2MapL.get("old_quantity"));
detail2xml.append("<Detail2 objContext =\"2\"").append(" objName=\"stockvaladjtran\" domID=\"1\" dbID=\"\">"); detail2xml.append("<Detail2 objContext =\"2\"").append(" objName=\"stockvaladjtran\" domID=\"1\" dbID=\"\">");
detail2xml.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>"); detail2xml.append("<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>");
...@@ -607,11 +609,11 @@ private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int l ...@@ -607,11 +609,11 @@ private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int l
detail2xml.append("<loc_code>").append("<![CDATA[").append(detail2MapL.get("loc_code")).append("]]></loc_code>\r\n"); detail2xml.append("<loc_code>").append("<![CDATA[").append(detail2MapL.get("loc_code")).append("]]></loc_code>\r\n");
detail2xml.append("<lot_no>").append("<![CDATA[").append(detail2MapL.get("lot_no")).append("]]></lot_no>\r\n"); detail2xml.append("<lot_no>").append("<![CDATA[").append(detail2MapL.get("lot_no")).append("]]></lot_no>\r\n");
detail2xml.append("<lot_sl>").append("<![CDATA[").append(detail2MapL.get("lot_sl")).append("]]></lot_sl>\r\n"); detail2xml.append("<lot_sl>").append("<![CDATA[").append(detail2MapL.get("lot_sl")).append("]]></lot_sl>\r\n");
detail2xml.append("<quantity>").append("<![CDATA[").append(detail2MapL.get("old_quantity")).append("]]></quantity>\r\n"); detail2xml.append("<quantity>").append("<![CDATA[").append(quantity).append("]]></quantity>\r\n");
detail2xml.append("<rate__old>").append("<![CDATA[").append(detail2MapL.get("old_rate")).append("]]></rate__old>\r\n"); detail2xml.append("<rate__old>").append("<![CDATA[").append(oldRate).append("]]></rate__old>\r\n");
java.util.Date tranDate=new Date(); java.util.Date tranDate=new Date();
newRate=getPriceListRate(detail2MapL.get("price_list"), tranDate, detail2MapL.get("item_code"), detail2MapL.get("lot_no"), "", conn); newRate=getPriceListRate(detail2MapL.get("price_list"), tranDate, detail2MapL.get("item_code"), detail2MapL.get("lot_no"), "", conn);
......
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