fix logic and tests, update docker CI file

This commit is contained in:
root
2026-03-09 15:58:44 -04:00
parent 1cb3573d4b
commit 79e44fe037
188 changed files with 1776 additions and 524 deletions
@@ -17,8 +17,22 @@ class PaymentControllerTest extends TestCase
$this->seedUsers();
Sanctum::actingAs(User::query()->findOrFail(1));
DB::table('invoices')->insert([
'id' => 1,
'parent_id' => 10,
'invoice_number' => 'INV-001',
'total_amount' => 250,
'balance' => 250,
'paid_amount' => 0,
'has_discount' => 0,
'issue_date' => '2025-01-05',
'status' => 'unpaid',
'school_year' => '2025-2026',
]);
$response = $this->postJson('/api/v1/finance/payments', [
'parent_id' => 10,
'invoice_id' => 1,
'total_amount' => 250,
'number_of_installments' => 2,
'payment_date' => '2025-01-05',