src/db/dataconnect.cpp
bool DataConnect::updateTransCount(int userid){
    stringstream os;
               os << "UPDATE ccdev_billing_summary SET billing_trans = billing_trans + 1, total_trans = total_trans + 1 WHERE user_id =" << userid << endl;
                 cout << os.str() << endl;
        openDB();
        if(db.open()){
            QSqlQuery * query = new QSqlQuery(db);
            query->prepare(os.str().c_str());
            query->exec();
            db.close();
            closeDB();
       }
       return true;
}
/*
* update the transaction count for billing
*/
update the transaction count for billing
update the transaction count for billing
bool DataConnect::updateTransCount(int userid){
    stringstream os;
               os << "UPDATE ccdev_billing_summary SET billing_trans = billing_trans + 1, total_trans = total_trans + 1 WHERE user_id =" << userid << endl;
                 cout << os.str() << endl;
        openDB();
        if(db.open()){
            QSqlQuery * query = new QSqlQuery(db);
            query->prepare(os.str().c_str());
            query->exec();
            db.close();
            closeDB();
       }
       return true;
}
bool DataConnect :: updateTransCount ( int userid ) { stringstream os ; os << " " << userid << endl ; cout << os . str ( ) << endl ; openDB ( ) ; if ( db . open ( ) ) { QSqlQuery * query = new QSqlQuery ( db ) ; query -> prepare ( os . str ( ) . c_str ( ) ) ; query -> exec ( ) ; db . close ( ) ; closeDB ( ) ; } return true ; }
update the transaction count for billing
update the transaction count for billing