--- /dev/null
+[% USE HTML %][% USE L %][% USE LxERP %]
+
+<body>
+ <div class="listtop">[% FORM.title %]</div>
+
+[%- INCLUDE 'common/flash.html' %]
+
+ <form method="post" action="controller.pl">
+ [% IF !BUSINESSS.size %]
+ <p>
+ [%- LxERP.t8('No business has been created yet.') %]
+ </p>
+
+ [%- ELSE %]
+ <table id="business_list" width="100%">
+ <thead>
+ <tr class="listheading">
+ <th width="80%">[%- LxERP.t8('Description') %]</th>
+ <th>[%- LxERP.t8('Discount') %]</th>
+ <th>[%- LxERP.t8('Customernumberinit') %]</th>
+ [%- IF LXCONFIG.features.vertreter %]
+ <th>[%- LxERP.t8('Representative') %]</th>
+ [%- END %]
+ </tr>
+ </thead>
+
+ <tbody>
+ [%- FOREACH business = BUSINESSS %]
+ <tr class="listrow[% loop.count % 2 %]" id="business_id_[% business.id %]">
+ <td>
+ <a href="[% SELF.url_for(action => 'edit', id => business.id) %]">
+ [%- HTML.escape(business.description) %]
+ </a>
+ </td>
+ <td align="right">[% LxERP.format_amount(business.discount * 100) %] %</td>
+ <td align="right">[%- HTML.escape(business.customernumberinit) %]</td>
+ [%- IF LXCONFIG.features.vertreter %]
+ <td>[%- IF business.salesman %][%- LxERP.t8('Yes') %][%- ELSE %][%- LxERP.t8('No') %][%- END %]</td>
+ [%- END %]
+ </tr>
+ [%- END %]
+ </tbody>
+ </table>
+ [%- END %]
+
+ <hr size="3" noshade>
+
+ <p>
+ <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new business') %]</a>
+ </p>
+ </form>
+</body>
+</html>