From: Michael Mavroudis Date: Tue, 27 Sep 2016 21:26:12 +0000 (-0700) Subject: column update with negative nibble rate X-Git-Tag: v1.8.0~1251^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad6a159cf027f4894b7637e65010c073090ee1b;p=thirdparty%2Ffreeswitch.git column update with negative nibble rate --- diff --git a/src/mod/applications/mod_nibblebill/mod_nibblebill.c b/src/mod/applications/mod_nibblebill/mod_nibblebill.c index 0c8a136cbd..0249c266c4 100644 --- a/src/mod/applications/mod_nibblebill/mod_nibblebill.c +++ b/src/mod/applications/mod_nibblebill/mod_nibblebill.c @@ -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); }