From 9ad6a159cf027f4894b7637e65010c073090ee1b Mon Sep 17 00:00:00 2001
From: Michael Mavroudis <michael@mavroudis.com>
Date: Tue, 27 Sep 2016 14:26:12 -0700
Subject: [PATCH] column update with negative nibble rate

---
 src/mod/applications/mod_nibblebill/mod_nibblebill.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 		
 	}