Revision 2a594346
Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt
templates/webpages/bank_transactions/tabs/automatic.html | ||
---|---|---|
10 | 10 |
[% L.hidden_tag('action', 'BankTransaction/dispatch') %] |
11 | 11 |
[% L.hidden_tag('ui_tab', ui_tab) %] |
12 | 12 |
|
13 |
<table id="bank_transactions_proposals"> |
|
13 |
<table id="bank_transactions_proposals" class="tbl-list">
|
|
14 | 14 |
<thead> |
15 |
<tr class="listheading">
|
|
15 |
<tr> |
|
16 | 16 |
<th>[% L.checkbox_tag('check_all') %]</th> |
17 |
|
|
18 | 17 |
<th>[% 'Type' | $T8 %]</th> |
19 | 18 |
<th>[% 'ID' | $T8 %]</th> |
20 | 19 |
<th>[% 'Transdate' | $T8 %]</th> |
... | ... | |
26 | 25 |
<th>[% LxERP.t8("Memo") %]</th> |
27 | 26 |
</tr> |
28 | 27 |
</thead> |
28 |
<tbody> |
|
29 | 29 |
[% IF !PROPOSALS.size %] |
30 |
<tbody class="listrow"> |
|
31 |
<td colspan="7"><p class="message_hint">[% 'No data was found.' | $T8 %]</p></td> |
|
32 |
</tbody> |
|
30 |
<td colspan="10"><p class="message message_hint center">[% 'No data was found.' | $T8 %]</p></td> |
|
33 | 31 |
[% ELSE %] |
34 | 32 |
[% FOREACH proposal = PROPOSALS %] |
35 |
<tbody class="listrow"> |
|
36 |
<tr> |
|
37 |
<td rowspan=[% proposal.rowspan %] style="valign:center;"> |
|
38 |
[% L.checkbox_tag('proposal_ids[]', checked=0, value=proposal.id) %] |
|
39 |
</td> |
|
40 |
|
|
41 |
<td>[% HTML.escape(proposal.transaction_text) %]</td> |
|
42 |
<td>[% proposal.id %]</td> |
|
43 |
<td>[% proposal.transdate_as_date %]</td> |
|
44 |
<td align="right">[% LxERP.format_amount(proposal.amount,2) %]</td> |
|
45 |
<td></td> |
|
46 |
<td> |
|
47 |
[% SET purpose = HTML.escape(proposal.purpose) |
|
48 |
invnumber_found = '' ; |
|
49 |
FOREACH proposed_invoice = proposal.proposals; |
|
50 |
IF purpose.match(proposed_invoice.invnumber); |
|
51 |
SET invnumber_found = proposed_invoice.invnumber ; |
|
52 |
END ; |
|
33 |
<tr> |
|
34 |
<td rowspan=[% proposal.rowspan %] style="valign:center;"> |
|
35 |
[% L.checkbox_tag('proposal_ids[]', checked=0, value=proposal.id) %] |
|
36 |
</td> |
|
37 |
<td>[% HTML.escape(proposal.transaction_text) %]</td> |
|
38 |
<td>[% proposal.id %]</td> |
|
39 |
<td>[% proposal.transdate_as_date %]</td> |
|
40 |
<td>[% LxERP.format_amount(proposal.amount,2) %]</td> |
|
41 |
<td></td> |
|
42 |
<td>[% |
|
43 |
SET purpose = HTML.escape(proposal.purpose) |
|
44 |
invnumber_found = '' ; |
|
45 |
FOREACH proposed_invoice = proposal.proposals; |
|
46 |
IF purpose.match(proposed_invoice.invnumber); |
|
47 |
SET invnumber_found = proposed_invoice.invnumber ; |
|
53 | 48 |
END ; |
49 |
END ; |
|
54 | 50 |
|
55 |
IF invnumber_found ;
|
|
56 |
purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ;
|
|
57 |
ELSE ;
|
|
58 |
purpose ;
|
|
59 |
END %]
|
|
60 |
</td>
|
|
61 |
<td>[% HTML.escape(proposal.remote_name) %]</td>
|
|
62 |
<td></td>
|
|
63 |
<td></td>
|
|
64 |
</tr>
|
|
51 |
IF invnumber_found ; |
|
52 |
purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ; |
|
53 |
ELSE ; |
|
54 |
purpose ; |
|
55 |
END
|
|
56 |
%]</td>
|
|
57 |
<td>[% HTML.escape(proposal.remote_name) %]</td> |
|
58 |
<td></td> |
|
59 |
<td></td> |
|
60 |
</tr> |
|
65 | 61 |
|
66 | 62 |
[% FOREACH proposed_invoice = proposal.proposals %] |
67 | 63 |
<tr> |
68 |
|
|
69 | 64 |
<td></td> |
70 | 65 |
<td>[% 'Invoice' | $T8 %]</td> |
71 | 66 |
<td>[% proposed_invoice.id %]</td> |
72 | 67 |
<td>[% proposed_invoice.transdate_as_date %] |
73 | 68 |
[% L.hidden_tag("invoice_ids." _ proposal.id _ "[]", proposed_invoice.id) %]</td> |
74 |
<td align="right">[% proposed_invoice.realamount %]</td>
|
|
69 |
<td>[% proposed_invoice.realamount %]</td> |
|
75 | 70 |
<td>[% proposed_invoice.skonto_type | $T8 %] |
76 | 71 |
[% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", proposed_invoice.skonto_type) %]</td> |
77 | 72 |
<td[% IF proposed_invoice.invnumber == invnumber_found %] class="invoice_number_highlight"[% END %]>[% proposed_invoice.link %]</td> |
... | ... | |
79 | 74 |
<td>[% L.input_tag("sources." _ proposal.id _ "[]", "", size=20) %]</td> |
80 | 75 |
<td>[% L.input_tag("memos." _ proposal.id _ "[]", "", size=20) %]</td> |
81 | 76 |
</tr> |
82 |
[% END %] |
|
77 |
[% END %] |
|
78 |
|
|
83 | 79 |
<tr><td style="height:10px" colspan="10"></td></tr> |
84 | 80 |
</tbody> |
85 | 81 |
[% END %] |
86 | 82 |
[% END %] |
87 | 83 |
</table> |
88 | 84 |
|
89 |
<p>
|
|
85 |
<div class="buttons">
|
|
90 | 86 |
[% L.submit_tag('action_save_proposals', LxERP.t8('Save proposals')) %] |
91 |
[% L.button_tag('kivi.BankTransaction.show_set_all_sources_memos_dialog("#list_automatic_form [name^=\\"sources.\\"]", "#list_automatic_form [name^=\\"memos.\\"]")', LxERP.t8('Set all source and memo fields')) %] |
|
92 |
</p>
|
|
87 |
[% L.button_tag('kivi.BankTransaction.show_set_all_sources_memos_dialog("#list_automatic_form [name^=\\"sources.\\"]", "#list_automatic_form [name^=\\"memos.\\"]")', LxERP.t8('Set all source and memo fields'), class='neutral') %]
|
|
88 |
</div>
|
|
93 | 89 |
|
94 | 90 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/bank_transactions/tabs/automatic.html