fix logic and tests, update docker CI file
This commit is contained in:
@@ -20,14 +20,30 @@ class FeeCalculationControllerTest extends TestCase
|
||||
$this->seedConfig();
|
||||
$this->seedClassSection();
|
||||
|
||||
DB::table('invoices')->insert([
|
||||
'id' => 1,
|
||||
'parent_id' => 10,
|
||||
'invoice_number' => 'INV-1',
|
||||
'total_amount' => 200.00,
|
||||
'balance' => 0.00,
|
||||
'paid_amount' => 200.00,
|
||||
'has_discount' => 0,
|
||||
'issue_date' => '2025-01-05',
|
||||
'status' => 'paid',
|
||||
'school_year' => '2025-2026',
|
||||
'semester' => 'Fall',
|
||||
]);
|
||||
|
||||
DB::table('payments')->insert([
|
||||
'id' => 1,
|
||||
'parent_id' => 10,
|
||||
'invoice_id' => 1,
|
||||
'paid_amount' => 200.00,
|
||||
'total_amount' => 200.00,
|
||||
'balance' => 0.00,
|
||||
'number_of_installments' => 1,
|
||||
'payment_date' => '2025-01-10',
|
||||
'payment_method' => 'manual',
|
||||
'school_year' => '2025-2026',
|
||||
'status' => 'Paid',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user