Invoicing Feature Complete #8
|
|
@ -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.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue