|
@@ -377,7 +377,7 @@ class AccountService
|
377
|
377
|
|
378
|
378
|
public function getUnpaidClientInvoices(?string $asOfDate = null): Builder
|
379
|
379
|
{
|
380
|
|
- $asOfDate = $asOfDate ?? now()->toDateString();
|
|
380
|
+ $asOfDate = $asOfDate ?? company_today()->toDateString();
|
381
|
381
|
$driver = DB::getDriverName();
|
382
|
382
|
|
383
|
383
|
$datediff = $driver === 'pgsql'
|
|
@@ -400,7 +400,7 @@ class AccountService
|
400
|
400
|
|
401
|
401
|
public function getUnpaidVendorBills(?string $asOfDate = null): Builder
|
402
|
402
|
{
|
403
|
|
- $asOfDate = $asOfDate ?? now()->toDateString();
|
|
403
|
+ $asOfDate = $asOfDate ?? company_today()->toDateString();
|
404
|
404
|
$driver = DB::getDriverName();
|
405
|
405
|
|
406
|
406
|
$datediff = $driver === 'pgsql'
|