Add files via upload

This commit is contained in:
gopi17701 2018-08-23 20:29:43 -04:00 committed by GitHub
parent f10e3f323a
commit 58658a93c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,8 +178,7 @@ public class SqlDAO extends DAO {
updateClause += " fee_type_id = " + feeTypeId + ","; updateClause += " fee_type_id = " + feeTypeId + ",";
updateClause += " qty = " + qty + ","; updateClause += " qty = " + qty + ",";
updateClause += " fee = " + fee + ","; updateClause += " fee = " + fee + ",";
updateClause += " service_type_id = " + serviceTypeId + ","; updateClause += " service_type_id = " + serviceTypeId;
updateClause += " remaining_qty = get_remaining_qty_fun('" + POnum + "'," + lineItemNo + ")";
if (!updateClause.equalsIgnoreCase(" SET ")) { if (!updateClause.equalsIgnoreCase(" SET ")) {
sql = sql + trimLastCharacter(updateClause, ",") + whereClause; sql = sql + trimLastCharacter(updateClause, ",") + whereClause;
@ -190,7 +189,7 @@ public class SqlDAO extends DAO {
System.out.println(sql); System.out.println(sql);
Statement stmt = conn.createStatement(); Statement stmt = conn.createStatement();
stmt.executeUpdate(sql); stmt.executeUpdate(sql);
} updateRemainingQty(POnum,null, lineItemNo); }
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new AstuteException(DB_ERROR,e.getMessage()); throw new AstuteException(DB_ERROR,e.getMessage());