|
|
@@ -44,7 +44,6 @@ class StatCgClass extends BaseClass
|
|
|
$cgWhere['entryTime'] = ['between', [$currentStartTime, $currentEndTime]];
|
|
|
$cgList = PurchaseOrderClass::getAllByCondition($cgWhere, null, '*');
|
|
|
$arr = [];
|
|
|
- print_r($cgList);
|
|
|
if (!empty($cgList)) {
|
|
|
foreach ($cgList as $cgKey => $cgInfo) {
|
|
|
$orderSn = $cgInfo['orderSn'] ?? '';
|
|
|
@@ -58,6 +57,7 @@ class StatCgClass extends BaseClass
|
|
|
$unitPrice = $val->bigPrice ?? 0;
|
|
|
$name = $productInfo[$productId]['name'] ?? '';
|
|
|
$py = $productInfo[$productId]['py'] ?? '';
|
|
|
+ echo $remainNum.' '.$unitPrice;die;
|
|
|
if (isset($arr[$productId])) {
|
|
|
$totalPrice = bcmul($remainNum, $unitPrice, 2);
|
|
|
$arr[$productId]['num'] = bcadd($arr[$productId]['num'], $remainNum);
|