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