column update with negative nibble rate

This commit is contained in:
Michael Mavroudis 2016-09-27 14:26:12 -07:00
parent 0e6e53f15c
commit 9ad6a159cf
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ static switch_bool_t bill_event(double billamount, const char *billaccount, swit
sql = globals.custom_sql_save;
}
} else {
sql = dsql = switch_mprintf("UPDATE %s SET %s=%s-%f WHERE %s='%s'", globals.db_table, globals.db_column_cash,
sql = dsql = switch_mprintf("UPDATE %s SET %s=%s- %f WHERE %s='%s'", globals.db_table, globals.db_column_cash,
globals.db_column_cash, billamount, globals.db_column_account, billaccount);
}