Commit 8e98b81a by Phạm Văn Đoan

cập nhật report tuần

parent 2ac35c0a
...@@ -130,7 +130,7 @@ class CalculateReportCommand extends Command ...@@ -130,7 +130,7 @@ class CalculateReportCommand extends Command
return false; return false;
} }
if (strtoupper(date('D', strtotime('2020-03-29'))) == 'SUN') { if (strtoupper(date('D')) == 'SUN') {
$weekly_data = WeeklyReportView::select('*')->take(100)->get()->toArray(); $weekly_data = WeeklyReportView::select('*')->take(100)->get()->toArray();
if (count($weekly_data) > 0) { if (count($weekly_data) > 0) {
$weekly_report = []; $weekly_report = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment