mirror of
https://github.com/dyiop/astute.git
synced 2025-04-06 21:30:20 -04:00
Add files via upload
This commit is contained in:
parent
f10e3f323a
commit
58658a93c2
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user