Commit f1096d71 authored by caluka's avatar caluka

sales order det line_no set 3spaces line faramat for koye cilent


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103552 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9fe36800
...@@ -56,7 +56,7 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB ...@@ -56,7 +56,7 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB
String linenoStr="",itemCode="",rate="",quantityStr="",freeQtyStr="",totQty="",netAmt=""; String linenoStr="",itemCode="",rate="",quantityStr="",freeQtyStr="",totQty="",netAmt="";
StringBuffer xmlBuff = null; StringBuffer xmlBuff = null;
String xmlString = null,retString = null; String xmlString = null,retString = null;
String sysDate=""; String sysDate="",lineNoStr="";
int cnt = 0,lineNo=0; int cnt = 0,lineNo=0;
double exchRateFr=0; double exchRateFr=0;
double quantity=0,freeQty=0; double quantity=0,freeQty=0;
...@@ -313,11 +313,15 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB ...@@ -313,11 +313,15 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB
if(quantity>0) if(quantity>0)
{ {
lineNo=lineNo+1; lineNo=lineNo+1;
lineNoStr="";
lineNoStr = " "+lineNo;
lineNoStr = lineNoStr.substring(lineNoStr.length()-3,lineNoStr.length());
xmlBuff.append("<Detail2 dbID='' domID='" + lineNo + "' objName=\"sorder\" objContext=\"2\">"); xmlBuff.append("<Detail2 dbID='' domID='" + lineNo + "' objName=\"sorder\" objContext=\"2\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />"); xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />");
xmlBuff.append("<sale_order/>"); xmlBuff.append("<sale_order/>");
xmlBuff.append("<remarks><![CDATA["+ "generated from POB transaction "+tranId+"]]></remarks>"); xmlBuff.append("<remarks><![CDATA["+ "generated from POB transaction "+tranId+"]]></remarks>");
xmlBuff.append("<line_no><![CDATA["+lineNo+"]]></line_no>"); xmlBuff.append("<line_no><![CDATA["+lineNoStr+"]]></line_no>");
xmlBuff.append("<item_code__ord><![CDATA["+ itemCode.trim() +"]]></item_code__ord>"); xmlBuff.append("<item_code__ord><![CDATA["+ itemCode.trim() +"]]></item_code__ord>");
xmlBuff.append("<item_code><![CDATA["+ itemCode.trim() +"]]></item_code>"); xmlBuff.append("<item_code><![CDATA["+ itemCode.trim() +"]]></item_code>");
xmlBuff.append("<rate><![CDATA["+rate +"]]></rate>"); xmlBuff.append("<rate><![CDATA["+rate +"]]></rate>");
...@@ -336,11 +340,15 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB ...@@ -336,11 +340,15 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB
if(freeQty>0) if(freeQty>0)
{ {
lineNo=lineNo+1; lineNo=lineNo+1;
lineNoStr="";
lineNoStr = " "+lineNo;
lineNoStr = lineNoStr.substring(lineNoStr.length()-3,lineNoStr.length());
xmlBuff.append("<Detail2 dbID='' domID='" + lineNo + "' objName=\"sorder\" objContext=\"2\">"); xmlBuff.append("<Detail2 dbID='' domID='" + lineNo + "' objName=\"sorder\" objContext=\"2\">");
xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />"); xmlBuff.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />");
xmlBuff.append("<sale_order/>"); xmlBuff.append("<sale_order/>");
xmlBuff.append("<remarks><![CDATA["+ "generated from POB transaction "+tranId+"]]></remarks>"); xmlBuff.append("<remarks><![CDATA["+ "generated from POB transaction "+tranId+"]]></remarks>");
xmlBuff.append("<line_no><![CDATA["+lineNo+"]]></line_no>"); xmlBuff.append("<line_no><![CDATA["+lineNoStr+"]]></line_no>");
xmlBuff.append("<item_code__ord><![CDATA["+ itemCode.trim() +"]]></item_code__ord>"); xmlBuff.append("<item_code__ord><![CDATA["+ itemCode.trim() +"]]></item_code__ord>");
xmlBuff.append("<item_code><![CDATA["+ itemCode.trim() +"]]></item_code>"); xmlBuff.append("<item_code><![CDATA["+ itemCode.trim() +"]]></item_code>");
xmlBuff.append("<rate><![CDATA["+0.0+"]]></rate>"); xmlBuff.append("<rate><![CDATA["+0.0+"]]></rate>");
......
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