Revision 9ebc730e
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/bank_transactions/_filter.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE LxERP %] |
|
4 |
[%- USE HTML %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE HTML %] |
|
5 |
|
|
5 | 6 |
<form action='controller.pl' method='post' id='filter_form'> |
6 |
<div class='filter_toggle'> |
|
7 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
|
8 |
[% SELF.filter_summary | html %] |
|
9 |
</div> |
|
10 |
<div class='filter_toggle' style='display:none'> |
|
11 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a> |
|
12 |
<table id='filter_table'> |
|
7 |
<div class="wrapper"> |
|
8 |
|
|
9 |
[% BLOCK filter_toggle_panel %] |
|
10 |
<table id='filter_table' class="tbl-horizontal"> |
|
11 |
<tbody> |
|
13 | 12 |
<tr> |
14 |
<th align="right">[% 'Bank account' | $T8 %]</th>
|
|
15 |
<td>[% L.select_tag('filter.local_bank_account_id', BANK_ACCOUNTS, default=filter.local_bank_account_id, title_key='displayable_name', with_empty=1, style='width:500px') %]</td>
|
|
13 |
<th>[% 'Bank account' | $T8 %]</th>
|
|
14 |
<td>[% L.select_tag('filter.local_bank_account_id', BANK_ACCOUNTS, default=filter.local_bank_account_id, title_key='displayable_name', with_empty=1, class='wi-verywide') %]</td>
|
|
16 | 15 |
</tr> |
17 |
|
|
18 | 16 |
<tr> |
19 |
<th align="right">[% 'Transdate from' | $T8 %]</th>
|
|
20 |
<td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td>
|
|
17 |
<th>[% 'Transdate from' | $T8 %]</th>
|
|
18 |
<td><span class="wi-date">[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</span></td>
|
|
21 | 19 |
</tr> |
22 |
|
|
23 | 20 |
<tr> |
24 |
<th align="right">[% 'Transdate to' | $T8 %]</th>
|
|
25 |
<td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</td>
|
|
21 |
<th>[% 'Transdate to' | $T8 %]</th>
|
|
22 |
<td><span class="wi-date">[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</span></td>
|
|
26 | 23 |
</tr> |
27 |
|
|
28 | 24 |
<tr> |
29 |
<th align="right">[% 'Valutadate from' | $T8 %]</th>
|
|
30 |
<td>[% L.date_tag('filter.valutadate:date::ge', filter.valutadate_date__ge) %]</td>
|
|
25 |
<th>[% 'Valutadate from' | $T8 %]</th>
|
|
26 |
<td><span class="wi-date">[% L.date_tag('filter.valutadate:date::ge', filter.valutadate_date__ge) %]</span></td>
|
|
31 | 27 |
</tr> |
32 |
|
|
33 | 28 |
<tr> |
34 |
<th align="right">[% 'Valutadate to' | $T8 %]</th>
|
|
35 |
<td>[% L.date_tag('filter.valutadate:date::le', filter.valutadate_date__le) %]</td>
|
|
29 |
<th>[% 'Valutadate to' | $T8 %]</th>
|
|
30 |
<td><span class="wi-date">[% L.date_tag('filter.valutadate:date::le', filter.valutadate_date__le) %]</span></td>
|
|
36 | 31 |
</tr> |
37 |
|
|
38 | 32 |
<tr> |
39 |
<th align="right">[% 'Remote name' | $T8 %]</th>
|
|
40 |
<td>[% L.input_tag('filter.remote_name:substr::ilike', filter.remote_name_substr__ilike, size=60, class='initial_focus') %]</td>
|
|
33 |
<th>[% 'Remote name' | $T8 %]</th>
|
|
34 |
<td>[% L.input_tag('filter.remote_name:substr::ilike', filter.remote_name_substr__ilike, class='initial_focus wi-verywide') %]</td>
|
|
41 | 35 |
</tr> |
42 |
|
|
43 | 36 |
<tr> |
44 |
<th align="right">[% 'Remote account number' | $T8 %]</th>
|
|
45 |
<td>[% L.input_tag('filter.remote_account_number:substr::ilike', filter.remote_account_number_substr__ilike, size=60, class='initial_focus') %]</td>
|
|
37 |
<th>[% 'Remote account number' | $T8 %]</th>
|
|
38 |
<td>[% L.input_tag('filter.remote_account_number:substr::ilike', filter.remote_account_number_substr__ilike, class='initial_focus wi-verywide') %]</td>
|
|
46 | 39 |
</tr> |
47 |
|
|
48 | 40 |
<tr> |
49 |
<th align="right">[% 'Remote bank code' | $T8 %]</th>
|
|
50 |
<td>[% L.input_tag('filter.remote_bank_code:substr::ilike', filter.remote_bank_code_substr__ilike, size=60, class='initial_focus') %]</td>
|
|
41 |
<th>[% 'Remote bank code' | $T8 %]</th>
|
|
42 |
<td>[% L.input_tag('filter.remote_bank_code:substr::ilike', filter.remote_bank_code_substr__ilike, size=60, class='initial_focus wi-small') %]</td>
|
|
51 | 43 |
</tr> |
52 |
|
|
53 | 44 |
<tr> |
54 |
<th align="right">[% 'Amount' | $T8 %]</th>
|
|
55 |
<td>[% L.input_tag('filter.amount:number', filter.amount_number, size = 20) %]</td>
|
|
45 |
<th>[% 'Amount' | $T8 %]</th>
|
|
46 |
<td>[% L.input_tag('filter.amount:number', filter.amount_number, class="wi-small") %]</td>
|
|
56 | 47 |
</tr> |
57 |
|
|
58 | 48 |
<tr> |
59 |
<th align="right">[% 'Purpose' | $T8 %]</th>
|
|
60 |
<td>[% L.input_tag('filter.purpose:substr::ilike', filter.purpose_substr__ilike, size=60, class='initial_focus') %]</td>
|
|
49 |
<th>[% 'Purpose' | $T8 %]</th>
|
|
50 |
<td>[% L.input_tag('filter.purpose:substr::ilike', filter.purpose_substr__ilike, size=60, class='initial_focus wi-verywide') %]</td>
|
|
61 | 51 |
</tr> |
62 |
</table> |
|
52 |
</tbody> |
|
53 |
</table> |
|
63 | 54 |
|
64 | 55 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
65 | 56 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
66 | 57 |
[% L.hidden_tag('page', FORM.page) %] |
67 |
|
|
68 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]
|
|
58 |
<div class="buttons"> |
|
59 |
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
|
|
69 | 60 |
</div> |
61 |
[% END %] |
|
62 |
|
|
63 |
|
|
64 |
[% INCLUDE 'common/toggle_panel.html'%] |
|
65 |
|
|
66 |
</div><!-- /.wrapper --> |
|
70 | 67 |
|
71 | 68 |
</form> |
templates/webpages/bank_transactions/_payment_suggestion.html | ||
---|---|---|
1 |
[%- USE P -%][%- USE HTML -%][%- USE LxERP -%] |
|
1 |
[% USE P %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
|
|
2 | 5 |
<span id="[% HTML.escape(bt_id) %].[% HTML.escape(prop_id) %]" data-invoice-amount="[% HTML.escape(invoice.open_amount * 1) %]"> |
3 |
[% P.hidden_tag("invoice_ids." _ bt_id _ "[]", prop_id) %] |
|
4 |
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %] |
|
5 |
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %] |
|
6 |
[% IF SELECT_OPTIONS.size %] |
|
7 |
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", SELECT_OPTIONS, value_key="payment_type", title_key="display") %] |
|
8 |
[% END %] |
|
9 |
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ prop_id _ ")") %] |
|
6 |
[% P.hidden_tag("invoice_ids." _ bt_id _ "[]", prop_id) %] |
|
7 |
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %] |
|
8 |
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %] |
|
9 |
[% IF SELECT_OPTIONS.size %] |
|
10 |
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", SELECT_OPTIONS, value_key="payment_type", title_key="display") %] |
|
11 |
[% END %] |
|
12 |
<!-- PENDENT: Loeschsymbol (einheitliches) --> |
|
13 |
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ prop_id _ ")") %] |
|
10 | 14 |
</span> |
templates/webpages/bank_transactions/_problems.html | ||
---|---|---|
1 |
[%- USE LxERP -%][%- USE T8 -%][%- USE HTML -%][%- USE P -%]
|
|
2 |
<h3>
|
|
3 |
[% LxERP.t8("Warnings and errors") %]
|
|
4 |
</h3>
|
|
1 |
[% USE LxERP %]
|
|
2 |
[% USE T8 %]
|
|
3 |
[% USE HTML %]
|
|
4 |
[% USE P %]
|
|
5 | 5 |
|
6 |
<p> |
|
7 |
[% LxERP.t8("Bank transactions with errors have not been posted.") %] |
|
8 |
[% LxERP.t8("Bank transactions that either only have warnings or no message at all have been posted.") %] |
|
6 |
<h3>[% LxERP.t8("Warnings and errors") %]</h3> |
|
7 |
<p class="message message_info"> |
|
8 |
[% LxERP.t8("Bank transactions with errors have not been posted.") %] <br> |
|
9 |
[% LxERP.t8("Bank transactions that either only have warnings or no message at all have been posted.") %] |
|
9 | 10 |
</p> |
10 | 11 |
|
11 |
<table> |
|
12 |
<thead> |
|
13 |
<tr class="listheading"> |
|
14 |
<th>[% LxERP.t8("Type") %]</th> |
|
15 |
<th>[% LxERP.t8("Invoices") %]</th> |
|
16 |
<th>[% LxERP.t8("Transdate") %]</th> |
|
17 |
<th>[% LxERP.t8("Amount") %]</th> |
|
18 |
<th>[% LxERP.t8("Remote name") %]</th> |
|
19 |
<th>[% LxERP.t8("Purpose") %]</th> |
|
20 |
<th>[% LxERP.t8("Remote account number") %]</th> |
|
21 |
<th>[% LxERP.t8("Remote bank code") %]</th> |
|
22 |
<th>[% LxERP.t8("Message") %]</th> |
|
23 |
</tr> |
|
24 |
</thead> |
|
25 |
|
|
26 |
<tbody> |
|
27 |
[% FOREACH problem = SELF.problems %] |
|
28 |
<tr class="listrow[% IF problem.result == 'error' %]_error[% END %]"> |
|
29 |
<td>[% IF problem.result == 'error' %][% LxERP.t8("Error") %][% ELSE %][% LxERP.t8("Warning") %][% END %]</td> |
|
30 |
<td> |
|
31 |
[% FOREACH invoice = problem.invoices %] |
|
32 |
[% invoice.presenter.invoice %] |
|
33 |
[% UNLESS loop.last %]<br>[% END %] |
|
34 |
[% END %] |
|
35 |
</td> |
|
36 |
<td>[% HTML.escape(problem.bank_transaction.transdate.to_kivitendo) %]</td> |
|
37 |
<td>[% HTML.escape(LxERP.format_amount(problem.bank_transaction.amount, 2)) %]</td> |
|
38 |
<td>[% HTML.escape(problem.bank_transaction.remote_name) %]</td> |
|
39 |
<td>[% HTML.escape(problem.bank_transaction.purpose) %]</td> |
|
40 |
<td>[% HTML.escape(problem.bank_transaction.remote_account_number) %]</td> |
|
41 |
<td>[% HTML.escape(problem.bank_transaction.remote_bank_code) %]</td> |
|
42 |
<td>[% HTML.escape(problem.message) %]</td> |
|
43 |
</tr> |
|
44 |
[% END %] |
|
45 |
</tbody> |
|
12 |
<table class="tbl-list"> |
|
13 |
<thead> |
|
14 |
<tr> |
|
15 |
<th>[% LxERP.t8("Type") %]</th> |
|
16 |
<th>[% LxERP.t8("Invoices") %]</th> |
|
17 |
<th>[% LxERP.t8("Transdate") %]</th> |
|
18 |
<th>[% LxERP.t8("Amount") %]</th> |
|
19 |
<th>[% LxERP.t8("Remote name") %]</th> |
|
20 |
<th>[% LxERP.t8("Purpose") %]</th> |
|
21 |
<th>[% LxERP.t8("Remote account number") %]</th> |
|
22 |
<th>[% LxERP.t8("Remote bank code") %]</th> |
|
23 |
<th>[% LxERP.t8("Message") %]</th> |
|
24 |
</tr> |
|
25 |
</thead> |
|
26 |
<tbody> |
|
27 |
[% FOREACH problem = SELF.problems %] |
|
28 |
<tr[% IF problem.result == 'error' %]class="row_error"[% END %]> |
|
29 |
<td> |
|
30 |
[% IF problem.result == 'error' %] |
|
31 |
[% LxERP.t8("Error") %] |
|
32 |
[% ELSE %] |
|
33 |
[% LxERP.t8("Warning") %] |
|
34 |
[% END %] |
|
35 |
</td> |
|
36 |
<td> |
|
37 |
[% FOREACH invoice = problem.invoices %] |
|
38 |
[% invoice.presenter.invoice %] |
|
39 |
[% UNLESS loop.last %]<br>[% END %] |
|
40 |
[% END %]</td> |
|
41 |
<td>[% HTML.escape(problem.bank_transaction.transdate.to_kivitendo) %]</td> |
|
42 |
<td>[% HTML.escape(LxERP.format_amount(problem.bank_transaction.amount, 2)) %]</td> |
|
43 |
<td>[% HTML.escape(problem.bank_transaction.remote_name) %]</td> |
|
44 |
<td>[% HTML.escape(problem.bank_transaction.purpose) %]</td> |
|
45 |
<td>[% HTML.escape(problem.bank_transaction.remote_account_number) %]</td> |
|
46 |
<td>[% HTML.escape(problem.bank_transaction.remote_bank_code) %]</td> |
|
47 |
<td>[% HTML.escape(problem.message) %]</td> |
|
48 |
</tr> |
|
49 |
[% END %] |
|
50 |
</tbody> |
|
46 | 51 |
</table> |
52 |
|
templates/webpages/bank_transactions/_template_list.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE P %] |
|
2 | 4 |
|
3 | 5 |
[% IF TEMPLATES_AP.size %] |
4 |
[% LxERP.t8('AP template suggestions') %]: |
|
5 |
<table> |
|
6 |
<thead> |
|
7 |
<tr> |
|
8 |
<th class="listheading">[% LxERP.t8('Description') %]</th> |
|
9 |
<th class="listheading">[% LxERP.t8('Vendor') %]</th> |
|
10 |
<th class="listheading">[% LxERP.t8('Employee') %]</th> |
|
11 |
<th class="listheading">[% LxERP.t8('Template date') %]</th> |
|
12 |
</tr> |
|
13 |
</thead> |
|
14 | 6 |
|
15 |
<tbody> |
|
16 |
[% FOREACH template = TEMPLATES_AP %] |
|
17 |
<tr class="listrow"> |
|
18 |
<td>[% P.link_tag(SELF.load_ap_record_template_url(template), template.template_name) %]</td> |
|
19 |
<td>[% HTML.escape(template.vendor.name) %]</td> |
|
20 |
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td> |
|
21 |
<td>[% HTML.escape(template.itime_as_date) %]</td> |
|
22 |
</tr> |
|
23 |
[% END %] |
|
24 |
</tbody> |
|
25 |
</table> |
|
7 |
<table class="tbl-list"> |
|
8 |
<caption>[% LxERP.t8('AP template suggestions') %]:</caption> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% LxERP.t8('Description') %]</th> |
|
12 |
<th>[% LxERP.t8('Vendor') %]</th> |
|
13 |
<th>[% LxERP.t8('Employee') %]</th> |
|
14 |
<th>[% LxERP.t8('Template date') %]</th> |
|
15 |
</tr> |
|
16 |
</thead> |
|
17 |
<tbody> |
|
18 |
[% FOREACH template = TEMPLATES_AP %] |
|
19 |
<tr> |
|
20 |
<td>[% P.link_tag(SELF.load_ap_record_template_url(template), template.template_name) %]</td> |
|
21 |
<td>[% HTML.escape(template.vendor.name) %]</td> |
|
22 |
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td> |
|
23 |
<td>[% HTML.escape(template.itime_as_date) %]</td> |
|
24 |
</tr> |
|
25 |
[% END %] |
|
26 |
</tbody> |
|
27 |
</table> |
|
28 |
|
|
26 | 29 |
[% ELSE %] |
27 |
<p class="message_hint">[% LxERP.t8('No AP template was found.') %]</p>
|
|
30 |
<p class="message message_hint">[% LxERP.t8('No AP template was found.') %]</p>
|
|
28 | 31 |
[% END %] |
29 | 32 |
|
33 |
|
|
30 | 34 |
[% IF TEMPLATES_GL.size %] |
31 |
[% LxERP.t8('GL template suggestions') %]: |
|
32 |
<table> |
|
33 |
<thead> |
|
34 |
<tr> |
|
35 |
<th class="listheading">[% LxERP.t8('Description') %]</th> |
|
36 |
<th class="listheading">[% LxERP.t8('Reference') %]</th> |
|
37 |
<th class="listheading">[% LxERP.t8('Employee') %]</th> |
|
38 |
<th class="listheading">[% LxERP.t8('Template date') %]</th> |
|
39 |
</tr> |
|
40 |
</thead> |
|
41 | 35 |
|
42 |
<tbody> |
|
43 |
[% FOREACH template = TEMPLATES_GL %] |
|
44 |
<tr class="listrow"> |
|
45 |
<td>[% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %]</td> |
|
46 |
<td>[% HTML.escape(template.reference) %]</td> |
|
47 |
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td> |
|
48 |
<td>[% HTML.escape(template.itime_as_date) %]</td> |
|
49 |
</tr> |
|
50 |
[% END %] |
|
51 |
</tbody> |
|
52 |
</table> |
|
36 |
<table class="tbl-list"> |
|
37 |
<caption>[% LxERP.t8('GL template suggestions') %]:</caption> |
|
38 |
<thead> |
|
39 |
<tr> |
|
40 |
<th>[% LxERP.t8('Description') %]</th> |
|
41 |
<th>[% LxERP.t8('Reference') %]</th> |
|
42 |
<th>[% LxERP.t8('Employee') %]</th> |
|
43 |
<th>[% LxERP.t8('Template date') %]</th> |
|
44 |
</tr> |
|
45 |
</thead> |
|
46 |
<tbody> |
|
47 |
[% FOREACH template = TEMPLATES_GL %] |
|
48 |
<tr> |
|
49 |
<td>[% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %]</td> |
|
50 |
<td>[% HTML.escape(template.reference) %]</td> |
|
51 |
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td> |
|
52 |
<td>[% HTML.escape(template.itime_as_date) %]</td> |
|
53 |
</tr> |
|
54 |
[% END %] |
|
55 |
</tbody> |
|
56 |
</table> |
|
57 |
|
|
53 | 58 |
[% ELSE %] |
54 |
<p class="message_hint">[% LxERP.t8('No GL template was found.') %]</p>
|
|
59 |
<p class="message message_hint">[% LxERP.t8('No GL template was found.') %]</p>
|
|
55 | 60 |
[% END %] |
templates/webpages/bank_transactions/add_list.html | ||
---|---|---|
1 |
[%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%] |
|
2 |
[%- IF !INVOICES.size %] |
|
3 |
<p class="message_hint">[% 'No data was found.' | $T8 %]</p> |
|
4 |
[%- ELSE %] |
|
5 |
<table width="100%"> |
|
6 |
<tr class="listheading"> |
|
7 |
<th>[% L.checkbox_tag('invoices_check_all') %]</th> |
|
8 |
<th>[%- LxERP.t8("Invoice number") %]</th> |
|
9 |
<th>[%- LxERP.t8("Amount") %]</th> |
|
10 |
<th>[%- LxERP.t8("Open amount") %]</th> |
|
11 |
<th>[%- LxERP.t8("Amount less skonto") %]</th> |
|
12 |
<th>[%- LxERP.t8("Invoice Date") %]</th> |
|
13 |
<th>[%- LxERP.t8("Customer/Vendor Number") %]</th> |
|
14 |
<th>[%- LxERP.t8("Customer/Vendor Name") %]</th> |
|
15 |
</tr> |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE P %] |
|
5 |
[% USE L %] |
|
16 | 6 |
|
17 |
[%- FOREACH invoice = INVOICES %] |
|
18 |
<tr class="listrow[% loop.count % 2 %]"> |
|
19 |
<td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td> |
|
20 |
<td>[%- invoice.invnumber %]</td> |
|
21 |
<td align="right">[%- LxERP.format_amount(invoice.amount, 2) %]</td> |
|
22 |
<td align="right">[%- LxERP.format_amount(invoice.open_amount, 2) %]</td> |
|
23 |
<td align="right">[%- LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td> |
|
24 |
<td align="right">[%- invoice.transdate_as_date %]</td> |
|
25 |
<td>[%- invoice.vendor.vendornumber %][%- invoice.customer.customernumber %]</td> |
|
26 |
<td>[%- invoice.vendor.name %][%- invoice.customer.name %]</td> |
|
27 |
</tr> |
|
28 |
[%- END %] |
|
7 |
[% IF !INVOICES.size %] |
|
8 |
<p class="message message_hint">[% 'No data was found.' | $T8 %]</p> |
|
9 |
|
|
10 |
[% ELSE %] |
|
11 |
|
|
12 |
<table class="tbl-list"> |
|
13 |
<thead> |
|
14 |
<tr> |
|
15 |
<th>[% L.checkbox_tag('invoices_check_all') %]</th> |
|
16 |
<th>[% LxERP.t8("Invoice number") %]</th> |
|
17 |
<th>[% LxERP.t8("Amount") %]</th> |
|
18 |
<th>[% LxERP.t8("Open amount") %]</th> |
|
19 |
<th>[% LxERP.t8("Amount less skonto") %]</th> |
|
20 |
<th>[% LxERP.t8("Invoice Date") %]</th> |
|
21 |
<th>[% LxERP.t8("Customer/Vendor number") %]</th> |
|
22 |
<th>[% LxERP.t8("Customer/Vendor name") %]</th> |
|
23 |
</tr> |
|
24 |
</thead> |
|
25 |
<tbody> |
|
26 |
[% FOREACH invoice = INVOICES %] |
|
27 |
<tr> |
|
28 |
<td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td> |
|
29 |
<td>[% invoice.invnumber %]</td> |
|
30 |
<td>[% LxERP.format_amount(invoice.amount, 2) %]</td> |
|
31 |
<td>[% LxERP.format_amount(invoice.open_amount, 2) %]</td> |
|
32 |
<td>[% LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td> |
|
33 |
<td>[% invoice.transdate_as_date %]</td> |
|
34 |
<td>[% invoice.vendor.vendornumber %][% invoice.customer.customernumber %]</td> |
|
35 |
<td>[% invoice.vendor.name %][% invoice.customer.name %]</td> |
|
36 |
</tr> |
|
37 |
[% END %] |
|
38 |
</tbody> |
|
29 | 39 |
</table> |
30 | 40 |
|
31 |
<script type="text/javascript"> |
|
32 |
<!-- |
|
33 |
$(function() { |
|
34 |
$('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]'); |
|
41 |
<script type="text/javascript"><!-- |
|
42 |
$(function() { |
|
43 |
$('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]'); |
|
35 | 44 |
}); |
36 |
--> |
|
37 |
</script> |
|
38 |
[%- END %] |
|
45 |
--></script> |
|
39 | 46 |
|
47 |
[% END %] |
templates/webpages/bank_transactions/assign_invoice.html | ||
---|---|---|
1 |
[%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE T8 %] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE L %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE T8 %] |
|
2 | 5 |
|
3 | 6 |
[% SET debug = 0 %] |
4 | 7 |
|
5 | 8 |
<form method="post" action="javascript:kivi.BankTransaction.filter_invoices();" id="assign_invoice_window_form" data-bank-transaction-id="[% HTML.escape(SELF.transaction.id) %]"> |
6 |
<b>[%- LxERP.t8("Bank transaction") %]:</b> |
|
7 |
<table> |
|
8 |
<tr class="listheading"> |
|
9 |
[% IF debug %]<td>[%- LxERP.t8("ID") %]:</td>[% END %] |
|
10 |
<td>[%- LxERP.t8("Transdate") %]:</td> |
|
11 |
<td>[%- LxERP.t8("Amount") %]:</td> |
|
12 |
<td>[%- LxERP.t8("Remote name") %]:</td> |
|
13 |
<td>[%- LxERP.t8("Purpose") %]:</td> |
|
14 |
<td>[%- LxERP.t8("Remote account number") %]:</td> |
|
15 |
<td>[%- LxERP.t8("Remote bank code") %]:</td> |
|
16 |
</tr> |
|
17 | 9 |
|
18 |
<tr class="listrow"> |
|
19 |
[% IF debug %]<td>[% SELF.transaction.id %]</td>[% END %] |
|
20 |
<td>[% SELF.transaction.transdate_as_date %]</td> |
|
21 |
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td> |
|
22 |
<td>[% SELF.transaction.remote_name %]</td> |
|
23 |
<td>[% SELF.transaction.purpose %]</td> |
|
24 |
<td>[% SELF.transaction.remote_account_number %]</td> |
|
25 |
<td>[% SELF.transaction.remote_bank_code %]</td> |
|
26 |
</tr> |
|
27 |
</table> |
|
28 |
|
|
29 |
<b>[%- LxERP.t8("Invoice filter") %]:</b> |
|
30 |
<table> |
|
31 |
<tr> |
|
32 |
<th align="right">[%- LxERP.t8("Invoice number") %]</th> |
|
33 |
<td>[% L.input_tag('invnumber', '', style=style) %]</td> |
|
34 |
|
|
35 |
<th align="right">[%- LxERP.t8("Customer/Vendor Name") %]</th> |
|
36 |
<td>[% L.input_tag('vcname', '', style=style) %]</td> |
|
37 |
</tr> |
|
38 |
|
|
39 |
<tr> |
|
40 |
<th align="right">[%- LxERP.t8("Amount") %]</th> |
|
41 |
<td>[% L.input_tag('amount', '', style=style) %]</td> |
|
42 |
|
|
43 |
<th align="right">[%- LxERP.t8("Customer/Vendor Number") %]</th> |
|
44 |
<td>[% L.input_tag('vcnumber', '', style=style) %]</td> |
|
45 |
</tr> |
|
10 |
<div class="wrapper"> |
|
46 | 11 |
|
47 |
<tr> |
|
48 |
<th align="right">[%- LxERP.t8("Invdate from") %]</th> |
|
49 |
<td>[% L.date_tag('transdatefrom') %]</td> |
|
50 |
|
|
51 |
<th align="right">[%- LxERP.t8("to (date)") %]</th> |
|
52 |
<td>[% L.date_tag('transdateto') %]</td> |
|
53 |
</tr> |
|
12 |
<table class="tbl-liste"> |
|
13 |
<caption>[% LxERP.t8("Bank transaction") %]</caption> |
|
14 |
<thead> |
|
15 |
<tr> |
|
16 |
[% IF debug %] |
|
17 |
<td>[% LxERP.t8("ID") %]:</td> |
|
18 |
[% END %] |
|
19 |
<td>[% LxERP.t8("Transdate") %]:</td> |
|
20 |
<td>[% LxERP.t8("Amount") %]:</td> |
|
21 |
<td>[% LxERP.t8("Remote name") %]:</td> |
|
22 |
<td>[% LxERP.t8("Purpose") %]:</td> |
|
23 |
<td>[% LxERP.t8("Remote account number") %]:</td> |
|
24 |
<td>[% LxERP.t8("Remote bank code") %]:</td> |
|
25 |
</tr> |
|
26 |
</thead> |
|
27 |
<tbody> |
|
28 |
<tr> |
|
29 |
[% IF debug %] |
|
30 |
<td>[% SELF.transaction.id %]</td> |
|
31 |
[% END %] |
|
32 |
<td>[% SELF.transaction.transdate_as_date %]</td> |
|
33 |
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td> |
|
34 |
<td>[% SELF.transaction.remote_name %]</td> |
|
35 |
<td>[% SELF.transaction.purpose %]</td> |
|
36 |
<td>[% SELF.transaction.remote_account_number %]</td> |
|
37 |
<td>[% SELF.transaction.remote_bank_code %]</td> |
|
38 |
</tr> |
|
39 |
</tbody> |
|
54 | 40 |
</table> |
55 | 41 |
|
56 |
<p> |
|
57 |
[% L.submit_tag('', LxERP.t8("Search")) %] |
|
58 |
[% L.button_tag('kivi.BankTransaction.add_selected_invoices()', LxERP.t8("Add invoices"), id='add_selected_record_links_button') %] |
|
59 |
[% L.button_tag('$("#assign_invoice_window_form").resetForm()', LxERP.t8('Reset')) %] |
|
60 |
<a href="#" onclick="$('#assign_invoice_window').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
|
61 |
</p> |
|
42 |
<table class="tbl-horizontal"> |
|
43 |
<caption>[% LxERP.t8("Invoice filter") %]</caption> |
|
44 |
<tbody> |
|
45 |
<tr> |
|
46 |
<th>[% LxERP.t8("Invoice number") %]</th> |
|
47 |
<td>[% L.input_tag('invnumber', '', style=style) %]</td> |
|
48 |
<th>[% LxERP.t8("Customer/Vendor Name") %]</th> |
|
49 |
<td>[% L.input_tag('vcname', '', style=style) %]</td> |
|
50 |
</tr> |
|
51 |
<tr> |
|
52 |
<th>[% LxERP.t8("Amount") %]</th> |
|
53 |
<td>[% L.input_tag('amount', '', style=style) %]</td> |
|
54 |
<th>[% LxERP.t8("Customer/Vendor Number") %]</th> |
|
55 |
<td>[% L.input_tag('vcnumber', '', style=style) %]</td> |
|
56 |
</tr> |
|
57 |
<tr> |
|
58 |
<th>[% LxERP.t8("Invdate from") %]</th> |
|
59 |
<td>[% L.date_tag('transdatefrom') %]</td> |
|
60 |
<th>[% LxERP.t8("to (date)") %]</th> |
|
61 |
<td>[% L.date_tag('transdateto') %]</td> |
|
62 |
</tr> |
|
63 |
</tbody> |
|
64 |
</table> |
|
62 | 65 |
|
63 |
<hr> |
|
66 |
<div class="buttons"> |
|
67 |
[% L.submit_tag('', LxERP.t8("Search")) %] |
|
68 |
[% L.button_tag('kivi.BankTransaction.add_selected_invoices()', LxERP.t8("Add invoices"), id='add_selected_record_links_button') %] |
|
69 |
[% L.button_tag('$("#assign_invoice_window_form").resetForm()', LxERP.t8('Reset'), class='neutral') %] |
|
70 |
<a href="#" onclick="$('#assign_invoice_window').dialog('close');" class="neutral">[% LxERP.t8("Cancel") %]</a> |
|
71 |
</div> |
|
64 | 72 |
|
65 | 73 |
<div id="record_list_filtered_list"></div> |
66 | 74 |
|
75 |
</div><!-- /.wrapper --> |
|
76 |
|
|
67 | 77 |
</form> |
68 | 78 |
|
69 |
<script type="text/javascript"> |
|
70 |
<!-- |
|
79 |
<script type="text/javascript"><!-- |
|
71 | 80 |
$(function() { |
72 | 81 |
$('#invnumber').focus(); |
73 | 82 |
}); |
74 |
|
|
75 |
//--> |
|
76 |
</script> |
|
83 |
//--></script> |
templates/webpages/bank_transactions/create_invoice.html | ||
---|---|---|
1 |
[%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE P -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE L %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE P %] |
|
5 |
<div class="wrapper"> |
|
2 | 6 |
|
3 |
<b>Transaction</b> |
|
4 |
<table> |
|
5 |
<tr class="listheading"> |
|
6 |
<td>[%- LxERP.t8("ID") %]:</td> |
|
7 |
<td>[%- LxERP.t8("Amount") %]:</td> |
|
8 |
<td>[%- LxERP.t8("Date") %]:</td> |
|
9 |
<td>[%- LxERP.t8("Remote name") %]:</td> |
|
10 |
<td>[%- LxERP.t8("Purpose") %]:</td> |
|
11 |
<td>[%- LxERP.t8("Remote bank code") %]:</td> |
|
12 |
<td>[%- LxERP.t8("Remote account number") %]:</td> |
|
13 |
</tr> |
|
7 |
<table class="tbl-list"> |
|
8 |
<caption>[% 'Transaction' | $T8 %]</caption> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% LxERP.t8("ID") %]</th> |
|
12 |
<th>[% LxERP.t8("Amount") %]</th> |
|
13 |
<th>[% LxERP.t8("Date") %]</th> |
|
14 |
<th>[% LxERP.t8("Remote name") %]</th> |
|
15 |
<th>[% LxERP.t8("Purpose") %]</th> |
|
16 |
<th>[% LxERP.t8("Remote bank code") %]</th> |
|
17 |
<th>[% LxERP.t8("Remote account number") %]</th> |
|
18 |
</tr> |
|
19 |
</thead> |
|
20 |
<tbody> |
|
21 |
<tr> |
|
22 |
<td>[% SELF.transaction.id %]</td> |
|
23 |
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td> |
|
24 |
<td>[% SELF.transaction.valutadate_as_date %]</td> |
|
25 |
<td>[% SELF.transaction.remote_name %]</td> |
|
26 |
<td>[% SELF.transaction.purpose %]</td> |
|
27 |
<td>[% SELF.transaction.remote_bank_code %]</td> |
|
28 |
<td>[% SELF.transaction.remote_account_number %]</td> |
|
29 |
</tr> |
|
30 |
</tbody> |
|
31 |
</table> |
|
14 | 32 |
|
15 |
<tr class="listrow"> |
|
16 |
<td>[% SELF.transaction.id %]</td> |
|
17 |
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td> |
|
18 |
<td>[% SELF.transaction.valutadate_as_date %]</td> |
|
19 |
<td>[% SELF.transaction.remote_name %]</td> |
|
20 |
<td>[% SELF.transaction.purpose %]</td> |
|
21 |
<td>[% SELF.transaction.remote_bank_code %]</td> |
|
22 |
<td>[% SELF.transaction.remote_account_number %]</td> |
|
23 |
</tr> |
|
24 |
</table> |
|
25 | 33 |
|
34 |
<form method="post" action="javascript:kivi.BankTransaction.filter_templates()" id="create_invoice_window_form"> |
|
35 |
[% L.hidden_tag("bt_id", SELF.transaction.id) %] |
|
36 |
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %] |
|
37 |
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %] |
|
38 |
[% L.hidden_tag("filter.todate", FORM.filter.todate) %] |
|
26 | 39 |
|
27 |
<br> |
|
40 |
<table class="tbl-horizontal"> |
|
41 |
<tbody> |
|
42 |
<tr> |
|
43 |
<th>[% LxERP.t8("Template Description") %]</th> |
|
44 |
<td>[% P.input_tag("template", template_name, style="width: 250px") %]</td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<th>[% LxERP.t8("Vendor") %]</th> |
|
48 |
<td>[% P.input_tag("vendor", vendor_name, style="width: 250px") %]</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th>[% LxERP.t8("Reference") %]</th> |
|
52 |
<td>[% P.input_tag("reference", reference_name, style="width: 250px") %]</td> |
|
53 |
</tr> |
|
54 |
</tbody> |
|
55 |
</table> |
|
56 |
|
|
57 |
<div class="buttons"> |
|
58 |
[% P.submit_tag('', LxERP.t8("Filter")) %] |
|
59 |
[% P.button_tag('$("#create_invoice_window_form").resetForm()', LxERP.t8('Reset'), class='neutral') %] |
|
60 |
<a href="#" onclick="$('#create_invoice_window').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a> |
|
61 |
</p> |
|
28 | 62 |
|
29 |
<form method="post" action="javascript:kivi.BankTransaction.filter_templates()" id="create_invoice_window_form"> |
|
30 |
[% L.hidden_tag("bt_id", SELF.transaction.id) %] |
|
31 |
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %] |
|
32 |
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %] |
|
33 |
[% L.hidden_tag("filter.todate", FORM.filter.todate) %] |
|
34 |
<table> |
|
35 |
<tr> |
|
36 |
<th align="right">[%- LxERP.t8("Template Description") %]</th> |
|
37 |
<td>[% P.input_tag("template", template_name, style="width: 250px") %]</td> |
|
38 |
</tr> |
|
39 |
<tr> |
|
40 |
<th align="right">[%- LxERP.t8("Vendor") %]</th> |
|
41 |
<td>[% P.input_tag("vendor", vendor_name, style="width: 250px") %]</td> |
|
42 |
</tr> |
|
43 |
<tr> |
|
44 |
<th align="right">[%- LxERP.t8("Reference") %]</th> |
|
45 |
<td>[% P.input_tag("reference", reference_name, style="width: 250px") %]</td> |
|
46 |
</tr> |
|
47 |
</table> |
|
48 |
<p> |
|
49 |
[% P.submit_tag('', LxERP.t8("Filter")) %] |
|
50 |
[% P.button_tag('$("#create_invoice_window_form").resetForm()', LxERP.t8('Reset')) %] |
|
51 |
<a href="#" onclick="$('#create_invoice_window').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
|
52 |
</p> |
|
53 | 63 |
</form> |
54 |
<hr> |
|
64 |
|
|
55 | 65 |
<div id="templates"> |
56 |
[% PROCESS "bank_transactions/_template_list.html" %] |
|
66 |
[% PROCESS "bank_transactions/_template_list.html" %]
|
|
57 | 67 |
</div> |
68 |
</div><!-- /.wrapper --> |
|
58 | 69 |
|
59 |
<script type="text/javascript"> |
|
60 |
<!-- |
|
70 |
<script type="text/javascript"><!-- |
|
61 | 71 |
$(function() { |
62 | 72 |
$('#template').focus(); |
63 | 73 |
}); |
64 |
|
|
65 |
//--> |
|
66 |
</script> |
|
74 |
//--></script> |
templates/webpages/bank_transactions/invoices.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE P %] |
|
2 | 4 |
[% SET debug=1 %] |
5 |
|
|
3 | 6 |
[% FOREACH invoice = INVOICES %] |
4 |
<tr id="extra_row_[% HTML.escape(bt_id) %]_[% HTML.escape(invoice.id) %]"> |
|
5 |
<td></td> |
|
6 |
<td></td> |
|
7 |
<td id="assigned_invoices_[% bt.id %]_[% invoice.id %]"> |
|
8 |
<span id="[% bt_id %].[% invoice.id %]" data-invoice-amount="[% HTML.escape(invoice.open_amount * 1) %]"> |
|
9 |
[% P.hidden_tag("invoice_ids." _ bt_id _"[]", invoice.id) %] |
|
10 |
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %] |
|
11 |
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %] |
|
12 |
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", invoice.get_payment_select_options_for_bank_transaction(bt_id), value_key="payment_type", title_key="display") %] |
|
13 |
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ invoice.id _ ")") %] |
|
14 |
</span> |
|
15 |
</td> |
|
16 |
<td>[% P.input_tag("sources_" _ bt_id _ "_" _ invoice.id, "") %]</td> |
|
17 |
<td>[% P.input_tag("memos_" _ bt_id _ "_" _ invoice.id, "") %]</td> |
|
18 |
[% IF debug %] |
|
19 |
<td></td> |
|
20 |
[% END %] |
|
21 |
<td></td> |
|
22 |
<td></td> |
|
23 |
<td></td> |
|
24 |
<td></td> |
|
25 |
<td></td> |
|
26 |
<td></td> |
|
27 |
<td></td> |
|
28 |
<td></td> |
|
29 |
<td></td> |
|
30 |
<td></td> |
|
31 |
<td></td> |
|
32 |
</tr> |
|
7 |
<tr id="extra_row_[% HTML.escape(bt_id) %]_[% HTML.escape(invoice.id) %]">
|
|
8 |
<td></td>
|
|
9 |
<td></td>
|
|
10 |
<td id="assigned_invoices_[% bt.id %]_[% invoice.id %]">
|
|
11 |
<span id="[% bt_id %].[% invoice.id %]" data-invoice-amount="[% HTML.escape(invoice.open_amount * 1) %]">
|
|
12 |
[% P.hidden_tag("invoice_ids." _ bt_id _"[]", invoice.id) %]
|
|
13 |
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %]
|
|
14 |
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %]
|
|
15 |
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", invoice.get_payment_select_options_for_bank_transaction(bt_id), value_key="payment_type", title_key="display") %]
|
|
16 |
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ invoice.id _ ")") %]
|
|
17 |
</span>
|
|
18 |
</td>
|
|
19 |
<td>[% P.input_tag("sources_" _ bt_id _ "_" _ invoice.id, "") %]</td>
|
|
20 |
<td>[% P.input_tag("memos_" _ bt_id _ "_" _ invoice.id, "") %]</td>
|
|
21 |
[% IF debug %]
|
|
22 |
<td></td>
|
|
23 |
[% END %]
|
|
24 |
<td></td>
|
|
25 |
<td></td>
|
|
26 |
<td></td>
|
|
27 |
<td></td>
|
|
28 |
<td></td>
|
|
29 |
<td></td>
|
|
30 |
<td></td>
|
|
31 |
<td></td>
|
|
32 |
<td></td>
|
|
33 |
<td></td>
|
|
34 |
<td></td>
|
|
35 |
</tr>
|
|
33 | 36 |
[% END %] |
templates/webpages/bank_transactions/list.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE L %] |
|
4 |
[% USE T8 %] |
|
2 | 5 |
|
3 | 6 |
<h1>[% title %]</h1> |
4 | 7 |
|
5 |
[%- INCLUDE 'common/flash.html' %]
|
|
8 |
[% INCLUDE 'common/flash.html' %] |
|
6 | 9 |
|
7 | 10 |
[% IF SELF.problems.size %] |
8 |
[% INCLUDE 'bank_transactions/_problems.html' %] |
|
11 |
[% INCLUDE 'bank_transactions/_problems.html' %]
|
|
9 | 12 |
[% END %] |
10 | 13 |
|
11 | 14 |
<p>[% HTML.escape(bank_account.name) %] [% HTML.escape(bank_account.iban) %], [% 'Bank code' | $T8 %] [% HTML.escape(bank_account.bank_code) %], [% 'Bank' | $T8 %] [% HTML.escape(bank_account.bank) %]</p> |
12 | 15 |
<p> |
13 |
[% IF FORM.filter.fromdate %] [% 'From' | $T8 %] [% FORM.filter.fromdate %] [% END %]
|
|
14 |
[% IF FORM.filter.todate %] [% 'to (date)' | $T8 %] [% FORM.filter.todate %][% END %]
|
|
15 |
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %] |
|
16 |
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %]
|
|
17 |
[% L.hidden_tag("filter.todate", FORM.filter.todate) %]
|
|
16 |
[% IF FORM.filter.fromdate %] [% 'From' | $T8 %] [% FORM.filter.fromdate %] [% END %]
|
|
17 |
[% IF FORM.filter.todate %] [% 'to (date)' | $T8 %] [% FORM.filter.todate %] [% END %]
|
|
18 |
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %]
|
|
19 |
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %]
|
|
20 |
[% L.hidden_tag("filter.todate", FORM.filter.todate) %]
|
|
18 | 21 |
</p> |
19 | 22 |
|
20 | 23 |
<div id="bt_tabs" class="tabwidget"> |
... | ... | |
23 | 26 |
<li><a href="#automatic">[% 'Proposals' | $T8 %]</a></li> |
24 | 27 |
</ul> |
25 | 28 |
|
26 |
<div id="all">[% PROCESS "bank_transactions/tabs/all.html" %]</div> |
|
27 |
<div id="automatic">[% PROCESS "bank_transactions/tabs/automatic.html" %]</div> |
|
29 |
<div id="all"> |
|
30 |
[% PROCESS "bank_transactions/tabs/all.html" %] |
|
31 |
</div> |
|
32 |
<div id="automatic"> |
|
33 |
[% PROCESS "bank_transactions/tabs/automatic.html" %] |
|
34 |
</div> |
|
28 | 35 |
</div> |
29 | 36 |
|
30 |
<div id="set_all_sources_memos_dialog" class="hidden"> |
|
31 |
<table> |
|
32 |
<tr> |
|
33 |
<th>[% LxERP.t8("Source") %]:</th> |
|
34 |
<td>[% L.input_tag("set_all_sources", "") %]</td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<th>[% LxERP.t8("Memo") %]:</th> |
|
39 |
<td>[% L.input_tag("set_all_memos", "") %]</td> |
|
40 |
</tr> |
|
41 |
</table> |
|
42 |
|
|
43 |
<p> |
|
44 |
[% L.button_tag("kivi.BankTransaction.set_all_sources_memos()", LxERP.t8("Set fields")) %] |
|
45 |
<a href="#" onclick="$('#set_all_sources_memos_dialog').dialog('close');">[%- LxERP.t8("Cancel") %]</a> |
|
46 |
</p> |
|
47 |
</div> |
|
48 | 37 |
|
49 |
<script type="text/javascript"> |
|
50 |
<!-- |
|
38 |
<div id="set_all_sources_memos_dialog" class="hidden"> |
|
39 |
<table class="tbl-horizontal"> |
|
40 |
<tr> |
|
41 |
<th>[% LxERP.t8("Source") %]:</th> |
|
42 |
<td>[% L.input_tag("set_all_sources", "") %]</td> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<th>[% LxERP.t8("Memo") %]:</th> |
|
46 |
<td>[% L.input_tag("set_all_memos", "") %]</td> |
|
47 |
</tr> |
|
48 |
</table> |
|
49 |
|
|
50 |
<div class="buttons"> |
|
51 |
[% L.button_tag("kivi.BankTransaction.set_all_sources_memos()", LxERP.t8("Set fields")) %] |
|
52 |
<a href="#" onclick="$('#set_all_sources_memos_dialog').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a> |
|
53 |
</div> |
|
54 |
</div><!-- /#set_all_sources_memos_dialog --> |
|
55 |
|
|
56 |
|
|
57 |
<script type="text/javascript"><!-- |
|
51 | 58 |
$(function() { |
52 | 59 |
kivi.BankTransaction.init_list([% ui_tab %]); |
53 | 60 |
}); |
54 |
//--> |
|
55 |
</script> |
|
61 |
//--></script> |
templates/webpages/bank_transactions/report_bottom.html | ||
---|---|---|
1 | 1 |
[% USE L %] |
2 |
[%- L.paginate_controls(models=SELF.models) %] |
|
2 |
[% L.paginate_controls(models=SELF.models) %] |
templates/webpages/bank_transactions/report_top.html | ||
---|---|---|
1 |
[%- USE L %] |
|
2 |
[%- PROCESS 'bank_transactions/_filter.html' filter=SELF.models.filtered.laundered %] |
|
3 |
<hr> |
|
1 |
[% USE L %] |
|
2 |
[% PROCESS 'bank_transactions/_filter.html' filter=SELF.models.filtered.laundered %] |
|
3 |
|
templates/webpages/bank_transactions/search.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE HTML %]
|
|
3 |
[%- USE L %]
|
|
4 |
[%- USE LxERP %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE L %] |
|
4 |
[% USE LxERP %] |
|
5 | 5 |
|
6 |
[%- INCLUDE 'common/flash.html' %] |
|
6 |
[% INCLUDE 'common/flash.html' %] |
|
7 |
<h1>[% 'Search bank transactions' | $T8 %]</h1> |
|
7 | 8 |
|
8 |
<form method="post" action="controller.pl" id="search_form"> |
|
9 | 9 |
|
10 |
<div class="listtop">[% 'Search bank transactions' | $T8 %]</div> |
|
11 |
|
|
12 |
<p> |
|
13 |
<table> |
|
10 |
<form method="post" action="controller.pl" id="search_form"> |
|
11 |
<div class="wrapper"> |
|
14 | 12 |
|
13 |
<table class="tbl-horizontal"> |
|
15 | 14 |
<tr> |
16 |
<th align="right">[% 'Bank account' | $T8 %]</th>
|
|
17 |
<td>[% L.select_tag('filter.bank_account', BANK_ACCOUNTS, default=bank_account, title_key='displayable_name', with_empty=0, style='width:450px') %]</td>
|
|
15 |
<th>[% 'Bank account' | $T8 %]</th>
|
|
16 |
<td>[% L.select_tag('filter.bank_account', BANK_ACCOUNTS, default=bank_account, title_key='displayable_name', with_empty=0, class='wi-wide') %]</td>
|
|
18 | 17 |
</tr> |
19 |
|
|
20 | 18 |
<tr> |
21 |
<th align="right">[% 'Transdate from' | $T8 %]</th>
|
|
22 |
<td>[% L.date_tag('filter.fromdate', filter.fromdate) %]</td>
|
|
19 |
<th>[% 'Transdate from' | $T8 %]</th>
|
|
20 |
<td><span class="wi-date">[% L.date_tag('filter.fromdate', filter.fromdate) %]</span></td>
|
|
23 | 21 |
</tr> |
24 |
|
|
25 | 22 |
<tr> |
26 |
<th align="right">[% 'to (date)' | $T8 %]</th>
|
|
27 |
<td>[% L.date_tag('filter.todate', filter.todate) %]</td>
|
|
23 |
<th>[% 'to (date)' | $T8 %]</th>
|
|
24 |
<td><span class="wi-date">[% L.date_tag('filter.todate', filter.todate) %]</span></td>
|
|
28 | 25 |
</tr> |
29 |
</table> |
|
30 |
</p> |
|
31 |
</form> |
|
26 |
</table> |
|
27 |
|
|
28 |
</div> |
|
29 |
</form> |
templates/webpages/bank_transactions/tabs/all.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- USE P -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE L %] |
|
4 |
[% USE T8 %] |
|
5 |
[% USE P %] |
|
2 | 6 |
|
3 | 7 |
[% BLOCK proposal_div %] |
4 |
<div data-proposal-id="[% prop.id %]"> |
|
5 |
<a href=# onclick="kivi.BankTransaction.add_invoices('[% bt.id %]', '[% prop.id %]');" |
|
6 |
title="<table><tr><th></th><th>[% 'Suggested invoice' | $T8 %][% IF !prop.is_sales %] ([% 'AP' | $T8 %])[% END %]</th><th>[% 'Bank transaction' | $T8 %]</th></tr><tr><th>[% 'Amount' | $T8 %]</th><td>[% prop.realamount %] ([% 'open' | $T8 %]: [% LxERP.format_amount(prop.open_amount, 2) %])</td><td>[% LxERP.format_amount(bt.amount, 2) %]</td></tr>[% IF prop.skonto_date %]<tr><th>[% 'Payment terms' | $T8 %]</th><td>[% LxERP.format_amount(prop.amount_less_skonto, 2) %] [% 'until' | $T8 %] [% HTML.escape(prop.skonto_date.to_kivitendo) %] ([% prop.percent_skonto * 100 %] %)</td><td></td></tr>[% END %]<tr><th>[% 'Customer/Vendor' | $T8 %]</th><td>[% HTML.escape(prop.customer.displayable_name) %][% HTML.escape(prop.vendor.displayable_name) %]</td><td>[% HTML.escape(bt.remote_name) %]</td></tr><tr><th>[% 'Invoice Date' | $T8 %]</th><td>[% HTML.escape(prop.transdate_as_date) %]</td><td>[% HTML.escape(bt.transdate_as_date) %] ([% HTML.escape(bt.transdate.utc_rd_days - prop.transdate.utc_rd_days) %])</td></tr><tr><th>[% 'Invoice Number' | $T8 %]</th><td>[% HTML.escape(prop.invnumber) %]</td><td>[% HTML.escape(bt.purpose) %]</td></tr></table>" |
|
8 |
<div data-proposal-id="[% prop.id %]"> |
|
9 |
<a href=# onclick="kivi.BankTransaction.add_invoices('[% bt.id %]', '[% prop.id %]');" title="<table><tr><th></th><th>[% 'Suggested invoice' | $T8 %][% IF !prop.is_sales %] ([% 'AP' | $T8 %])[% END %]</th><th>[% 'Bank transaction' | $T8 %]</th></tr><tr><th>[% 'Amount' | $T8 %]</th><td>[% prop.realamount %] ([% 'open' | $T8 %]: [% LxERP.format_amount(prop.open_amount, 2) %])</td><td>[% LxERP.format_amount(bt.amount, 2) %]</td></tr>[% IF prop.skonto_date %]<tr><th>[% 'Payment terms' | $T8 %]</th><td>[% LxERP.format_amount(prop.amount_less_skonto, 2) %] [% 'until' | $T8 %] [% HTML.escape(prop.skonto_date.to_kivitendo) %] ([% prop.percent_skonto * 100 %] %)</td><td></td></tr>[% END %]<tr><th>[% 'Customer/Vendor' | $T8 %]</th><td>[% HTML.escape(prop.customer.displayable_name) %][% HTML.escape(prop.vendor.displayable_name) %]</td><td>[% HTML.escape(bt.remote_name) %]</td></tr><tr><th>[% 'Invoice Date' | $T8 %]</th><td>[% HTML.escape(prop.transdate_as_date) %]</td><td>[% HTML.escape(bt.transdate_as_date) %] ([% HTML.escape(bt.transdate.utc_rd_days - prop.transdate.utc_rd_days) %])</td></tr><tr><th>[% 'Invoice Number' | $T8 %]</th><td>[% HTML.escape(prop.invnumber) %]</td><td>[% HTML.escape(bt.purpose) %]</td></tr></table>" |
|
7 | 10 |
class="[% IF bt.agreement >= 5 %]green[% ELSIF bt.agreement < 5 and bt.agreement >= 3 %]orange[% ELSE %]red[% END %] tooltipster-html">←[% HTML.escape(prop.invnumber)%]</a> |
8 | 11 |
</div> |
9 | 12 |
[% END %] |
10 | 13 |
|
11 | 14 |
[% SET debug=1 %] |
12 | 15 |
<form method="post" id="list_all_form"> |
13 |
[% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %] |
|
14 |
[% L.hidden_tag('filter.fromdate', FORM.filter.fromdate) %] |
|
15 |
[% L.hidden_tag('filter.todate', FORM.filter.todate) %] |
|
16 |
[% L.hidden_tag('action', 'BankTransaction/dispatch') %] |
|
17 |
[% L.hidden_tag('ui_tab', ui_tab) %] |
|
16 |
[% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %]
|
|
17 |
[% L.hidden_tag('filter.fromdate', FORM.filter.fromdate) %]
|
|
18 |
[% L.hidden_tag('filter.todate', FORM.filter.todate) %]
|
|
19 |
[% L.hidden_tag('action', 'BankTransaction/dispatch') %]
|
|
20 |
[% L.hidden_tag('ui_tab', ui_tab) %]
|
|
18 | 21 |
|
19 |
<table id="bt_list"> |
|
20 |
<thead> |
|
21 |
<tr class="listheading"> |
|
22 |
<th></th> |
|
23 |
<th></th> |
|
24 |
<th>[% LxERP.t8("Assigned invoices with amount") %]</th> |
|
25 |
<th style="width: 100px">[% LxERP.t8("Source") %]</th> |
|
26 |
<th style="width: 100px">[% LxERP.t8("Memo") %]</th> |
|
27 |
[% IF debug %] |
|
28 |
<th>[% 'Score' | $T8 %]</th> |
|
29 |
[% END %] |
|
30 |
<th>[% IF FORM.sort_by == 'proposal'%] |
|
31 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=proposal&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
32 |
[% 'Proposal' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
33 |
[% ELSE %] |
|
34 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=proposal&sort_dir=0" class="sort_link"> |
|
35 |
[% 'Proposal' | $T8 %]</a> |
|
36 |
[% END %] |
|
37 |
</th> |
|
38 |
<th>[% IF FORM.sort_by == 'transdate'%] |
|
39 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=transdate&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
40 |
[% 'Transdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
41 |
[% ELSE %] |
|
42 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=transdate&sort_dir=0" class="sort_link"> |
|
43 |
[% 'Transdate' | $T8 %]</a> |
|
44 |
[% END %] |
|
45 |
</th> |
|
46 |
<th>[% IF FORM.sort_by == 'amount'%] |
|
47 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=amount&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
48 |
[% 'Amount' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
49 |
[% ELSE %] |
|
50 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=amount&sort_dir=0" class="sort_link"> |
|
51 |
[% 'Amount' | $T8 %]</a> |
|
52 |
[% END %] |
|
53 |
</th> |
|
54 |
<th>[% 'Assigned' | $T8 %]</th> |
|
55 |
<th>[% IF FORM.sort_by == 'remote_name'%] |
|
56 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_name&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
57 |
[% 'Remote name' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
58 |
[% ELSE %] |
|
59 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_name&sort_dir=0" class="sort_link"> |
|
60 |
[% 'Remote name' | $T8 %]</a> |
|
61 |
[% END %] |
|
62 |
</th> |
|
63 |
<th>[% 'Purpose' | $T8 %]</th> |
|
64 |
<th>[% 'Type' | $T8 %]</th> |
|
65 |
<th>[% IF FORM.sort_by == 'remote_account_number'%] |
|
66 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_account_number&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
67 |
[% 'Remote account number' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
68 |
[% ELSE %] |
|
69 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_account_number&sort_dir=0" class="sort_link"> |
|
70 |
[% 'Remote account number' | $T8 %]</a> |
|
71 |
[% END %] |
|
72 |
</th> |
|
73 |
<th>[% IF FORM.sort_by == 'remote_bank_code'%] |
|
74 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_bank_code&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
75 |
[% 'Remote bank code' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
76 |
[% ELSE %] |
|
77 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_bank_code&sort_dir=0" class="sort_link"> |
|
78 |
[% 'Remote bank code' | $T8 %]</a> |
|
79 |
[% END %] |
|
80 |
</th> |
|
81 |
<th>[% IF FORM.sort_by == 'valutadate'%] |
|
82 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=valutadate&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
83 |
[% 'Valutadate' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a> |
|
84 |
[% ELSE %] |
|
85 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=valutadate&sort_dir=0" class="sort_link"> |
|
86 |
[% 'Valutadate' | $T8 %]</a> |
|
87 |
[% END %] |
|
88 |
</th> |
|
89 |
<th>[% 'Currency' | $T8 %]</th> |
|
90 |
</tr> |
|
91 |
</thead> |
|
92 |
|
|
93 |
[%- FOREACH bt = BANK_TRANSACTIONS %] |
|
94 |
<tbody class="listrow" id="bt_rows_[% HTML.escape(bt.id) %]"> |
|
95 |
[% SET proposals = bt.proposals.as_list.size > 0 ? bt.proposals.as_list : [{}] ; |
|
96 |
FOREACH prop = proposals %] |
|
97 |
[% IF loop.first %] |
|
98 |
<tr id="bt_id_[% bt.id %]"> |
|
99 |
<td><a href=# onclick="kivi.BankTransaction.assign_invoice('[% bt.id %]'); return false;">[% 'Assign invoice' | $T8 %]</a></td> |
|
100 |
<td><a href=# onclick="kivi.BankTransaction.create_invoice('[% bt.id %]'); return false;">[% 'Create invoice' | $T8 %]</a></td> |
|
101 |
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td> |
|
102 |
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
103 |
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
104 |
[% IF debug %] |
|
105 |
<td class="tooltipster-html" title="[% FOREACH match = bt.rule_matches %] [% match %]<br> [% END %]">[% bt.agreement %]</td> |
|
106 |
[% END %] |
|
107 |
<td> |
|
108 |
[% IF prop.id ; |
|
109 |
PROCESS proposal_div ; |
|
110 |
END %] |
|
111 |
</td> |
|
112 |
<td align="right">[% bt.transdate_as_date %]</td> |
|
113 |
<td align="right">[% LxERP.format_amount(bt.amount, 2) %]</td> |
|
114 |
<td align="right" id="invoice_amount_[% HTML.escape(bt.id) %]" data-invoice-amount="[% HTML.escape(bt.invoice_amount) %]">[% HTML.escape(LxERP.format_amount(bt.invoice_amount, 2)) %]</td> |
|
115 |
<td>[% HTML.escape(bt.remote_name) %]</td> |
|
116 |
<td>[% HTML.escape(bt.purpose) %]</td> |
|
117 |
<td>[% HTML.escape(bt.transaction_text) %]</td> |
|
118 |
<td>[% HTML.escape(bt.remote_account_number) %]</td> |
|
119 |
<td>[% HTML.escape(bt.remote_bank_code) %]</td> |
|
120 |
<td align="right">[% bt.valutadate_as_date %]</td> |
|
121 |
<td align="center">[% HTML.escape(bt.currency.name) %]</td> |
|
122 |
</tr> |
|
123 |
[% ELSE # loop.first %] |
|
22 |
<table id="bt_list" class="tbl-list"> |
|
23 |
<thead> |
|
124 | 24 |
<tr> |
125 |
<td></td> |
|
126 |
<td></td> |
|
127 |
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td> |
|
128 |
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
129 |
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
130 |
[% IF debug %] |
|
131 |
<td></td> |
|
132 |
[% END %] |
|
133 |
<td> |
|
134 |
[% PROCESS proposal_div %] |
|
135 |
</td> |
|
136 |
<td></td> |
|
137 |
<td></td> |
|
138 |
<td></td> |
|
139 |
<td></td> |
|
140 |
<td></td> |
|
141 |
<td></td> |
|
142 |
<td></td> |
|
143 |
<td></td> |
|
144 |
<td></td> |
|
145 |
<td></td> |
|
25 |
<th></th> |
|
26 |
<th></th> |
|
27 |
<th>[% LxERP.t8("Assigned invoices with amount") %]</th> |
|
28 |
<th style="width: 100px">[% LxERP.t8("Source") %]</th> |
|
29 |
<th style="width: 100px">[% LxERP.t8("Memo") %]</th> |
|
30 |
[% IF debug %] |
|
31 |
<th>[% 'Score' | $T8 %]</th> |
|
32 |
[% END %] |
|
33 |
<th> |
|
34 |
[% IF FORM.sort_by == 'proposal'%] |
|
35 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=proposal&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
36 |
[% 'Proposal' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
37 |
[% ELSE %] |
|
38 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=proposal&sort_dir=0" class="sort_link">[% 'Proposal' | $T8 %]</a> |
|
39 |
[% END %] |
|
40 |
</th> |
|
41 |
<th> |
|
42 |
[% IF FORM.sort_by == 'transdate'%] |
|
43 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=transdate&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
44 |
[% 'Transdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
45 |
[% ELSE %] |
|
46 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=transdate&sort_dir=0" class="sort_link">[% 'Transdate' | $T8 %]</a> |
|
47 |
[% END %] |
|
48 |
</th> |
|
49 |
<th> |
|
50 |
[% IF FORM.sort_by == 'amount'%] |
|
51 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=amount&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
52 |
[% 'Amount' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
53 |
[% ELSE %] |
|
54 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=amount&sort_dir=0" class="sort_link"> |
|
55 |
[% 'Amount' | $T8 %]</a> |
|
56 |
[% END %] |
|
57 |
</th> |
|
58 |
<th>[% 'Assigned' | $T8 %]</th> |
|
59 |
<th> |
|
60 |
[% IF FORM.sort_by == 'remote_name'%] |
|
61 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_name&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
62 |
[% 'Remote name' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
63 |
[% ELSE %] |
|
64 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_name&sort_dir=0" class="sort_link"> |
|
65 |
[% 'Remote name' | $T8 %]</a> |
|
66 |
[% END %] |
|
67 |
</th> |
|
68 |
<th>[% 'Purpose' | $T8 %]</th> |
|
69 |
<th>[% 'Type' | $T8 %]</th> |
|
70 |
<th> |
|
71 |
[% IF FORM.sort_by == 'remote_account_number'%] |
|
72 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_account_number&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
73 |
[% 'Remote account number' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
74 |
[% ELSE %] |
|
75 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_account_number&sort_dir=0" class="sort_link"> |
|
76 |
[% 'Remote account number' | $T8 %]</a> |
|
77 |
[% END %] |
|
78 |
</th> |
|
79 |
<th> |
|
80 |
[% IF FORM.sort_by == 'remote_bank_code'%] |
|
81 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_bank_code&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
82 |
[% 'Remote bank code' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
83 |
[% ELSE %] |
|
84 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_bank_code&sort_dir=0" class="sort_link">[% 'Remote bank code' | $T8 %]</a> |
|
85 |
[% END %] |
|
86 |
</th> |
|
87 |
<th> |
|
88 |
[% IF FORM.sort_by == 'valutadate'%] |
|
89 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=valutadate&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link"> |
|
90 |
[% 'Valutadate' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a> |
|
91 |
[% ELSE %] |
|
92 |
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=valutadate&sort_dir=0" class="sort_link"> |
|
93 |
[% 'Valutadate' | $T8 %]</a> |
|
94 |
[% END %] |
|
95 |
</th> |
|
96 |
<th>[% 'Currency' | $T8 %]</th> |
|
146 | 97 |
</tr> |
147 |
[% END # loop.first %] |
|
98 |
</thead> |
|
99 |
[% FOREACH bt = BANK_TRANSACTIONS %] |
|
100 |
<tbody id="bt_rows_[% HTML.escape(bt.id) %]"> |
|
101 |
[% SET proposals = bt.proposals.as_list.size > 0 ? bt.proposals.as_list : [{}] ; |
|
102 |
FOREACH prop = proposals %] |
|
103 |
[% IF loop.first %] |
|
104 |
<tr id="bt_id_[% bt.id %]"> |
|
105 |
<td><a href=# onclick="kivi.BankTransaction.assign_invoice('[% bt.id %]'); return false;">[% 'Assign invoice' | $T8 %]</a></td> |
|
106 |
<td><a href=# onclick="kivi.BankTransaction.create_invoice('[% bt.id %]'); return false;">[% 'Create invoice' | $T8 %]</a></td> |
|
107 |
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td> |
|
108 |
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
109 |
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
110 |
[% IF debug %] |
|
111 |
<td class="tooltipster-html" title="[% FOREACH match = bt.rule_matches %] [% match %]<br> [% END %]">[% bt.agreement %]</td> |
|
112 |
[% END %] |
|
113 |
<td>[% IF prop.id ; PROCESS proposal_div ; END %]</td> |
|
114 |
<td>[% bt.transdate_as_date %]</td> |
|
115 |
<td>[% LxERP.format_amount(bt.amount, 2) %]</td> |
|
116 |
<td id="invoice_amount_[% HTML.escape(bt.id) %]" data-invoice-amount="[% HTML.escape(bt.invoice_amount) %]">[% HTML.escape(LxERP.format_amount(bt.invoice_amount, 2)) %]</td> |
|
117 |
<td>[% HTML.escape(bt.remote_name) %]</td> |
|
118 |
<td>[% HTML.escape(bt.purpose) %]</td> |
|
119 |
<td>[% HTML.escape(bt.transaction_text) %]</td> |
|
120 |
<td>[% HTML.escape(bt.remote_account_number) %]</td> |
|
121 |
<td>[% HTML.escape(bt.remote_bank_code) %]</td> |
|
122 |
<td>[% bt.valutadate_as_date %]</td> |
|
123 |
<td>[% HTML.escape(bt.currency.name) %]</td> |
|
124 |
</tr> |
|
125 |
[% ELSE # loop.first %] |
|
126 |
<tr> |
|
127 |
<td></td> |
|
128 |
<td></td> |
|
129 |
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td> |
|
130 |
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
131 |
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td> |
|
132 |
[% IF debug %] |
|
133 |
<td></td> |
|
134 |
[% END %] |
|
135 |
<td> |
|
136 |
[% PROCESS proposal_div %] |
|
137 |
</td> |
|
138 |
<td></td> |
|
139 |
<td></td> |
|
140 |
<td></td> |
|
141 |
<td></td> |
|
142 |
<td></td> |
|
143 |
<td></td> |
|
144 |
<td></td> |
|
145 |
<td></td> |
|
146 |
<td></td> |
|
147 |
<td></td> |
|
148 |
</tr> |
|
149 |
[% END # loop.first %] |
|
148 | 150 |
[% END # FOREACH proposal %] |
149 | 151 |
</tbody> |
150 |
[%- END %]
|
|
151 |
</table> |
|
152 |
[% END %] |
|
153 |
</table>
|
|
152 | 154 |
|
153 |
<p>
|
|
155 |
<div class="buttons">
|
|
154 | 156 |
[% L.submit_tag('action_save_invoices', LxERP.t8('Save invoices')) %] |
155 |
[% L.button_tag('kivi.BankTransaction.show_set_all_sources_memos_dialog("#list_all_form [name^=\\"sources_\\"]:visible", "#list_all_form [name^=\\"memos_\\"]:visible")', LxERP.t8('Set all source and memo fields')) %] |
|
156 |
</p>
|
|
157 |
[% L.button_tag('kivi.BankTransaction.show_set_all_sources_memos_dialog("#list_all_form [name^=\\"sources_\\"]:visible", "#list_all_form [name^=\\"memos_\\"]:visible")', LxERP.t8('Set all source and memo fields'), class='neutral') %]
|
|
158 |
</div>
|
|
157 | 159 |
|
158 | 160 |
</form> |
templates/webpages/bank_transactions/tabs/automatic.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%] |
|
1 |
[% USE HTML %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE L %] |
|
4 |
[% USE T8 %] |
|
2 | 5 |
|
3 | 6 |
<form method="post" id="list_automatic_form"> |
4 | 7 |
[% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %] |
... | ... | |
7 | 10 |
[% L.hidden_tag('action', 'BankTransaction/dispatch') %] |
8 | 11 |
[% L.hidden_tag('ui_tab', ui_tab) %] |
9 | 12 |
|
10 |
<table id="bank_transactions_proposals"> |
|
13 |
<table id="bank_transactions_proposals" class="tbl-list">
|
|
11 | 14 |
<thead> |
12 |
<tr class="listheading">
|
|
15 |
<tr> |
|
13 | 16 |
<th>[% L.checkbox_tag('check_all') %]</th> |
14 |
|
|
15 | 17 |
<th>[% 'Type' | $T8 %]</th> |
16 | 18 |
<th>[% 'ID' | $T8 %]</th> |
17 | 19 |
<th>[% 'Transdate' | $T8 %]</th> |
... | ... | |
23 | 25 |
<th>[% LxERP.t8("Memo") %]</th> |
24 | 26 |
</tr> |
25 | 27 |
</thead> |
28 |
<tbody> |
|
26 | 29 |
[% IF !PROPOSALS.size %] |
27 |
<tbody class="listrow"> |
|
28 |
<td colspan="7"><p class="message_hint">[% 'No data was found.' | $T8 %]</p></td> |
|
29 |
</tbody> |
|
30 |
<td colspan="10"><p class="message message_hint center">[% 'No data was found.' | $T8 %]</p></td> |
|
30 | 31 |
[% ELSE %] |
31 | 32 |
[% FOREACH proposal = PROPOSALS %] |
32 |
<tbody class="listrow"> |
|
33 |
<tr> |
|
34 |
<td rowspan=[% proposal.rowspan %] style="valign:center;"> |
|
35 |
[% L.checkbox_tag('proposal_ids[]', checked=0, value=proposal.id) %] |
|
36 |
</td> |
|
37 |
|
|
38 |
<td>[% HTML.escape(proposal.transaction_text) %]</td> |
|
39 |
<td>[% proposal.id %]</td> |
|
40 |
<td>[% proposal.transdate_as_date %]</td> |
|
41 |
<td align="right">[% LxERP.format_amount(proposal.amount,2) %]</td> |
|
42 |
<td></td> |
|
43 |
<td> |
|
44 |
[% SET purpose = HTML.escape(proposal.purpose) |
|
45 |
invnumber_found = '' ; |
|
46 |
FOREACH proposed_invoice = proposal.proposals; |
|
47 |
IF purpose.match(proposed_invoice.invnumber); |
|
48 |
SET invnumber_found = proposed_invoice.invnumber ; |
|
49 |
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 ; |
|
50 | 48 |
END ; |
49 |
END ; |
|
51 | 50 |
|
52 |
IF invnumber_found ;
|
|
53 |
purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ;
|
|
54 |
ELSE ;
|
|
55 |
purpose ;
|
|
56 |
END %]
|
|
57 |
</td>
|
|
58 |
<td>[% HTML.escape(proposal.remote_name) %]</td>
|
|
59 |
<td></td>
|
|
60 |
<td></td>
|
|
61 |
</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> |
|
62 | 61 |
|
63 | 62 |
[% FOREACH proposed_invoice = proposal.proposals %] |
64 | 63 |
<tr> |
65 |
|
|
66 | 64 |
<td></td> |
67 | 65 |
<td>[% 'Invoice' | $T8 %]</td> |
68 | 66 |
<td>[% proposed_invoice.id %]</td> |
69 | 67 |
<td>[% proposed_invoice.transdate_as_date %] |
70 | 68 |
[% L.hidden_tag("invoice_ids." _ proposal.id _ "[]", proposed_invoice.id) %]</td> |
71 |
<td align="right">[% proposed_invoice.realamount %]</td>
|
|
69 |
<td>[% proposed_invoice.realamount %]</td> |
|
72 | 70 |
<td>[% proposed_invoice.skonto_type | $T8 %] |
73 | 71 |
[% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", proposed_invoice.skonto_type) %]</td> |
74 | 72 |
<td[% IF proposed_invoice.invnumber == invnumber_found %] class="invoice_number_highlight"[% END %]>[% proposed_invoice.link %]</td> |
... | ... | |
76 | 74 |
<td>[% L.input_tag("sources." _ proposal.id _ "[]", "", size=20) %]</td> |
77 | 75 |
<td>[% L.input_tag("memos." _ proposal.id _ "[]", "", size=20) %]</td> |
78 | 76 |
</tr> |
79 |
[% END %] |
|
77 |
[% END %] |
|
78 |
|
|
80 | 79 |
<tr><td style="height:10px" colspan="10"></td></tr> |
81 | 80 |
</tbody> |
82 | 81 |
[% END %] |
83 | 82 |
[% END %] |
84 | 83 |
</table> |
85 | 84 |
|
86 |
<p>
|
|
85 |
<div class="buttons">
|
|
87 | 86 |
[% L.submit_tag('action_save_proposals', LxERP.t8('Save proposals')) %] |
88 |
[% 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')) %] |
|
89 |
</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>
|
|
90 | 89 |
|
91 | 90 |
</form> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/bank_transactions/..