dever 3 年之前
父節點
當前提交
37d8ae23d0
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      app/cash/lib/Set.php

+ 5 - 3
app/cash/lib/Set.php

@@ -399,12 +399,14 @@ class Set
                 $cdate = date('Y-m-d H:i', $v['cdate']);
                 $fdate = $v['fdate'] ? date('Y-m-d H:i', $v['fdate']) : '';
                 $operdate = $v['operdate'] ? date('Y-m-d H:i', $v['operdate']) : '';
+                $prefix = '¥';
                 if ($type == 'store') {
                     $cash = $v['num'];
+                    $prefix = '';
                 } elseif ($type == 'factory') {
-                    $cash = '¥' . $v['p_cash'];
+                    $cash = $v['p_cash'];
                 } else {
-                    $cash = '¥' . $v['cash'];
+                    $cash = $v['cash'];
                 }
 
                 $cash = round($cash, 2);
@@ -414,7 +416,7 @@ class Set
                     $v['source_order_num'],
                     $cdate,
                     $fdate,
-                    $cash,
+                    $prefix . $cash,
                     '已入账'
                 );