Commit 6233f948 by 戴尚尚

Fix 1:修复属性为空显示[]的问题

parent 2b8a10e3
......@@ -63,7 +63,14 @@ QString FmPrinter::_GetPrintData(OrderObject *pData)
for(int i=0; i<pData->proList.count(); i++)
{
QString name, price;
name = pData->proList[i]->name + "[" + pData->proList[i]->property_tags + "]";
if(pData->proList[i]->property_tags.isEmpty())
{
name = pData->proList[i]->name;
}else
{
name = pData->proList[i]->name + "[" + pData->proList[i]->property_tags + "]";
}
//test
// if(printsize==56)
// {
......
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