Commit 82469efc authored by prane's avatar prane

Taxes need to set on itemchange of item_code_ord in sale order detail screen...

Taxes need to set on itemchange of item_code_ord in sale order detail screen based on Bill to/Dlv to customer.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188797 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a8627b01
......@@ -8659,10 +8659,14 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
//} else {
//lsTaxClass = lsTaxClassHdr;
//}
//if (lsTaxEnvHdr == null || lsTaxEnvHdr.trim().length() == 0) {
if (lsTaxEnvHdr == null || lsTaxEnvHdr.trim().length() == 0) {
sql = "select tax_env from customeritem where cust_code = ? and item_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lsCustCode);
if("1".equals(custTaxOpt)) {
pstmt.setString(1, custCodeBill);
}else if("0".equals(custTaxOpt)) {
pstmt.setString(1, lsCustCodeDlv);
}
pstmt.setString(2, itemCodeOrd);
rs = pstmt.executeQuery();
if (rs.next()) {
......@@ -8676,10 +8680,10 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if (lsTaxEnv == null || lsTaxEnv.trim().length() == 0) {
lsTaxEnv = distCommon.getTaxEnv(frStation, stanCodeTo, lsTaxChap, lsTaxClass, lsSiteCodeDet,conn);
}
///} else {
// lsTaxEnv = lsTaxEnvHdr;
} else {
lsTaxEnv = lsTaxEnvHdr;
//}
//Pavan R End
//Changed by Pavan Rane on 06AUG18 End
valueXmlString.append("<tax_chap>").append("<![CDATA[" + lsTaxChap + "]]>").append("</tax_chap>");
setNodeValue(dom, "tax_chap", getAbsString(lsTaxChap));
valueXmlString.append("<tax_class>").append("<![CDATA[" + lsTaxClass + "]]>")
......
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