fix logic and tests, update docker CI file
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user