initial upload
This commit is contained in:
67
aem_gestion/templates/compta/balance_print.pt
Normal file
67
aem_gestion/templates/compta/balance_print.pt
Normal file
@@ -0,0 +1,67 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<div class="col-xs-6">
|
||||
<p>
|
||||
Société : <b>CERRA</b> <br />
|
||||
Edité le : ${TODAY.strftime('%d-%m-%Y')}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<button type="button" class="btn btn-primary" onclick="window.print()">Imprimer</button>
|
||||
</div>
|
||||
<table id="jnl_caisse-table" class="table table-condensed table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>Nom prénom</th>
|
||||
<th>Formule</th>
|
||||
<th class="text-right">Solde</th>
|
||||
<th class="text-right">Mt valeur</th>
|
||||
<th class="text-right">Crédit</th>
|
||||
<th class="text-right">Solde D</th>
|
||||
<th class="text-right">Solde C</th>
|
||||
<th class="text-right">Solde C-D</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
var dataSet = ${dt_data};
|
||||
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment('DD-MM-YYYY HH:mm');
|
||||
$('#jnl_caisse-table').DataTable({
|
||||
data: dataSet,
|
||||
pageLength: 100,
|
||||
bLengthChange: false,
|
||||
paging: false,
|
||||
ordering: false,
|
||||
language: {
|
||||
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
||||
},
|
||||
order: [[5, 'asc']],
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [3, 4, 5, 6, 7, 8],
|
||||
className: 'text-right',
|
||||
},
|
||||
],
|
||||
fnRowCallback: function(nRow, aData, iDisplayIndex) {
|
||||
if (aData[0] == "") {
|
||||
$('td', nRow).each(function(){
|
||||
$(this).css('font-weight','bold');
|
||||
});
|
||||
}
|
||||
return nRow;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div> <!-- contents -->
|
||||
</metal:block>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user