add tests batch 20
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user