fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -50,7 +50,7 @@ class FinancialPaymentService
}
$method = (string) ($row['method'] ?? '');
$amount = (float) ($row['amount'] ?? 0);
if (!isset($breakdown[$invoiceId])) {
if (! isset($breakdown[$invoiceId])) {
$breakdown[$invoiceId] = [];
}
$breakdown[$invoiceId][$method] = $amount;
@@ -85,13 +85,13 @@ class FinancialPaymentService
{
$query = DB::table('payments');
if (!empty($schoolYear)) {
if (! empty($schoolYear)) {
$query->where('school_year', $schoolYear);
}
if (!empty($dateFrom)) {
if (! empty($dateFrom)) {
$query->whereRaw('DATE(payment_date) >= ?', [$dateFrom]);
}
if (!empty($dateTo)) {
if (! empty($dateTo)) {
$query->whereRaw('DATE(payment_date) <= ?', [$dateTo]);
}