|
|
@@ -928,12 +928,15 @@ class OrderClass extends BaseClass
|
|
|
public static function printGroup($current, $content, $showPrice = 1)
|
|
|
{
|
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
|
+ $productPrice = $current['price'] ?? '';
|
|
|
$name = $current['name'] ?? '';
|
|
|
+ if (floatval($productPrice) == 0.01) {
|
|
|
+ $name = $name . '(赠)';
|
|
|
+ }
|
|
|
$productNum = $current['num'] ?? '';
|
|
|
$count = $current['count'] ?? '';
|
|
|
$content .= '<B>' . $name . ' ' . $count . '</B><BR>';
|
|
|
if ($showPrice == 1) {
|
|
|
- $productPrice = $current['price'] ?? '';
|
|
|
$content .= $productNum . '=' . $productPrice . '<BR>';
|
|
|
}
|
|
|
$content .= '--------------------------------<BR>';
|