|
|
@@ -62,15 +62,16 @@ class PurchaseOrderClass extends BaseClass
|
|
|
public static function printGroup($current, $content)
|
|
|
{
|
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
|
- $productPrice = $current['bigPrice'] ?? '';
|
|
|
+ $bigPrice = $current['bigPrice'] ?? '';
|
|
|
$name = $current['name'] ?? '';
|
|
|
- if (floatval($productPrice) == 0.01) {
|
|
|
+ if (floatval($bigPrice) == 0.01) {
|
|
|
$name = $name . '(送)';
|
|
|
}
|
|
|
- $productNum = $current['itemNum'] ?? '';
|
|
|
$count = $current['itemNum'] ?? '';
|
|
|
$content .= '<B>' . $name . ' ' . $count . '</B><BR>';
|
|
|
- $content .= $productNum . '=' . $productPrice . '<BR>';
|
|
|
+ $totalPrice = bcmul($count, $bigPrice, 2);
|
|
|
+ $totalPrice = floatval($totalPrice);
|
|
|
+ $content .= $count . 'x' . $bigPrice . '=' . $totalPrice . '<BR>';
|
|
|
$content .= '--------------------------------<BR>';
|
|
|
return $content;
|
|
|
}
|