]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
column update with negative nibble rate -- FS-9577
authorMichael Mavroudis <michael@mavroudis.com>
Tue, 27 Sep 2016 21:26:12 +0000 (14:26 -0700)
committerMichael Mavroudis <michael@mavroudis.com>
Tue, 27 Sep 2016 21:47:09 +0000 (14:47 -0700)
src/mod/applications/mod_nibblebill/mod_nibblebill.c

index 0c8a136cbd91b3b35593fcbf3a4e44637fa7b62e..0249c266c4f985dfff361c975c5c47fd02ac7376 100644 (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);
                
        }