employeehours report

This commit is contained in:
2018-02-21 21:27:23 +01:00
parent 4fbcc6a52a
commit 327f81ea97
3290 changed files with 17984 additions and 747234 deletions
@@ -1,32 +1,30 @@
<div class="MONTHLYEMPLOYEEHOURS">
<div class="row">
<div class="col-md-1">
<div class="col-xl-1">
<label>jaar</label>
</div>
<div class="col-md-3">
<div class="col-xl-3">
<select class="form-control form-control-sm"
data-bind="options:years,
optionsText:'year',
optionsValue: 'id',
value:selectedYear,
event:{change:refreshTab}"></select>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="nav-tabs-horizontal">
<ul class="nav nav-tabs nav-tabs-solid">
<li class="nav-item" data-bind="click:setActivetab.bind($data, 'euro')">
<li class="nav-item" data-bind="click:setActivetab.bind($data, 'euro')" style="z-index:10">
<a class="nav-link" data-bind="css:{'active':sluggy() == 'euro'}">totaal euro's</a>
</li>
<li class="nav-item" data-bind="click:setActivetab.bind($data, 'hours')">
<li class="nav-item" data-bind="click:setActivetab.bind($data, 'hours')" style="z-index:10">
<a class="nav-link" data-bind="css:{'active':sluggy() == 'hours'}">totaal uren</a>
</li>
<!-- ko foreach:uniqueEmployees -->
<li class="nav-item" data-bind="click:$root.setActivetab.bind($data, slug)">
<li class="nav-item" data-bind="click:$root.setActivetab.bind($data, slug)" style="z-index:10">
<a class="nav-link" data-bind="text:fullname, css:{'active':$root.sluggy() == slug}"></a>
</li>
<!-- /ko -->
+1
View File
@@ -11,6 +11,7 @@
<script src="js/vendor/froala/js/froala_editor.min.js"></script>
<script src="js/vendor/froala/js/plugins/knockout-froala.js"></script>
<script src="js/vendor/Chart.js"></script>
<script src="js/vendor/lodash.js"></script>
<!--<script src="js/vendor/mousewheel/jquery.mousewheel.js"></script>-->
@@ -1 +1,141 @@
<h1>EURO'S</h1>
<table class="table" style="font-size:.8em;">
<thead>
<tr>
<th class="rotate">
<div><span>projectnummer</span></div>
</th>
<th class="rotate">
<div><span>instroom</span></div>
</th>
<th class="rotate">
<div><span>uitstroom</span></div>
</th>
<th class="rotate">
<div><span>naam</span></div>
</th>
<th class="rotate">
<div><span>opdrachtgever</span></div>
</th>
<!-- ko foreach: uniqueEmployees -->
<th class="rotate">
<div><span data-bind="text:fullname"></span></div>
</th>
<!-- /ko -->
<th class="rotate">
<div><span>totaal</span></div>
</th>
<th class="rotate">
<div><span>budget (ex btw)</span></div>
</th>
<th class="rotate">
<div><span>derden (ex btw)</span></div>
</th>
<th class="rotate">
<div><span>beschikbaar</span></div>
</th>
<th class="rotate">
<div><span>saldo</span></div>
</th>
<th class="rotate">
<div><span>OWP</span></div>
</th>
<!-- ko foreach: uniqueYears -->
<th class="rotate">
<div><span data-bind="text:year"></span></div>
</th>
<!-- /ko -->
<th class="rotate">
<div><span>OWP</span></div>
</th>
</tr>
</thead>
<tbody data-bind="foreach:recap">
<tr>
<td><span data-bind="text:projectnumber"></span></td>
<td><span data-bind="text:instroom"></span></td>
<td><span data-bind="text:uitstroom ? uitstroom : ''"></span></td>
<td><span data-bind="text:projectname"></span></td>
<td><span data-bind="text:name"></span></td>
<!-- ko foreach: employees -->
<td class="align-right">
<span data-bind="text:revenues"></span>
</td>
<!-- /ko -->
<th class="align-right">
<span data-bind="text:totalEmployeeRevenues"></span>
</th>
<td class="align-right">
<span data-bind="text:budget"></span>
</td>
<td class="align-right">
<span data-bind="text:externCosts"></span>
</td>
<th class="align-right">
<span data-bind="text:budgetAvailable"></span>
</th>
<th class="align-right">
<span data-bind="text:saldo"></span>
</th>
<th class="align-right">
<span data-bind="text:workInProgress"></span>
</th>
<!-- ko foreach:invoiced -->
<th class="align-right">
<span data-bind="text:invoiced"></span>
</th>
<!-- /ko -->
</tr>
</tbody>
<tfoot>
<tr>
<th class="align-right" colspan="5">totaal</th>
<!-- ko foreach: totalPerEmployee -->
<th class="align-right">
<span data-bind="text:totalRevenue"></span>
</th>
<!-- /ko -->
<th class="align-right">
<span data-bind="text:totalEmployeeRevenues"></span>
</th>
<th class="align-right">
<span data-bind="text:totalBudget"></span>
</th>
<th class="align-right">
<span data-bind="text:totalCosts"></span>
</th>
<th class="align-right">
<span data-bind="text:totalAvailableBudget"></span>
</th>
<th class="align-right">
<span data-bind="text:totalSaldo"></span>
</th>
<th class="align-right">
<span data-bind="text:totalWorkInProgress"></span>
</th>
<!-- ko foreach:totalInvoicedYear -->
<th class="align-right">
<span data-bind="text:totalInvoiced"></span>
</th>
<!-- /ko -->
</tr>
</tfoot>
</table>
<div class="row">
<div class="col-xl-3">
<div class="graph-holder" style="height:100%">
<canvas id="recap-revenues" width="300px"></canvas>
<div id="recap-revenues-legends"></div>
</div>
</div>
<div class="col-xl-3">
<div class="graph-holder" style="height:100%">
<canvas id="recap-revenues-project" width="300px"></canvas>
<div id="recap-revenues-project-legends"></div>
</div>
</div>
<div class="col-xl-6">
<div class="graph-holder" style="height:100%">
<canvas id="recap-owh" width="300px"></canvas>
</div>
</div>
</div>
@@ -1 +1,62 @@
<h1>hours</h1>
<table class="table" style="font-size:.8em;">
<thead>
<tr>
<th class="rotate">
<div><span>projectnummer</span></div>
</th>
<th class="rotate">
<div><span>instroom</span></div>
</th>
<th class="rotate">
<div><span>uitstroom</span></div>
</th>
<th class="rotate">
<div><span>naam</span></div>
</th>
<th class="rotate">
<div><span>opdrachtgever</span></div>
</th>
<!-- ko foreach: uniqueEmployees -->
<th class="rotate">
<div><span data-bind="text:fullname + ' geschreven'"></span></div>
</th>
<!-- /ko -->
<th class="rotate">
<div><span>totaal fact. uren gerealisserd</span></div>
</th>
<!-- ko foreach: uniqueEmployees -->
<th class="rotate">
<div><span data-bind="text:fullname + ' beschikbaar'"></span></div>
</th>
<!-- /ko -->
<th class="rotate">
<div><span>totaal beschikbare uren</span></div>
</th>
</tr>
</thead>
<tbody data-bind="foreach:recap">
<tr>
<td><span data-bind="text:projectnumber"></span></td>
<td><span data-bind="text:instroom"></span></td>
<td><span data-bind="text:uitstroom ? uitstroom : ''"></span></td>
<td><span data-bind="text:projectname"></span></td>
<td><span data-bind="text:name"></span></td>
<!-- ko foreach: employees -->
<td class="align-right">
<span data-bind="text:hours"></span>
</td>
<!-- /ko -->
<th class="align-right">
<span data-bind="text:totalEmployeeHours"></span>
</th>
<!-- ko foreach: employees -->
<td class="align-right">
<span data-bind="text:availableHours"></span>
</td>
<!-- /ko -->
<td class="align-right">
<span data-bind=""></span>
</td>
</tr>
</tbody>
</table>