Commit b6217adc authored by pdas's avatar pdas

Mail from C.Raja

During purchase amendment confirmation system did not update the purchase order detail quantity
Changes have been made for change in variable of quantity.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99167 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b2d436e4
......@@ -449,7 +449,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
String adjmet ="", acctcode="",cctr_code="", taxclass="",taxchap="",taxenv="" ,sitecodeadv="",vouchcreated="";
String taskcode="",type="",relagnst="",amttype="",fchgtype="",refcode="";
/*min_day,max_day,fin_chg,fchg_type,min_amt,max_amt*/
double minday=0,maxday=0,finchg=0,minamt=0,maxamt=0;
double minday=0,maxday=0,finchg=0,minamt=0,maxamt=0,indquantity =0;
int cntTerm = 0;
int cntPyterm =0;
int cntDyterm =0;
......@@ -645,7 +645,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
rs = pstmt.executeQuery();
if (rs.next())
{
quantity = rs.getDouble("quantity__stduom");
indquantity = rs.getDouble("quantity__stduom");//Changed variable to indquantity from quantity for indent value by Priyanka Das
ordQty = rs.getDouble("ord_qty");
}
rs.close();
......@@ -670,7 +670,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
totOrdQty = (ordQty - quantStduom) + quantityStduom;
if (quantity > totOrdQty)
if (indquantity > totOrdQty)//Changed variable to indquantity from quantity for indent value by Priyanka Das
{
sql = " update indent set status = 'O', status_date = ? , ord_qty = ?," + " unit__ord = ? where ind_no = ? ";
pstmt = conn.prepareStatement(sql);
......
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