1 [% USE HTML %][% USE L %][% USE LxERP %]
3 <div class="listtop">[% FORM.title %]</div>
5 [%- INCLUDE 'common/flash.html' %]
7 <form method="post" action="controller.pl">
8 [% IF !BUSINESSS.size %]
10 [%- LxERP.t8('No business has been created yet.') %]
14 <table id="business_list" width="100%">
16 <tr class="listheading">
17 <th width="80%">[%- LxERP.t8('Description') %]</th>
18 <th>[%- LxERP.t8('Discount') %]</th>
19 <th>[%- LxERP.t8('Customernumberinit') %]</th>
20 [%- IF LXCONFIG.features.vertreter %]
21 <th>[%- LxERP.t8('Representative') %]</th>
27 [%- FOREACH business = BUSINESSS %]
28 <tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]">
30 <a href="[% SELF.url_for(action => 'edit', id => business.id) %]">
31 [%- HTML.escape(business.description) %]
34 <td align="right">[% LxERP.format_amount(business.discount * 100) %] %</td>
35 <td align="right">[%- HTML.escape(business.customernumberinit) %]</td>
36 [%- IF LXCONFIG.features.vertreter %]
37 <td>[%- IF business.salesman %][%- LxERP.t8('Yes') %][%- ELSE %][%- LxERP.t8('No') %][%- END %]</td>
48 <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new business') %]</a>