Invoicing Feature Complete #8

Merged
okorpheus merged 7 commits from invoicing into master 2024-06-29 15:27:15 +00:00
2 changed files with 65 additions and 0 deletions
Showing only changes of commit 3f88c3dbfa - Show all commits

View File

@ -0,0 +1,47 @@
<?php
namespace App\Services\Invoice;
use App\Models\School;
use function auditionSetting;
class InvoiceAllStudentsPay implements InvoiceDataService
{
/**
* Create a new class instance.
*/
public function __construct()
{
//
}
public function getLines(School $school)
{
// TODO: Implement getLines() method.
}
public function getLinesTotal(School $school)
{
// TODO: Implement getLinesTotal() method.
}
public function getLateFeesTotal(School $school)
{
// TODO: Implement getLateFeesTotal() method.
}
public function getSchoolFeeTotal(School $school)
{
if (! auditionSetting('school_fee')) {
return 0;
}
return auditionSetting('school_fee');
}
public function getGrandTotal(School $school)
{
// TODO: Implement getGrandTotal() method.
}
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Services\Invoice;
use App\Models\School;
interface InvoiceDataService
{
public function getLines(School $school);
public function getLinesTotal(School $school);
public function getLateFeesTotal(School $school);
public function getSchoolFeeTotal(School $school);
public function getGrandTotal(School $school);
}