erp.h
bool update_ids_num( QString code )
    {
        QString num = this->intString(this->get_num(code).toInt()+1);
        QString sql = " update `tblids` SET `value`=:num where code = :code ";
        QSqlQuery qry;
        qry.prepare(sql);
        qry.bindValue(":num", num);
        qry.bindValue(":code", code);
        return qry.exec();
    }
/**************************** Increment of 1 Number for type  *********************************/
Increment of 1 Number for type
Increment of 1 Number for type
bool update_ids_num( QString code )
    {
        QString num = this->intString(this->get_num(code).toInt()+1);
        QString sql = " update `tblids` SET `value`=:num where code = :code ";
        QSqlQuery qry;
        qry.prepare(sql);
        qry.bindValue(":num", num);
        qry.bindValue(":code", code);
        return qry.exec();
    }
bool update_ids_num ( QString code ) { QString num = this -> intString ( this -> get_num ( code ) . toInt ( ) + 1 ) ; QString sql = " " ; QSqlQuery qry ; qry . prepare ( sql ) ; qry . bindValue ( " " , num ) ; qry . bindValue ( " " , code ) ; return qry . exec ( ) ; }
Increment of 1 Number for type
Increment of 1 Number for type