update rm deadcode
This commit is contained in:
@@ -37,7 +37,7 @@ class InvoiceReminderService
|
||||
}
|
||||
|
||||
$now = $now ?? now();
|
||||
$daysFromDue = $invoice->due_date->copy()->startOfDay()->diffInDays($now->copy()->startOfDay(), false);
|
||||
$daysFromDue = (int) $invoice->due_date->copy()->startOfDay()->diffInDays($now->copy()->startOfDay(), false);
|
||||
|
||||
$offsets = (array) config('billing.reminder_offsets', []);
|
||||
if ($offsets === []) {
|
||||
@@ -95,7 +95,7 @@ class InvoiceReminderService
|
||||
{
|
||||
$now = $now ?? now();
|
||||
$dueDate = $invoice->due_date;
|
||||
$daysLate = $dueDate ? $dueDate->copy()->startOfDay()->diffInDays($now->copy()->startOfDay(), false) : 0;
|
||||
$daysLate = $dueDate ? (int) $dueDate->copy()->startOfDay()->diffInDays($now->copy()->startOfDay(), false) : 0;
|
||||
$outstanding = max(0, (int) $invoice->total - (int) ($invoice->amount_paid ?? 0));
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user