SL::DB::Object: Methode update_collections für One-To-Many-Relationships
[kivitendo-erp.git] / templates / webpages / reconciliation / proposals.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 [%- USE LxERP %]
5
6 [% SET debug = 0 %]
7
8 [% IF !SELF.PROPOSALS.size %]
9   <tbody class="listrow">
10     <td colspan="11"><p class="message_hint">[% 'No data was found.' | $T8 %]</p></td>
11   </tbody>
12 [% ELSE %]
13   [% FOREACH proposal = SELF.PROPOSALS %]
14       <tbody class="listrow">
15         <tr>
16           <td rowspan=[% proposal.BB.size + 1 %] style="valign:center;">
17             [% L.checkbox_tag('bt_ids[]', checked=0, value=proposal.BT.id) %]
18           </td>
19
20           <td><img width="16px" height="16px" src="image/bank-building.jpg"></td>
21           <td>[% 'Bank Transaction' | $T8 %]</td>
22            [% IF debug %] <td>[% HTML.escape(proposal.BT.id) %]</td>[% END %]
23           <td align="right">[% HTML.escape(proposal.BT.transdate_as_date) %]</td>
24           <td align="right">[% HTML.escape(proposal.BT.amount_as_number) %]</td>
25           <td></td>
26           <td>[% HTML.escape(proposal.BT.remote_name) %]</td>
27           <td>[% HTML.escape(proposal.BT.purpose) %]</td>
28           <td>[% HTML.escape(proposal.BT.remote_account_number) %]</td>
29           <td>[% HTML.escape(proposal.BT.remote_bank_code) %]</td>
30           <td></td>
31           [% L.hidden_tag('proposal_list.' _ proposal.BT.id _ '.BT', proposal.BT.id) %]
32         </tr>
33
34         [% FOREACH bb = proposal.BB %]
35           <tr>
36             <td><div class="icon16 general-ledger--reports--journal"></div></td>
37             <td>[% 'Invoice' | $T8 %]</td>
38              [% IF debug %] <td>[% HTML.escape(bb.acc_trans_id) %]</td>[% END %]
39             <td align="right">[% HTML.escape(bb.transdate_as_date) %]</td>
40             <td></td>
41             <td align="right">[% LxERP.format_amount(-1 * bb.amount, 2) %]</td>
42             <td>[% HTML.escape(bb.record.customer.name) %][% HTML.escape(bb.record.vendor.name) %][% HTML.escape(bb.record.description) %]</td>
43             <td>[% bb.record.link %]</td>
44             <td></td>
45             <td></td>
46             <td>[% HTML.escape(bb.source) %]</td>
47             [% L.hidden_tag('proposal_list.' _ proposal.BT.id _ '.BB[]', bb.acc_trans_id) %]
48           </tr>
49         [% END %]
50       </tbody>
51   [% END %]
52 [% END %]
53