Commit 2dd7a65e by ss.dai

修复浮动创拖动范围问题

parent 3a07af36
......@@ -119,12 +119,12 @@ bool FmPlugin::DoOrderEntry(const OrderObject *orderObject, const QString &cashi
int custid = -1;
_InsertInto_p_t_fmwm_custinfo(custid);
// 开启事务
// if(!m_db.transaction())
// {
// error = m_db.lastError().text();
// m_db.close();
// return false;
// }
if(!m_db.transaction())
{
error = m_db.lastError().text();
m_db.close();
return false;
}
// 插入三张临时表后执行存储过程有一个失败则回滚
if(_InsertInto_d_t_food_fmbill0(cashierId, cashierName, shiftId, shiftName, custid))
{
......@@ -145,7 +145,7 @@ bool FmPlugin::DoOrderEntry(const OrderObject *orderObject, const QString &cashi
}
// 回滚
error = m_lastError;
// m_db.rollback();
m_db.rollback();
m_db.close();
return false;
}
......
......@@ -141,7 +141,6 @@ void MainForm::_Init()
// 门店营业状态详情暂时屏蔽
// TODO
ui->mainBtnOpeDetails->hide();
}
void MainForm::onSetCurrentTime()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment