diverse verzoeken Peter

This commit is contained in:
2020-08-21 15:04:59 +02:00
parent 437d969313
commit 653ae0342f
6 changed files with 20 additions and 10 deletions
@@ -53,13 +53,13 @@ class DashboardController extends MY_Controller {
'revenuesThisYear' => $this->getRevenuesThisYear(), 'revenuesThisYear' => $this->getRevenuesThisYear(),
'currentFinancialYear' => round( $currentFinancialYear ), 'currentFinancialYear' => round( $currentFinancialYear ),
'owpNextyear' => round( $totalOwp - $currentFinancialYear ), 'owpNextyear' => round( $totalOwp - $currentFinancialYear ),
'revenuesNextyear' => round( $currentFinancialYear / 0.4 ), 'revenuesNextyear' => round( $totalOwp / 0.4 ),
'totalRevenues' => round( $totalRevenues ), 'totalRevenues' => round( $totalRevenues ),
'outstandings' => $this->invoiceOverviews, 'outstandings' => $this->invoiceOverviews,
'costsToPay' => $this->reservations(), 'costsToPay' => $this->reservations(),
'invoiced' => $this->getInvoiced(), 'invoiced' => $this->getInvoiced(),
'totalChance' => $this->getChanceRevenues(), 'totalChance' => $this->getChanceRevenues(),
'totalPayment' => Payment::getPaymentInYear( date( 'Y' )) 'totalPayment' => round( Payment::getPaymentInYear( date( 'Y' )))
] ); ] );
} }
@@ -36,6 +36,7 @@ class ReportsController extends MY_Controller {
$projects = $recapprojects->getProjects(); $projects = $recapprojects->getProjects();
$this->json( $projects ); $this->json( $projects );
} }
+1 -1
View File
@@ -16,7 +16,7 @@ class MY_Controller extends CI_Controller {
{ {
parent::__construct(); parent::__construct();
$this->version = '1.00.52'; $this->version = '1.00.6';
$this->load->library( 'beheer/session/RetrieveUserSession' ); $this->load->library( 'beheer/session/RetrieveUserSession' );
@@ -112,6 +112,7 @@ class InvoiceForecast {
private function setProjectDetails() private function setProjectDetails()
{ {
$this->projectDetails = [ $this->projectDetails = [
'projectnumber' => $this->project->projectnumber,
'projectname' => $this->projectname, 'projectname' => $this->projectname,
'customer' => $this->customer, 'customer' => $this->customer,
'needInvoice' => number_format( $this->needInvoice, 0, ',', '.' ), 'needInvoice' => number_format( $this->needInvoice, 0, ',', '.' ),
@@ -62,7 +62,7 @@
<div data-bind="visible:invoiceTab() == 'invoice'"> <div data-bind="visible:invoiceTab() == 'invoice'">
<?php $this->load->view('reports/invoices/invoiceoverview_report'); ?> <?php $this->load->view('reports/invoices/invoiceoverview_report'); ?>
</div> </div>
<div id="invoiceforecast" data-bind="visible:invoiceTab() == 'forecast'"> <div id="cast" data-bind="visible:invoiceTab() == 'forecast'">
<?php $this->load->view('reports/invoices/invoiceforecast_report'); ?> <?php $this->load->view('reports/invoices/invoiceforecast_report'); ?>
</div> </div>
<div id="invoiceforecast" data-bind="visible:invoiceTab() == 'monthforecast'"> <div id="invoiceforecast" data-bind="visible:invoiceTab() == 'monthforecast'">
@@ -1,9 +1,16 @@
<table class="table table-condensed" style="font-size:0.8em;"> <table class="table table-condensed" style="font-size:0.8em;">
<thead> <thead>
<tr> <tr>
<th class="rotate"> <th class="rotate">
<div><span>project</span></div> <div class="pointer">
</th> <span data-bind="click:sortList.bind($data, 'projectnumber')">
projectnummer
</span>
</div>
</th>
<th class="rotate">
<div><span>project</span></div>
</th>
<th class="rotate"> <th class="rotate">
<div><span>klant</span></div> <div><span>klant</span></div>
</th> </th>
@@ -24,7 +31,8 @@
<tbody> <tbody>
<!-- ko foreach: forecasts --> <!-- ko foreach: forecasts -->
<tr> <tr>
<td><span data-bind="text:projectname"></span></td> <td><span data-bind="text:projectnumber"></span></td>
<td><span data-bind="text:projectname"></span></td>
<td><span data-bind="text:customer"></span></td> <td><span data-bind="text:customer"></span></td>
<td class="align-right"><span data-bind="text:needInvoice"></span></td> <td class="align-right"><span data-bind="text:needInvoice"></span></td>
<td class="align-right"><span data-bind="text:forecastThisYear"></span></td> <td class="align-right"><span data-bind="text:forecastThisYear"></span></td>