Merge pull request #10783 from turbo124/v5-develop
Fixes for Profit Loss
This commit is contained in:
commit
ef7a64b81b
|
|
@ -629,6 +629,11 @@ class ProfitLoss
|
||||||
$this->end_date = (new \Carbon\Carbon('-3 months'))->endOfQuarter();
|
$this->end_date = (new \Carbon\Carbon('-3 months'))->endOfQuarter();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'last_year':
|
||||||
|
$this->start_date = (new \Carbon\Carbon('-1 year'))->startOfYear();
|
||||||
|
$this->end_date = (new \Carbon\Carbon('-1 year'))->endOfYear();
|
||||||
|
break;
|
||||||
|
|
||||||
case 'this_year':
|
case 'this_year':
|
||||||
$this->start_date = now()->startOfYear();
|
$this->start_date = now()->startOfYear();
|
||||||
$this->end_date = now();
|
$this->end_date = now();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue