]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/buchungsgruppen/list.html
date error in mapping
[mfinanz.git] / templates / webpages / buchungsgruppen / list.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- INCLUDE 'common/flash.html' %]
2
3 <h1>[% title %]</h1>
4
5 <p>
6  <table width="100%" id="buchungsgruppen_list">
7   <thead>
8    <tr class="listheading">
9     <th align="center" width="1%"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
10     <th width="20%">[% 'Description' | $T8 %]</th>
11     <th width="20%">[% 'Inventory Account' | $T8 %]</th>
12      [%- FOREACH tz = TAXZONES %]
13         <th width="20%">[% 'Revenue' | $T8 %] [% HTML.escape(tz.description) %]</th>
14         <th width="20%">[% 'Expense' | $T8 %] [% HTML.escape(tz.description) %]</th>
15      [%- END %]
16     <th>[% 'Obsolete' | $T8 %]</th>
17    </tr>
18   </thead>
19
20   <tbody>
21    [%- FOREACH bg = BUCHUNGSGRUPPEN %]
22     <tr class="listrow" id="bg_id_[% bg.id %]">
23      <td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td>
24      <td><a href="[% SELF.url_for(action='edit', id=bg.id) %]">[% HTML.escape(bg.description) %]</a></td>
25      <td>[% HTML.escape(CHARTLIST.${bg.id}.inventory_accno) %]</td>
26      [%- FOREACH tz = TAXZONES %]
27         <td>[% HTML.escape(CHARTLIST.${bg.id}.${tz.id}.income_accno) %]</td>
28         <td>[% HTML.escape(CHARTLIST.${bg.id}.${tz.id}.expense_accno) %]</td>
29      [%- END %]
30      <td>[% IF bg.obsolete %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]</td>
31     </tr>
32    [%- END %]
33   </tbody>
34  </table>
35 </p>
36
37 [% L.sortable_element('#buchungsgruppen_list tbody', url=SELF.url_for(action='reorder'), with='bg_id') %]