小票增加规格展示

This commit is contained in:
liaofei 2023-06-25 14:12:30 +08:00
parent 8d7f1aa1a4
commit d28606305a
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class FeiEYun extends BasePrinter
$this->printerContent .= '名称 单价 数量 金额<BR>';
$this->printerContent .= '--------------------------------<BR>';
foreach ($product as $item) {
$name = $item['productInfo']['store_name'];
$name = $item['productInfo']['store_name'] . " | " . $item['productInfo']['attrInfo']['suk'];
$price = $item['truePrice'];
$num = $item['cart_num'];
$prices = bcmul((string)$item['cart_num'], (string)$item['truePrice'], 2);

View File

@ -72,7 +72,7 @@ class YiLianYun extends BasePrinter
foreach ($product as $item) {
$goodsStr .= '<tr>';
$price = bcmul((string)$item['cart_num'], (string)$item['truePrice'], 2);
$goodsStr .= "<td>{$item['productInfo']['store_name']}</td><td>{$item['cart_num']}</td><td>{$item['truePrice']}</td><td>{$price}</td>";
$goodsStr .= "<td>{$item['productInfo']['store_name']} | {$item['productInfo']['attrInfo']['suk']}</td><td>{$item['cart_num']}</td><td>{$item['truePrice']}</td><td>{$price}</td>";
$goodsStr .= '</tr>';
unset($price);
}