|
|
@@ -381,7 +381,7 @@ class NewOrderCountingRecordService
|
|
|
'logistic_id' => $order->logistic_id,
|
|
|
'date_target' => $order->date_target,
|
|
|
'counting_unit' => $unit,
|
|
|
- 'amount' => $order->amounts,
|
|
|
+ 'amount' => $order->amounts??0,
|
|
|
'week' => $year . '-' . $week,
|
|
|
'month' => $year . '-' . $month,
|
|
|
'year' => $year . '',
|
|
|
@@ -574,7 +574,7 @@ class NewOrderCountingRecordService
|
|
|
->groupBy('date_target')
|
|
|
->first();
|
|
|
$orderCountingRecords[] = [
|
|
|
- "counter" => $order->amounts,
|
|
|
+ "counter" => $order->amounts??0,
|
|
|
"date_target" => $order->date_target,
|
|
|
];
|
|
|
}
|
|
|
@@ -638,7 +638,7 @@ class NewOrderCountingRecordService
|
|
|
'logistic_id' => $order->logistic_id,
|
|
|
'date_target' => $order->date_target,
|
|
|
'counting_unit' => $unit,
|
|
|
- 'amount' => $order->amounts,
|
|
|
+ 'amount' => $order->amounts??0,
|
|
|
'year' => Carbon::parse($order->date_target)->year,
|
|
|
'month' => Carbon::parse($order->date_target)->year . '-' . Carbon::parse($order->date_target)->month,
|
|
|
];
|