Commit 992185a3 by shangshang.dai

1111

parent 22d8d514
......@@ -71,7 +71,7 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
price = QString("%1 x%2 %3").arg(_Penny2Dollar(pObj->price)).arg(pObj->productAmount)
.arg(_Penny2Dollar(pObj->price*pObj->productAmount));
str_comd_list.append(QString(name+"#"+price+"#"));
str_comd_list.append(QString(name+"$"+price+"$"));
}
index++;
if(index!=count)
......
......@@ -40,12 +40,15 @@ void SettingForm::_Init()
void SettingForm::on_settingCbxPrinter_currentIndexChanged(const QString &text)
{
if(!text.compare("_FEC_"))
if( !this->isHidden())
{
ConfigManger::GetInstance().SetPrinterFEC();
}else
{
ConfigManger::GetInstance().SetPrinterName(text);
if(!text.compare("_FEC_"))
{
ConfigManger::GetInstance().SetPrinterFEC();
}else
{
ConfigManger::GetInstance().SetPrinterName(text);
}
}
}
......
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