Revision 06142cc6
Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt
templates/webpages/liquidity_projection/_filter.html | ||
---|---|---|
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE T8 %]
|
||
[% USE T8 %]
|
||
<div class="wrapper">
|
||
|
||
<form method="post" action="controller.pl" id="filter_form">
|
||
<table border="0">
|
||
<tr>
|
||
<th align="right">[% LxERP.t8("Number of months") %]</th>
|
||
<td>[% L.input_tag("params.months", FORM.params.months, class="initial_focus") %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% LxERP.t8("Break down by") %]</th>
|
||
<td valign="top">
|
||
[% L.checkbox_tag("params.type", value=1, checked=FORM.params.type, label=LxERP.t8("Basis of calculation")) %]
|
||
<br>
|
||
[% L.checkbox_tag("params.salesman", value=1, checked=FORM.params.salesman, label=LxERP.t8("Salesman")) %]
|
||
<br>
|
||
[% L.checkbox_tag("params.buchungsgruppe", value=1, checked=FORM.params.buchungsgruppe, label=LxERP.t8("Booking group")) %]
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<table class="tbl-horizontal">
|
||
<caption>[% 'Filter' | $T8 %]</caption>
|
||
<tbody>
|
||
<tr>
|
||
<th>[% LxERP.t8("Number of months") %]</th>
|
||
<td>[% L.input_tag("params.months", FORM.params.months, class="initial_focus") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Break down by") %]</th>
|
||
<td>
|
||
[% L.checkbox_tag("params.type", value=1, checked=FORM.params.type, label=LxERP.t8("Basis of calculation")) %] <br>
|
||
[% L.checkbox_tag("params.salesman", value=1, checked=FORM.params.salesman, label=LxERP.t8("Salesman")) %] <br>
|
||
[% L.checkbox_tag("params.buchungsgruppe", value=1, checked=FORM.params.buchungsgruppe, label=LxERP.t8("Booking group")) %]
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</form>
|
||
|
||
</div><!-- /.wrapper -->
|
||
|
templates/webpages/liquidity_projection/_result.html | ||
---|---|---|
[% USE LxERP %]
|
||
[% SET name_col = FORM.params.salesman || FORM.params.buchungsgruppe || FORM.params.type %]
|
||
|
||
<table border="0">
|
||
<tr>
|
||
<th class="listheading">[% LxERP.t8("Type") %]</th>
|
||
[%- IF name_col %]
|
||
<th class="listheading">[% LxERP.t8("Name") %]</th>
|
||
[%- END %]
|
||
[%- FOREACH month = SELF.liquidity.sorted.month %]
|
||
<th class="listheading" align="right">[%- IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][%- HTML.escape(month) %][% END %]</th>
|
||
[%- END %]
|
||
</tr>
|
||
|
||
[% IF FORM.params.type %]
|
||
[% FOREACH type = SELF.liquidity.sorted.type %]
|
||
<tr class="listrow">
|
||
<td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td>
|
||
<td>
|
||
[% IF type == 'order' %][% LxERP.t8("Sales Orders") %]
|
||
[% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %]
|
||
[% ELSE %][% LxERP.t8("Periodic Invoices") %]
|
||
[% END %]
|
||
</td>
|
||
|
||
[%- FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td align="right">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td>
|
||
[%- END %]
|
||
</tr>
|
||
[%- END %]
|
||
[%- END %]
|
||
|
||
[%- IF FORM.params.salesman %]
|
||
[%- FOREACH salesman = SELF.liquidity.sorted.salesman %]
|
||
<tr class="listrow">
|
||
<td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td>
|
||
<td>[%- HTML.escape(salesman) %]</td>
|
||
<table class="tbl-list wi-moderate">
|
||
<caption>[% 'Search Result' | $T8 %]</caption>
|
||
<thead>
|
||
<tr>
|
||
<th>[% LxERP.t8("Type") %]</th>
|
||
[% IF name_col %]
|
||
<th>[% LxERP.t8("Name") %]</th>
|
||
[% END %]
|
||
[% FOREACH month = SELF.liquidity.sorted.month %]
|
||
<th>[% IF month == 'old' %][% LxERP.t8("old") %][% ELSIF month == 'future' %][% LxERP.t8("prospective") %][% ELSE %][% HTML.escape(month) %][% END %]</th>
|
||
[% END %]
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% IF FORM.params.type %] [% FOREACH type = SELF.liquidity.sorted.type %]
|
||
<tr>
|
||
<td>[% IF loop.first %][% LxERP.t8("Basis of calculation") %][% END %]</td>
|
||
<td>[% IF type == 'order' %][% LxERP.t8("Sales Orders") %] [% ELSIF type == 'partial' %][% LxERP.t8("Partial invoices") %] [% ELSE %][% LxERP.t8("Periodic Invoices") %] [% END %] </td>
|
||
[% FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td class="numeric">[% LxERP.format_amount(SELF.liquidity.$type.$month, 2) %]</td>
|
||
[% END %]
|
||
</tr>
|
||
[% END %]
|
||
[% END %]
|
||
|
||
[%- FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td align="right">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td>
|
||
[%- END %]
|
||
</tr>
|
||
[%- END %]
|
||
[%- END %]
|
||
[% IF FORM.params.salesman %]
|
||
[% FOREACH salesman = SELF.liquidity.sorted.salesman %]
|
||
<tr>
|
||
<td>[% IF loop.first %][% LxERP.t8("Salesman") %][% END %]</td>
|
||
<td>[% HTML.escape(salesman) %]</td>
|
||
|
||
[%- IF FORM.params.buchungsgruppe %]
|
||
[%- FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %]
|
||
<tr class="listrow">
|
||
<td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td>
|
||
<td>[%- HTML.escape(buchungsgruppe) %]</td>
|
||
[% FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td class="numeric">[% LxERP.format_amount(SELF.liquidity.salesman.$salesman.$month, 2) %]</td>
|
||
[% END %]
|
||
</tr>
|
||
[% END %]
|
||
[% END %]
|
||
|
||
[%- FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td align="right">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td>
|
||
[%- END %]
|
||
</tr>
|
||
[%- END %]
|
||
[%- END %]
|
||
[% IF FORM.params.buchungsgruppe %]
|
||
[% FOREACH buchungsgruppe = SELF.liquidity.sorted.buchungsgruppe %]
|
||
<tr>
|
||
<td>[% IF loop.first %][% LxERP.t8("Booking group") %][% END %]</td>
|
||
<td>[% HTML.escape(buchungsgruppe) %]</td>
|
||
|
||
<tr class="listrow listtotal">
|
||
<td>[% LxERP.t8("Total") %]</td>
|
||
[% IF name_col %]<td></td>[% END %]
|
||
[%- FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td align="right">
|
||
[% IF SELF.liquidity.total.$month > 0 %]
|
||
<a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]">
|
||
[% END %]
|
||
[% LxERP.format_amount(SELF.liquidity.total.$month, 2) %]
|
||
[% IF SELF.liquidity.total.$month > 0 %]
|
||
</a>
|
||
[% END %]
|
||
</td>
|
||
[%- END %]
|
||
</tr>
|
||
[% FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td class="numeric">[% LxERP.format_amount(SELF.liquidity.buchungsgruppe.$buchungsgruppe.$month, 2) %]</td>
|
||
[% END %]
|
||
</tr>
|
||
[% END %]
|
||
[% END %]
|
||
</tbody>
|
||
<tfoot>
|
||
<tr class="listrow listtotal">
|
||
<td>[% LxERP.t8("Total") %]</td>
|
||
[% IF name_col %]<td></td>[% END %]
|
||
[% FOREACH month = SELF.liquidity.sorted.month %]
|
||
<td class="numeric">
|
||
[% IF SELF.liquidity.total.$month > 0 %]
|
||
<a href="[% HTML.escape(SELF.link_to_old_orders(reqdate=month, months=params.months)) %]">
|
||
[% END %]
|
||
[% LxERP.format_amount(SELF.liquidity.total.$month, 2) %]
|
||
[% IF SELF.liquidity.total.$month > 0 %]
|
||
</a>
|
||
[% END %]
|
||
</td>
|
||
[% END %]
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
templates/webpages/liquidity_projection/show.html | ||
---|---|---|
[% USE L %]
|
||
<body>
|
||
|
||
<h1>[% HTML.escape(title) %]</h1>
|
||
<h1>[% HTML.escape(title) %]</h1>
|
||
|
||
[% PROCESS 'liquidity_projection/_filter.html' %]
|
||
|
||
[%- IF SELF.liquidity %]
|
||
<hr>
|
||
[% PROCESS 'liquidity_projection/_filter.html' %]
|
||
|
||
[% IF SELF.liquidity %]
|
||
[% PROCESS 'liquidity_projection/_result.html' %]
|
||
[% END %]
|
||
[% END %]
|
||
|
||
</body>
|
||
</html>
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/liquidity_projection/