Merge pull request #170 from bagisto/jitendra
Issue #150 and Dashboard progress issue fixed
This commit is contained in:
commit
464fe294ba
|
|
@ -79,7 +79,7 @@ class OrderDataGrid
|
|||
'label' => 'Base Total',
|
||||
'sortable' => true,
|
||||
'wrapper' => function ($value) {
|
||||
return core()->currency($value);
|
||||
return core()->formatBasePrice($value);
|
||||
}
|
||||
], [
|
||||
'name' => 'or.grand_total',
|
||||
|
|
@ -88,7 +88,7 @@ class OrderDataGrid
|
|||
'label' => 'Grand Total',
|
||||
'sortable' => false,
|
||||
'wrapper' => function ($value) {
|
||||
return core()->currency($value);
|
||||
return core()->formatBasePrice($value);
|
||||
}
|
||||
], [
|
||||
'name' => 'or.created_at',
|
||||
|
|
|
|||
|
|
@ -294,9 +294,9 @@ class DashboardController extends Controller
|
|||
$this->endDate = Carbon::now();
|
||||
|
||||
$this->lastStartDate = clone $this->startDate;
|
||||
$this->lastEndDate = clone $this->endDate;
|
||||
$this->lastEndDate = clone $this->startDate;
|
||||
|
||||
$this->lastStartDate->subDays($this->lastStartDate->diffInDays($this->lastEndDate));
|
||||
$this->lastEndDate->subDays($this->lastStartDate->diffInDays($this->lastEndDate));
|
||||
$this->lastStartDate->subDays($this->startDate->diffInDays($this->endDate));
|
||||
// $this->lastEndDate->subDays($this->lastStartDate->diffInDays($this->lastEndDate));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue