Commit 9737273f authored by agaikwad's avatar agaikwad

print nature variable(discount set from sorditem when schem is define)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106232 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7b112407
......@@ -7345,6 +7345,8 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
else if(currentColumn.equalsIgnoreCase("quantity"))
{
String lsexplev="";
double disccsorditem=0;
String lsnature="",lslinetype="",disccsorditem1="";
smNum = genericUtility.getColumnValue("quantity",dom);
if(smNum != null && smNum.trim().length() > 0)
{
......@@ -7654,8 +7656,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
setNodeValue( dom, "disc_amt", discAmt );
}
double disccsorditem=0;
String lsnature="",lslinetype="",disccsorditem1="";
// Added by Abhijit 10/07/2017 , discount set from sorditem when schem is define
if("B".equalsIgnoreCase(lsitemflg))
{
......@@ -7676,6 +7677,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
pstmt.close();
pstmt = null;
System.out.println("disccsorditem1 ["+disccsorditem1 +"]");
System.out.println("lsnature ["+lsnature +"]");
if(disccsorditem1 != null && disccsorditem1.trim().length() > 0)
{
disccsorditem = Double.parseDouble(disccsorditem1);
......@@ -7702,18 +7704,6 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
}
}
//End Abhijit Gaikwad 10/07/17
/*if ls_item_flg = 'B' then
select nature,line_type,discount into :ls_nature,:ls_line_type,:lc_discount from sorditem where sale_order = :mVal and line_no = :ls_line_no
and exp_lev = :ls_explev
and line_type <> 'B';
if isnull(lc_discount) then lc_discount = 0
if lc_discount > 0 and ls_nature = 'C' then
lc_disc_amt = (lc_discount/100) * (mNum1 * mNum2)
dw_detedit[ii_currformno].SetItem(1,"disc_amt", lc_disc_amt)
dw_detedit[ii_currformno].SetItem(1,"discount", lc_discount)
end if
end if*/
}
else if(currentColumn.equalsIgnoreCase("lot_no") || currentColumn.equalsIgnoreCase("lot_sl"))
{
......
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