Commit 5b5f4fac authored by kgaikwad's avatar kgaikwad

Sales order Negative rate should not be allowed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202189 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ec195de6
......@@ -3431,7 +3431,16 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
Timestamp ldtDate = null;
double priceListD = 0.00, lcMinRate = 0.00, lcMaxRate = 0.00, mRate = 0.00;
String lsListType = "";
rate = Double.parseDouble(checkDouble(genericUtility.getColumnValue("rate", dom)));
if (rate < 0) //add condition by kailasG on 18 june 2019
{
errCode = "VTNERATE";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
itemFlg = checkNull(genericUtility.getColumnValue("item_flg", dom));
priceList = checkNull(genericUtility.getColumnValue("price_list", dom1));
......@@ -3466,7 +3475,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
if ("F".equalsIgnoreCase(nature) || "B".equalsIgnoreCase(nature)
|| "S".equalsIgnoreCase(nature)) {
if (rate > 0) {
errCode = "VTFREEITEM";
errCode = "VTFREEITEM";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
......
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