This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace App\Invoice;
|
||||
|
||||
use App\Entity\Timesheet;
|
||||
use App\Model\InvoiceModel;
|
||||
|
||||
/**
|
||||
@@ -22,26 +23,43 @@ interface CalculatorInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Return the timesheet records that will be displayed on the invoice.
|
||||
*
|
||||
* @return Timesheet[]
|
||||
*/
|
||||
public function getEntries();
|
||||
|
||||
/**
|
||||
* Set the invoice model and can be used to fetch the customer.
|
||||
*
|
||||
* @param InvoiceModel $model
|
||||
*/
|
||||
public function setModel(InvoiceModel $model);
|
||||
|
||||
/**
|
||||
* Returns the subtotal before taxes.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getSubtotal(): float;
|
||||
|
||||
/**
|
||||
* Returns the tax amount for this invoice.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTax(): float;
|
||||
|
||||
/**
|
||||
* Returns the total amount for this invoice including taxes.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTotal(): float;
|
||||
|
||||
/**
|
||||
* Returns the currency for the invoices amounts.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCurrency(): string;
|
||||
|
||||
Reference in New Issue
Block a user