]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/inventory/_journal.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / inventory / _journal.html
1 [% USE L %]
2 [% USE HTML %]
3 [% USE LxERP %]
4 [% USE T8 %]
5
6 <h3>[% 'Journal of Last 20 Transfers' | $T8 %]</h3>
7
8 [% IF journal.size %]
9
10   <table class="tbl-list wi-moderate">
11     <thead>
12      <tr>
13       <th>[% 'Date' | $T8 %]</th>
14       <th>[% 'Trans Type' | $T8 %]</th>
15       <th>[% 'Part' | $T8 %]</th>
16       <th>[% 'Warehouse From' | $T8 %]</th>
17       <th class="right">[% 'Qty' | $T8 %]</th>
18       <th>[% 'Unit' | $T8 %]</th>
19       <th>[% 'Warehouse To' | $T8 %]</th>
20       <th class="right">[% 'Charge Number' | $T8 %]</th>
21       <th>[% 'Comment' | $T8 %]</th>
22       <th>[% 'Document' | $T8 %]</th>
23      </tr>
24     </thead>
25     <tbody>
26       [% FOREACH row = journal %]
27        <tr>
28         <td>[% row.base.itime_as_date  %]</td>
29         <td>[% row.base.trans_type.description | $T8 %]</td>
30         <td>[% row.base.part.displayable_name | html %]</td>
31         <td>[% row.out ? row.out.bin.full_description : '-' | html %]</td>
32         <td class='numeric'>[% row.in ? row.in.qty_as_number : LxERP.format_amount(-1 * row.out.qty, 2) %]</td>
33         <td>[% row.base.part.unit | html %]</td>
34         <td>[% row.in ? row.in.bin.full_description : '-' | html %]</td>
35         <td class="right">[% row.base.chargenumber | html %]</td>
36         <td>[% row.base.comment | html %]</td>
37         <td>[% row.base.oe_id | html %][% row.base.invoice.invoice.invnumber | html %]</td>
38        </tr>
39       [% END %]
40     </tbody>
41   </table>
42
43 [% ELSE %]
44   <p>[% 'No transactions yet.' | $T8 %]</p>
45 [% END %]