Fix invoice status issue

This commit is contained in:
Harsh Jagad
2022-03-30 07:38:38 +00:00
committed by Mohit Panjwani
parent a9e54981bf
commit c4c00002d7
10 changed files with 858 additions and 1287 deletions

View File

@ -103,6 +103,7 @@ class CustomerStatsController extends Controller
)
->whereCompany()
->whereCustomer($customer->id)
->where('status', '<>', Invoice::STATUS_DRAFT)
->sum('total');
$totalReceipts = Payment::whereBetween(
'payment_date',