Diversen opmerkingen
This commit is contained in:
@@ -34,7 +34,13 @@ class InvoiceSpreadsheet {
|
||||
{
|
||||
$this->setSpreadsheet();
|
||||
|
||||
$this->setInvoiceSheet();
|
||||
$this->setInvoiceOverviewSheet();
|
||||
|
||||
$this->setInvoiceForecast();
|
||||
|
||||
$this->setMonthForecast();
|
||||
|
||||
$this->setMonthPayment();
|
||||
|
||||
$this->setFilename();
|
||||
|
||||
@@ -50,14 +56,44 @@ class InvoiceSpreadsheet {
|
||||
$this->spreadsheet = new Spreadsheet();
|
||||
}
|
||||
|
||||
private function setInvoiceSheet()
|
||||
private function setInvoiceOverviewSheet()
|
||||
{
|
||||
$invoiceSheet = new Worksheet( $this->spreadsheet, 'Facturen' );
|
||||
|
||||
$this->invoiceSheet =
|
||||
$this->spreadsheet->addSheet( $invoiceSheet );
|
||||
|
||||
new InvoiceSheet( $this->invoiceReport['invoiceOverview'], $this->invoiceSheet );
|
||||
new InvoiceOverviewSheet( $this->invoiceReport['invoiceOverview'], $this->invoiceSheet );
|
||||
}
|
||||
|
||||
private function setInvoiceForecast()
|
||||
{
|
||||
$invoiceSheet = new Worksheet( $this->spreadsheet, 'prognose' );
|
||||
|
||||
$this->invoiceSheet =
|
||||
$this->spreadsheet->addSheet( $invoiceSheet );
|
||||
|
||||
new InvoiceForecastSheet( $this->invoiceReport['forecasts'], $this->invoiceSheet );
|
||||
}
|
||||
|
||||
private function setMonthForecast()
|
||||
{
|
||||
$invoiceSheet = new Worksheet( $this->spreadsheet, 'maandprognose' );
|
||||
|
||||
$this->invoiceSheet =
|
||||
$this->spreadsheet->addSheet( $invoiceSheet );
|
||||
|
||||
new MonthForecastSheet( $this->invoiceReport['monthForecasts'], $this->invoiceSheet );
|
||||
}
|
||||
|
||||
private function setMonthPayment()
|
||||
{
|
||||
$invoiceSheet = new Worksheet( $this->spreadsheet, 'maand betalingen' );
|
||||
|
||||
$this->invoiceSheet =
|
||||
$this->spreadsheet->addSheet( $invoiceSheet );
|
||||
|
||||
new MonthPaymentSheet( $this->invoiceReport['monthPayments'], $this->invoiceSheet );
|
||||
}
|
||||
|
||||
private function setFilename()
|
||||
|
||||
Reference in New Issue
Block a user