update rm deadcode

This commit is contained in:
baodev0
2026-09-27 11:42:40 +07:00
parent 82a71244ca
commit 3af59bd9c5
129 changed files with 5194 additions and 2698 deletions
+2 -2
View File
@@ -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 [