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
+12 -14
View File
@@ -2,8 +2,6 @@
namespace App\Models;
use App\Models\BaseModel;
class PaymentNotificationLog extends BaseModel
{
protected $table = 'payment_notification_logs';
@@ -31,14 +29,14 @@ class PaymentNotificationLog extends BaseModel
];
protected $casts = [
'parent_id' => 'integer',
'invoice_id' => 'integer',
'period_year' => 'integer',
'period_month' => 'integer',
'head_fa_notified' => 'boolean',
'balance_snapshot' => 'decimal:2', // adjust precision if needed
'created_at' => 'datetime',
'sent_at' => 'datetime',
'parent_id' => 'integer',
'invoice_id' => 'integer',
'period_year' => 'integer',
'period_month' => 'integer',
'head_fa_notified' => 'boolean',
'balance_snapshot' => 'decimal:2', // adjust precision if needed
'created_at' => 'datetime',
'sent_at' => 'datetime',
];
/* Optional relationships */
@@ -73,16 +71,16 @@ class PaymentNotificationLog extends BaseModel
{
$q = static::query()->orderByDesc('sent_at');
if (!empty($from)) {
if (! empty($from)) {
$q->where('sent_at', '>=', $from);
}
if (!empty($to)) {
if (! empty($to)) {
$q->where('sent_at', '<=', $to);
}
if (!empty($type)) {
if (! empty($type)) {
$q->where('type', $type);
}
return $q->get()->toArray();
}
}
}