|
|
@@ -223,9 +223,20 @@ void CPosPrinter::PrintWaimaiOrderShouyin(CWaimaiOrder& order)
|
|
|
}
|
|
|
|
|
|
std::string firstLine = m_names[0];
|
|
|
- std::string priceShow = HandleFoodItemPrice(food_price, 2);
|
|
|
- std::string quantityShow = HandleFoodQuantity(quantity, 2);
|
|
|
- std::string priceTotalShow = HandleFoodTotalPrice(food_total_price, 2);
|
|
|
+
|
|
|
+ int nGuige;
|
|
|
+ if (guige == "58")
|
|
|
+ {
|
|
|
+ nGuige = 1;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ nGuige = 2;
|
|
|
+ }
|
|
|
+
|
|
|
+ std::string priceShow = HandleFoodItemPrice(food_price, nGuige);
|
|
|
+ std::string quantityShow = HandleFoodQuantity(quantity, nGuige);
|
|
|
+ std::string priceTotalShow = HandleFoodTotalPrice(food_total_price, nGuige);
|
|
|
|
|
|
std::string firstLineShow = firstLine + priceShow + quantityShow + priceTotalShow;
|
|
|
|
|
|
@@ -504,9 +515,20 @@ void CPosPrinter::PrintWaimaiOrderChufang(CWaimaiOrder& order)
|
|
|
}
|
|
|
|
|
|
std::string firstLine = m_names[0];
|
|
|
- std::string priceShow = HandleFoodItemPrice(food_price, 2);
|
|
|
- std::string quantityShow = HandleFoodQuantity(quantity, 2);
|
|
|
- std::string priceTotalShow = HandleFoodTotalPrice(food_total_price, 2);
|
|
|
+
|
|
|
+ int nGuige;
|
|
|
+ if (guige == "58")
|
|
|
+ {
|
|
|
+ nGuige = 1;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ nGuige = 2;
|
|
|
+ }
|
|
|
+
|
|
|
+ std::string priceShow = HandleFoodItemPrice(food_price, nGuige);
|
|
|
+ std::string quantityShow = HandleFoodQuantity(quantity, nGuige);
|
|
|
+ std::string priceTotalShow = HandleFoodTotalPrice(food_total_price, nGuige);
|
|
|
|
|
|
std::string firstLineShow = firstLine + priceShow + quantityShow + priceTotalShow;
|
|
|
|