Skip to content

Commit

Permalink
Earning chart bug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinoak committed Mar 26, 2024
1 parent d32c3a1 commit bb30faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function dashboard(): View

foreach ($invoices as $i) {
$year = date('Y', strtotime($i->date));
if ($i->type === 'N') {
if ($i->type === 'V' || $i->type === 'M') {
$total -= $i->price;
$earnings[$year][date('m', strtotime($i->date))] -= $i->price;
} else {
Expand Down

0 comments on commit bb30faa

Please sign in to comment.