fix logic and tests, update docker CI file
This commit is contained in:
@@ -70,6 +70,8 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'parent_id' => 2,
|
||||
'discount_amount' => 10,
|
||||
'school_year' => '2025-2026',
|
||||
'used_at' => '2025-01-11 10:00:00',
|
||||
'created_at' => '2025-01-11 10:00:00',
|
||||
]);
|
||||
|
||||
DB::table('refunds')->insert([
|
||||
@@ -80,13 +82,19 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'refund_amount' => 5,
|
||||
'status' => 'Paid',
|
||||
'refund_paid_amount' => 5,
|
||||
'refunded_at' => '2025-01-12 10:00:00',
|
||||
'created_at' => '2025-01-12 10:00:00',
|
||||
]);
|
||||
|
||||
DB::table('additional_charges')->insert([
|
||||
[
|
||||
'id' => 1,
|
||||
'parent_id' => 2,
|
||||
'invoice_id' => null,
|
||||
'semester' => 'Fall',
|
||||
'title' => 'Extra Charge',
|
||||
'amount' => 20,
|
||||
'due_date' => '2025-01-12',
|
||||
'school_year' => '2025-2026',
|
||||
'status' => 'pending',
|
||||
],
|
||||
@@ -95,6 +103,9 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'parent_id' => 2,
|
||||
'amount' => 30,
|
||||
'invoice_id' => 1,
|
||||
'semester' => 'Fall',
|
||||
'title' => 'Applied Charge',
|
||||
'due_date' => '2025-01-12',
|
||||
'school_year' => '2025-2026',
|
||||
'status' => 'applied',
|
||||
],
|
||||
@@ -111,6 +122,7 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'school_year' => '2025-2026',
|
||||
'semester' => 'Fall',
|
||||
'status' => 'approved',
|
||||
'created_at' => '2025-01-05 12:00:00',
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
@@ -122,6 +134,7 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'school_year' => '2025-2026',
|
||||
'semester' => 'Fall',
|
||||
'status' => 'approved',
|
||||
'created_at' => '2025-01-06 12:00:00',
|
||||
],
|
||||
]);
|
||||
|
||||
@@ -135,6 +148,7 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'status' => 'Paid',
|
||||
'school_year' => '2025-2026',
|
||||
'semester' => 'Fall',
|
||||
'created_at' => '2025-01-07 12:00:00',
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
@@ -145,6 +159,7 @@ class FinancialSummaryServiceTest extends TestCase
|
||||
'status' => 'Paid',
|
||||
'school_year' => '2025-2026',
|
||||
'semester' => 'Fall',
|
||||
'created_at' => '2025-01-08 12:00:00',
|
||||
],
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user