Commit 3aaff524 authored by manohar's avatar manohar

Bug fix - in case new line inserted in porddet 3 column where missing names...

Bug fix - in case new line inserted in porddet 3 column where missing names rate__stduom, cctr_code__dr and cctr_code__cr, corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95707 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8847c65f
...@@ -888,52 +888,66 @@ POrderAmdConfLocal, POrderAmdConfRemote ...@@ -888,52 +888,66 @@ POrderAmdConfLocal, POrderAmdConfRemote
+ " unit__std,quantity__stduom,rate__stduom,pack_code,no_art,pack_instr,acct_code__dr," + " unit__std,quantity__stduom,rate__stduom,pack_code,no_art,pack_instr,acct_code__dr,"
+ " cctr_code__dr,acct_code__cr,cctr_code__cr,discount_type,supp_code__mnfr,order_opt,bom_code," + " cctr_code__dr,acct_code__cr,cctr_code__cr,discount_type,supp_code__mnfr,order_opt,bom_code,"
+ " specific_instr,rate__clg,special_instr,benefit_type,licence_no,duty_paid,form_no ) " + " specific_instr,rate__clg,special_instr,benefit_type,licence_no,duty_paid,form_no ) "
+ " values ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) "; + " values ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) ";
sql = " insert into porddet ( ,,,,,,,,"
+ " ,,,,,,,,,"
+ " ,,,,,,,,"
+ " ,,,,,,,"
+ " ,,,,,,,"
+ " ,,,,,, ) "
+ " values ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, purcOrder); pstmt.setString(1, purcOrder); // v
pstmt.setString(2, lineNo); pstmt.setString(2, lineNo); // line_no
pstmt.setString(3, siteCode); pstmt.setString(3, siteCode); // site_code
pstmt.setString(4, indNo); pstmt.setString(4, indNo); // ind_no
pstmt.setString(5, itemCode); pstmt.setString(5, itemCode); // quantity
pstmt.setDouble(6, quantity); pstmt.setString(7, unit); // unit
pstmt.setString(7, unit); pstmt.setDouble(8, rate); // rate
pstmt.setDouble(8, rate); pstmt.setDouble(9, discount); // discount
pstmt.setDouble(9, discount); pstmt.setDouble(10, taxAmt); // tax_amt
pstmt.setDouble(10, taxAmt); pstmt.setDouble(11, totAmt); // tot_amt
pstmt.setDouble(11, totAmt); pstmt.setString(12, locCode); // loc_code
pstmt.setString(12, locCode); pstmt.setTimestamp(13, reqDate); // req_date
pstmt.setTimestamp(13, reqDate); pstmt.setTimestamp(14, dlvDate); // dlv_date
pstmt.setTimestamp(14, dlvDate); pstmt.setDouble(15, dlvQuantity); // dlv_qty
pstmt.setDouble(15, dlvQuantity); pstmt.setString(16, status); // status
pstmt.setString(16, status); pstmt.setTimestamp(17, sysDate); // status_date
pstmt.setTimestamp(17, sysDate); pstmt.setString(18, taxClass); // tax_class
pstmt.setString(18, taxClass); pstmt.setString(19, taxChap); // tax_chap
pstmt.setString(19, taxChap); pstmt.setString(20, taxEnv); // tax_env
pstmt.setString(20, taxEnv); pstmt.setString(21, remarks); // remarks
pstmt.setString(21, remarks); pstmt.setString(22, workOrder); // work_order
pstmt.setString(22, workOrder); pstmt.setString(23, unitRate); // unit__rate
pstmt.setString(23, unitRate); pstmt.setDouble(24, convQtyStduom); // conv__qty_stduom
pstmt.setDouble(24, convQtyStduom); pstmt.setDouble(25, convRtuomStduom); // conv__rtuom_stduom
pstmt.setDouble(25, convRtuomStduom); pstmt.setString(26, UnitStd); // unit__std
pstmt.setString(26, UnitStd); pstmt.setDouble(27, quantityStduom); // quantity__stduom
pstmt.setDouble(27, quantityStduom);
pstmt.setString(28, packCode); pstmt.setDouble(28, rateStduom); // rate__stduom
pstmt.setDouble(29, noArt); pstmt.setString(29, packCode); // pack_code
pstmt.setString(30, packInstr); pstmt.setDouble(30, noArt); // no_art
pstmt.setString(31, acctCodeDr); pstmt.setString(31, packInstr); // pack_instr
pstmt.setString(32, acctCodeCr); pstmt.setString(32, acctCodeDr); // acct_code__dr
pstmt.setString(33, discountType);
pstmt.setString(34, suppCodeMnfr); pstmt.setString(33, cctrCodeDr); // cctr_code__dr
pstmt.setString(35, orderOpt); pstmt.setString(34, acctCodeCr); // acct_code__cr
pstmt.setString(36, bom);
pstmt.setString(37, specificInstr); pstmt.setString(35, cctrCodeCr); // cctr_code__cr
pstmt.setDouble(38, clgRate); pstmt.setString(36, discountType); // discount_type
pstmt.setString(39, specialInstr); pstmt.setString(37, suppCodeMnfr); // supp_code__mnfr
pstmt.setString(40, benefitType); pstmt.setString(38, orderOpt); //order_opt
pstmt.setString(41, licenceNo); pstmt.setString(39, bom); //bom_code
pstmt.setString(42, dutyPaid); pstmt.setString(40, specificInstr); //specific_instr
pstmt.setString(43, formNo); pstmt.setDouble(41, clgRate); // rate__clg
pstmt.setString(42, specialInstr); //special_instr
pstmt.setString(43, benefitType); //benefit_type
pstmt.setString(44, licenceNo); // licence_no
pstmt.setString(45, dutyPaid); //duty_paid
pstmt.setString(46, formNo); //form_no
cnt = pstmt.executeUpdate(); cnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
......
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