Revision e129f5a4
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/bank_transactions/_filter.html | ||
---|---|---|
[%- USE T8 %]
|
||
[%- USE L %]
|
||
[%- USE LxERP %]
|
||
[%- USE HTML %]
|
||
[% USE T8 %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
[% USE HTML %]
|
||
|
||
<form action='controller.pl' method='post' id='filter_form'>
|
||
<div class='filter_toggle'>
|
||
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
|
||
[% SELF.filter_summary | html %]
|
||
</div>
|
||
<div class='filter_toggle' style='display:none'>
|
||
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
|
||
<table id='filter_table'>
|
||
<div class="wrapper">
|
||
|
||
[% BLOCK filter_toggle_panel %]
|
||
<table id='filter_table' class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th align="right">[% 'Bank account' | $T8 %]</th>
|
||
<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>
|
||
<th>[% 'Bank account' | $T8 %]</th>
|
||
<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>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Transdate from' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td>
|
||
<th>[% 'Transdate from' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</span></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Transdate to' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</td>
|
||
<th>[% 'Transdate to' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</span></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Valutadate from' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.valutadate:date::ge', filter.valutadate_date__ge) %]</td>
|
||
<th>[% 'Valutadate from' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('filter.valutadate:date::ge', filter.valutadate_date__ge) %]</span></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Valutadate to' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.valutadate:date::le', filter.valutadate_date__le) %]</td>
|
||
<th>[% 'Valutadate to' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('filter.valutadate:date::le', filter.valutadate_date__le) %]</span></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Remote name' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.remote_name:substr::ilike', filter.remote_name_substr__ilike, size=60, class='initial_focus') %]</td>
|
||
<th>[% 'Remote name' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.remote_name:substr::ilike', filter.remote_name_substr__ilike, class='initial_focus wi-verywide') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Remote account number' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.remote_account_number:substr::ilike', filter.remote_account_number_substr__ilike, size=60, class='initial_focus') %]</td>
|
||
<th>[% 'Remote account number' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.remote_account_number:substr::ilike', filter.remote_account_number_substr__ilike, class='initial_focus wi-verywide') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Remote bank code' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.remote_bank_code:substr::ilike', filter.remote_bank_code_substr__ilike, size=60, class='initial_focus') %]</td>
|
||
<th>[% 'Remote bank code' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.remote_bank_code:substr::ilike', filter.remote_bank_code_substr__ilike, size=60, class='initial_focus wi-small') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Amount' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.amount:number', filter.amount_number, size = 20) %]</td>
|
||
<th>[% 'Amount' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.amount:number', filter.amount_number, class="wi-small") %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Purpose' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.purpose:substr::ilike', filter.purpose_substr__ilike, size=60, class='initial_focus') %]</td>
|
||
<th>[% 'Purpose' | $T8 %]</th>
|
||
<td>[% L.input_tag('filter.purpose:substr::ilike', filter.purpose_substr__ilike, size=60, class='initial_focus wi-verywide') %]</td>
|
||
</tr>
|
||
</table>
|
||
</tbody>
|
||
</table>
|
||
|
||
[% L.hidden_tag('sort_by', FORM.sort_by) %]
|
||
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
|
||
[% L.hidden_tag('page', FORM.page) %]
|
||
|
||
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]
|
||
<div class="buttons">
|
||
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
|
||
</div>
|
||
[% END %]
|
||
|
||
|
||
[% INCLUDE 'common/toggle_panel.html'%]
|
||
|
||
</div><!-- /.wrapper -->
|
||
|
||
</form>
|
templates/webpages/bank_transactions/_payment_suggestion.html | ||
---|---|---|
[%- USE P -%][%- USE HTML -%][%- USE LxERP -%]
|
||
[% USE P %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
|
||
[% SELECT_OPTIONS = invoice.get_payment_select_options_for_bank_transaction(bt_id) %]
|
||
[% is_skonto_pt = SELECT_OPTIONS.1.selected %]
|
||
[% formatted_skonto_amount = LxERP.format_amount(invoice.skonto_amount, 2) %]
|
||
[% formatted_skonto_amount_selected = is_skonto_pt ? formatted_skonto_amount : LxERP.format_amount(0, 2) %]
|
||
<span id="[% HTML.escape(bt_id) %].[% HTML.escape(invoice.id) %]"
|
||
<span id="[% HTML.escape(bt_id) %].[% HTML.escape(prop_id) %]"
|
||
data-invoice-amount="[% HTML.escape(invoice.open_amount * 1) %]"
|
||
data-invoice-amount-less-skonto="[% HTML.escape(invoice.amount_less_skonto * 1) %]">
|
||
[% P.hidden_tag("invoice_ids." _ bt_id _ "[]", invoice.id) %]
|
||
[% P.hidden_tag("skonto_pt." _ bt_id _ "." _ invoice.id _ "", is_skonto_pt) %]
|
||
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %]</br>
|
||
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %]</br>
|
||
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", SELECT_OPTIONS, value_key="payment_type", title_key="display", onChange="kivi.BankTransaction.update_skonto(this, " _ bt_id _ ", " _ invoice.id _ ", '$formatted_skonto_amount')" ) %]</br>
|
||
[% LxERP.t8("Skonto amount") %]: [% P.input_tag("free_skonto_amount." _ bt_id _ "." _ invoice.id _ "", "$formatted_skonto_amount_selected", default=0, style=style, disabled=1, size=4, class='numeric', onblur="kivi.BankTransaction.update_invoice_amount(" _ bt_id _ ", 0, this)") %]
|
||
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ invoice.id _ ")") %]
|
||
[% P.hidden_tag("invoice_ids." _ bt_id _ "[]", prop_id) %]
|
||
[% P.hidden_tag("skonto_pt." _ bt_id _ "." _ invoice.id _ "", is_skonto_pt) %]
|
||
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %]
|
||
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %]
|
||
[% IF SELECT_OPTIONS.size %]
|
||
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", SELECT_OPTIONS, value_key="payment_type", title_key="display", onChange="kivi.BankTransaction.update_skonto(this, " _ bt_id _ ", " _ invoice.id _ ", '$formatted_skonto_amount')" ) %]</br>
|
||
[% LxERP.t8("Skonto amount") %]: [% P.input_tag("free_skonto_amount." _ bt_id _ "." _ invoice.id _ "", "$formatted_skonto_amount_selected", default=0, style=style, disabled=1, size=4, class='numeric', onblur="kivi.BankTransaction.update_invoice_amount(" _ bt_id _ ", 0, this)") %]
|
||
[% END %]
|
||
<!-- PENDENT: Loeschsymbol (einheitliches) -->
|
||
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ prop_id _ ")") %]
|
||
</span>
|
templates/webpages/bank_transactions/_problems.html | ||
---|---|---|
[%- USE LxERP -%][%- USE T8 -%][%- USE HTML -%][%- USE P -%]
|
||
<h3>
|
||
[% LxERP.t8("Warnings and errors") %]
|
||
</h3>
|
||
[% USE LxERP %]
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE P %]
|
||
|
||
<p>
|
||
[% LxERP.t8("Bank transactions with errors have not been posted.") %]
|
||
[% LxERP.t8("Bank transactions that either only have warnings or no message at all have been posted.") %]
|
||
<h3>[% LxERP.t8("Warnings and errors") %]</h3>
|
||
<p class="message message_info">
|
||
[% LxERP.t8("Bank transactions with errors have not been posted.") %] <br>
|
||
[% LxERP.t8("Bank transactions that either only have warnings or no message at all have been posted.") %]
|
||
</p>
|
||
|
||
<table>
|
||
<thead>
|
||
<tr class="listheading">
|
||
<th>[% LxERP.t8("Type") %]</th>
|
||
<th>[% LxERP.t8("Invoices") %]</th>
|
||
<th>[% LxERP.t8("Transdate") %]</th>
|
||
<th>[% LxERP.t8("Amount") %]</th>
|
||
<th>[% LxERP.t8("Remote name") %]</th>
|
||
<th>[% LxERP.t8("Purpose") %]</th>
|
||
<th>[% LxERP.t8("Remote account number") %]</th>
|
||
<th>[% LxERP.t8("Remote bank code") %]</th>
|
||
<th>[% LxERP.t8("Message") %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
[% FOREACH problem = SELF.problems %]
|
||
<tr class="listrow[% IF problem.result == 'error' %]_error[% END %]">
|
||
<td>[% IF problem.result == 'error' %][% LxERP.t8("Error") %][% ELSE %][% LxERP.t8("Warning") %][% END %]</td>
|
||
<td>
|
||
[% FOREACH invoice = problem.invoices %]
|
||
[% invoice.presenter.invoice %]
|
||
[% UNLESS loop.last %]<br>[% END %]
|
||
[% END %]
|
||
</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.transdate.to_kivitendo) %]</td>
|
||
<td>[% HTML.escape(LxERP.format_amount(problem.bank_transaction.amount, 2)) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.remote_name) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.purpose) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.remote_account_number) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.remote_bank_code) %]</td>
|
||
<td>[% HTML.escape(problem.message) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
<table class="tbl-list">
|
||
<thead>
|
||
<tr>
|
||
<th>[% LxERP.t8("Type") %]</th>
|
||
<th>[% LxERP.t8("Invoices") %]</th>
|
||
<th>[% LxERP.t8("Transdate") %]</th>
|
||
<th>[% LxERP.t8("Amount") %]</th>
|
||
<th>[% LxERP.t8("Remote name") %]</th>
|
||
<th>[% LxERP.t8("Purpose") %]</th>
|
||
<th>[% LxERP.t8("Remote account number") %]</th>
|
||
<th>[% LxERP.t8("Remote bank code") %]</th>
|
||
<th>[% LxERP.t8("Message") %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH problem = SELF.problems %]
|
||
<tr[% IF problem.result == 'error' %]class="row_error"[% END %]>
|
||
<td>
|
||
[% IF problem.result == 'error' %]
|
||
[% LxERP.t8("Error") %]
|
||
[% ELSE %]
|
||
[% LxERP.t8("Warning") %]
|
||
[% END %]
|
||
</td>
|
||
<td>
|
||
[% FOREACH invoice = problem.invoices %]
|
||
[% invoice.presenter.invoice %]
|
||
[% UNLESS loop.last %]<br>[% END %]
|
||
[% END %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.transdate.to_kivitendo) %]</td>
|
||
<td>[% HTML.escape(LxERP.format_amount(problem.bank_transaction.amount, 2)) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.remote_name) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.purpose) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.remote_account_number) %]</td>
|
||
<td>[% HTML.escape(problem.bank_transaction.remote_bank_code) %]</td>
|
||
<td>[% HTML.escape(problem.message) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
templates/webpages/bank_transactions/_template_list.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE P %]
|
||
|
||
[% IF TEMPLATES_AP.size %]
|
||
[% LxERP.t8('AP template suggestions') %]:
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th class="listheading">[% LxERP.t8('Description') %]</th>
|
||
<th class="listheading">[% LxERP.t8('Vendor') %]</th>
|
||
<th class="listheading">[% LxERP.t8('Employee') %]</th>
|
||
<th class="listheading">[% LxERP.t8('Template date') %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
[% FOREACH template = TEMPLATES_AP %]
|
||
<tr class="listrow">
|
||
<td>[% P.link_tag(SELF.load_ap_record_template_url(template), template.template_name) %]</td>
|
||
<td>[% HTML.escape(template.vendor.name) %]</td>
|
||
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td>
|
||
<td>[% HTML.escape(template.itime_as_date) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
<table class="tbl-list">
|
||
<caption>[% LxERP.t8('AP template suggestions') %]:</caption>
|
||
<thead>
|
||
<tr>
|
||
<th>[% LxERP.t8('Description') %]</th>
|
||
<th>[% LxERP.t8('Vendor') %]</th>
|
||
<th>[% LxERP.t8('Employee') %]</th>
|
||
<th>[% LxERP.t8('Template date') %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH template = TEMPLATES_AP %]
|
||
<tr>
|
||
<td>[% P.link_tag(SELF.load_ap_record_template_url(template), template.template_name) %]</td>
|
||
<td>[% HTML.escape(template.vendor.name) %]</td>
|
||
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td>
|
||
<td>[% HTML.escape(template.itime_as_date) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
[% ELSE %]
|
||
<p class="message_hint">[% LxERP.t8('No AP template was found.') %]</p>
|
||
<p class="message message_hint">[% LxERP.t8('No AP template was found.') %]</p>
|
||
[% END %]
|
||
|
||
|
||
[% IF TEMPLATES_GL.size %]
|
||
[% LxERP.t8('GL template suggestions') %]:
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th class="listheading">[% LxERP.t8('Description') %]</th>
|
||
<th class="listheading">[% LxERP.t8('Reference') %]</th>
|
||
<th class="listheading">[% LxERP.t8('Employee') %]</th>
|
||
<th class="listheading">[% LxERP.t8('Template date') %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
[% FOREACH template = TEMPLATES_GL %]
|
||
<tr class="listrow">
|
||
<td>[% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %]</td>
|
||
<td>[% HTML.escape(template.reference) %]</td>
|
||
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td>
|
||
<td>[% HTML.escape(template.itime_as_date) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
<table class="tbl-list">
|
||
<caption>[% LxERP.t8('GL template suggestions') %]:</caption>
|
||
<thead>
|
||
<tr>
|
||
<th>[% LxERP.t8('Description') %]</th>
|
||
<th>[% LxERP.t8('Reference') %]</th>
|
||
<th>[% LxERP.t8('Employee') %]</th>
|
||
<th>[% LxERP.t8('Template date') %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH template = TEMPLATES_GL %]
|
||
<tr>
|
||
<td>[% P.link_tag(SELF.load_gl_record_template_url(template), template.template_name) %]</td>
|
||
<td>[% HTML.escape(template.reference) %]</td>
|
||
<td>[% HTML.escape(template.employee.name || template.employee.login) %]</td>
|
||
<td>[% HTML.escape(template.itime_as_date) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
[% ELSE %]
|
||
<p class="message_hint">[% LxERP.t8('No GL template was found.') %]</p>
|
||
<p class="message message_hint">[% LxERP.t8('No GL template was found.') %]</p>
|
||
[% END %]
|
templates/webpages/bank_transactions/add_list.html | ||
---|---|---|
[%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%]
|
||
[%- IF !INVOICES.size %]
|
||
<p class="message_hint">[% 'No data was found.' | $T8 %]</p>
|
||
[%- ELSE %]
|
||
<table width="100%">
|
||
<tr class="listheading">
|
||
<th>[% L.checkbox_tag('invoices_check_all') %]</th>
|
||
<th>[%- LxERP.t8("Invoice number") %]</th>
|
||
<th>[%- LxERP.t8("Amount") %]</th>
|
||
<th>[%- LxERP.t8("Open amount") %]</th>
|
||
<th>[%- LxERP.t8("Amount less skonto") %]</th>
|
||
<th>[%- LxERP.t8("Invoice Date") %]</th>
|
||
<th>[%- LxERP.t8("Customer/Vendor Number") %]</th>
|
||
<th>[%- LxERP.t8("Customer/Vendor Name") %]</th>
|
||
</tr>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE P %]
|
||
[% USE L %]
|
||
|
||
[%- FOREACH invoice = INVOICES %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
<td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
|
||
<td>[%- invoice.invnumber %]</td>
|
||
<td align="right">[%- LxERP.format_amount(invoice.amount, 2) %]</td>
|
||
<td align="right">[%- LxERP.format_amount(invoice.open_amount, 2) %]</td>
|
||
<td align="right">[%- LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td>
|
||
<td align="right">[%- invoice.transdate_as_date %]</td>
|
||
<td>[%- invoice.vendor.vendornumber %][%- invoice.customer.customernumber %]</td>
|
||
<td>[%- invoice.vendor.name %][%- invoice.customer.name %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
[% IF !INVOICES.size %]
|
||
<p class="message message_hint">[% 'No data was found.' | $T8 %]</p>
|
||
|
||
[% ELSE %]
|
||
|
||
<table class="tbl-list">
|
||
<thead>
|
||
<tr>
|
||
<th>[% L.checkbox_tag('invoices_check_all') %]</th>
|
||
<th>[% LxERP.t8("Invoice number") %]</th>
|
||
<th>[% LxERP.t8("Amount") %]</th>
|
||
<th>[% LxERP.t8("Open amount") %]</th>
|
||
<th>[% LxERP.t8("Amount less skonto") %]</th>
|
||
<th>[% LxERP.t8("Invoice Date") %]</th>
|
||
<th>[% LxERP.t8("Customer/Vendor number") %]</th>
|
||
<th>[% LxERP.t8("Customer/Vendor name") %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH invoice = INVOICES %]
|
||
<tr>
|
||
<td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
|
||
<td>[% invoice.invnumber %]</td>
|
||
<td>[% LxERP.format_amount(invoice.amount, 2) %]</td>
|
||
<td>[% LxERP.format_amount(invoice.open_amount, 2) %]</td>
|
||
<td>[% LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td>
|
||
<td>[% invoice.transdate_as_date %]</td>
|
||
<td>[% invoice.vendor.vendornumber %][% invoice.customer.customernumber %]</td>
|
||
<td>[% invoice.vendor.name %][% invoice.customer.name %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
$(function() {
|
||
$('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');
|
||
<script type="text/javascript"><!--
|
||
$(function() {
|
||
$('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');
|
||
});
|
||
-->
|
||
</script>
|
||
[%- END %]
|
||
--></script>
|
||
|
||
[% END %]
|
templates/webpages/bank_transactions/assign_invoice.html | ||
---|---|---|
[%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
[% USE T8 %]
|
||
|
||
[% SET debug = 0 %]
|
||
|
||
<form method="post" action="javascript:kivi.BankTransaction.filter_invoices();" id="assign_invoice_window_form" data-bank-transaction-id="[% HTML.escape(SELF.transaction.id) %]">
|
||
<b>[%- LxERP.t8("Bank transaction") %]:</b>
|
||
<table>
|
||
<tr class="listheading">
|
||
[% IF debug %]<td>[%- LxERP.t8("ID") %]:</td>[% END %]
|
||
<td>[%- LxERP.t8("Transdate") %]:</td>
|
||
<td>[%- LxERP.t8("Amount") %]:</td>
|
||
<td>[%- LxERP.t8("Remote name") %]:</td>
|
||
<td>[%- LxERP.t8("Purpose") %]:</td>
|
||
<td>[%- LxERP.t8("Remote account number") %]:</td>
|
||
<td>[%- LxERP.t8("Remote bank code") %]:</td>
|
||
</tr>
|
||
|
||
<tr class="listrow">
|
||
[% IF debug %]<td>[% SELF.transaction.id %]</td>[% END %]
|
||
<td>[% SELF.transaction.transdate_as_date %]</td>
|
||
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td>
|
||
<td>[% SELF.transaction.remote_name %]</td>
|
||
<td>[% SELF.transaction.purpose %]</td>
|
||
<td>[% SELF.transaction.remote_account_number %]</td>
|
||
<td>[% SELF.transaction.remote_bank_code %]</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<b>[%- LxERP.t8("Invoice filter") %]:</b>
|
||
<table>
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Invoice number") %]</th>
|
||
<td>[% L.input_tag('invnumber', '', style=style) %]</td>
|
||
|
||
<th align="right">[%- LxERP.t8("Customer/Vendor Name") %]</th>
|
||
<td>[% L.input_tag('vcname', '', style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Amount") %]</th>
|
||
<td>[% L.input_tag('amount', '', style=style) %]</td>
|
||
|
||
<th align="right">[%- LxERP.t8("Customer/Vendor Number") %]</th>
|
||
<td>[% L.input_tag('vcnumber', '', style=style) %]</td>
|
||
</tr>
|
||
<div class="wrapper">
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Invdate from") %]</th>
|
||
<td>[% L.date_tag('transdatefrom') %]</td>
|
||
|
||
<th align="right">[%- LxERP.t8("to (date)") %]</th>
|
||
<td>[% L.date_tag('transdateto') %]</td>
|
||
</tr>
|
||
<table class="tbl-liste">
|
||
<caption>[% LxERP.t8("Bank transaction") %]</caption>
|
||
<thead>
|
||
<tr>
|
||
[% IF debug %]
|
||
<td>[% LxERP.t8("ID") %]:</td>
|
||
[% END %]
|
||
<td>[% LxERP.t8("Transdate") %]:</td>
|
||
<td>[% LxERP.t8("Amount") %]:</td>
|
||
<td>[% LxERP.t8("Remote name") %]:</td>
|
||
<td>[% LxERP.t8("Purpose") %]:</td>
|
||
<td>[% LxERP.t8("Remote account number") %]:</td>
|
||
<td>[% LxERP.t8("Remote bank code") %]:</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
[% IF debug %]
|
||
<td>[% SELF.transaction.id %]</td>
|
||
[% END %]
|
||
<td>[% SELF.transaction.transdate_as_date %]</td>
|
||
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td>
|
||
<td>[% SELF.transaction.remote_name %]</td>
|
||
<td>[% SELF.transaction.purpose %]</td>
|
||
<td>[% SELF.transaction.remote_account_number %]</td>
|
||
<td>[% SELF.transaction.remote_bank_code %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<p>
|
||
[% L.submit_tag('', LxERP.t8("Search")) %]
|
||
[% L.button_tag('kivi.BankTransaction.add_selected_invoices()', LxERP.t8("Add invoices"), id='add_selected_record_links_button') %]
|
||
[% L.button_tag('$("#assign_invoice_window_form").resetForm()', LxERP.t8('Reset')) %]
|
||
<a href="#" onclick="$('#assign_invoice_window').dialog('close');">[% LxERP.t8("Cancel") %]</a>
|
||
</p>
|
||
<table class="tbl-horizontal">
|
||
<caption>[% LxERP.t8("Invoice filter") %]</caption>
|
||
<tbody>
|
||
<tr>
|
||
<th>[% LxERP.t8("Invoice number") %]</th>
|
||
<td>[% L.input_tag('invnumber', '', style=style) %]</td>
|
||
<th>[% LxERP.t8("Customer/Vendor Name") %]</th>
|
||
<td>[% L.input_tag('vcname', '', style=style) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Amount") %]</th>
|
||
<td>[% L.input_tag('amount', '', style=style) %]</td>
|
||
<th>[% LxERP.t8("Customer/Vendor Number") %]</th>
|
||
<td>[% L.input_tag('vcnumber', '', style=style) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Invdate from") %]</th>
|
||
<td>[% L.date_tag('transdatefrom') %]</td>
|
||
<th>[% LxERP.t8("to (date)") %]</th>
|
||
<td>[% L.date_tag('transdateto') %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<hr>
|
||
<div class="buttons">
|
||
[% L.submit_tag('', LxERP.t8("Search")) %]
|
||
[% L.button_tag('kivi.BankTransaction.add_selected_invoices()', LxERP.t8("Add invoices"), id='add_selected_record_links_button') %]
|
||
[% L.button_tag('$("#assign_invoice_window_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
|
||
<a href="#" onclick="$('#assign_invoice_window').dialog('close');" class="neutral">[% LxERP.t8("Cancel") %]</a>
|
||
</div>
|
||
|
||
<div id="record_list_filtered_list"></div>
|
||
|
||
</div><!-- /.wrapper -->
|
||
|
||
</form>
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
<script type="text/javascript"><!--
|
||
$(function() {
|
||
$('#invnumber').focus();
|
||
});
|
||
|
||
//-->
|
||
</script>
|
||
//--></script>
|
templates/webpages/bank_transactions/create_invoice.html | ||
---|---|---|
[%- USE HTML %][%- USE L %][%- USE LxERP %][%- USE P -%]
|
||
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
[% USE P %]
|
||
<div class="wrapper">
|
||
|
||
<b>Transaction</b>
|
||
<table>
|
||
<tr class="listheading">
|
||
<td>[%- LxERP.t8("ID") %]:</td>
|
||
<td>[%- LxERP.t8("Amount") %]:</td>
|
||
<td>[%- LxERP.t8("Date") %]:</td>
|
||
<td>[%- LxERP.t8("Remote name") %]:</td>
|
||
<td>[%- LxERP.t8("Purpose") %]:</td>
|
||
<td>[%- LxERP.t8("Remote bank code") %]:</td>
|
||
<td>[%- LxERP.t8("Remote account number") %]:</td>
|
||
</tr>
|
||
<table class="tbl-list">
|
||
<caption>[% 'Transaction' | $T8 %]</caption>
|
||
<thead>
|
||
<tr>
|
||
<th>[% LxERP.t8("ID") %]</th>
|
||
<th>[% LxERP.t8("Amount") %]</th>
|
||
<th>[% LxERP.t8("Date") %]</th>
|
||
<th>[% LxERP.t8("Remote name") %]</th>
|
||
<th>[% LxERP.t8("Purpose") %]</th>
|
||
<th>[% LxERP.t8("Remote bank code") %]</th>
|
||
<th>[% LxERP.t8("Remote account number") %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>[% SELF.transaction.id %]</td>
|
||
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td>
|
||
<td>[% SELF.transaction.valutadate_as_date %]</td>
|
||
<td>[% SELF.transaction.remote_name %]</td>
|
||
<td>[% SELF.transaction.purpose %]</td>
|
||
<td>[% SELF.transaction.remote_bank_code %]</td>
|
||
<td>[% SELF.transaction.remote_account_number %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<tr class="listrow">
|
||
<td>[% SELF.transaction.id %]</td>
|
||
<td>[% LxERP.format_amount(SELF.transaction.amount, 2) %]</td>
|
||
<td>[% SELF.transaction.valutadate_as_date %]</td>
|
||
<td>[% SELF.transaction.remote_name %]</td>
|
||
<td>[% SELF.transaction.purpose %]</td>
|
||
<td>[% SELF.transaction.remote_bank_code %]</td>
|
||
<td>[% SELF.transaction.remote_account_number %]</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<form method="post" action="javascript:kivi.BankTransaction.filter_templates()" id="create_invoice_window_form">
|
||
[% L.hidden_tag("bt_id", SELF.transaction.id) %]
|
||
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %]
|
||
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %]
|
||
[% L.hidden_tag("filter.todate", FORM.filter.todate) %]
|
||
|
||
<br>
|
||
<table class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th>[% LxERP.t8("Template Description") %]</th>
|
||
<td>[% P.input_tag("template", template_name, style="width: 250px") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Vendor") %]</th>
|
||
<td>[% P.input_tag("vendor", vendor_name, style="width: 250px") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Reference") %]</th>
|
||
<td>[% P.input_tag("reference", reference_name, style="width: 250px") %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<div class="buttons">
|
||
[% P.submit_tag('', LxERP.t8("Filter")) %]
|
||
[% P.button_tag('$("#create_invoice_window_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
|
||
<a href="#" onclick="$('#create_invoice_window').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
|
||
</p>
|
||
|
||
<form method="post" action="javascript:kivi.BankTransaction.filter_templates()" id="create_invoice_window_form">
|
||
[% L.hidden_tag("bt_id", SELF.transaction.id) %]
|
||
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %]
|
||
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %]
|
||
[% L.hidden_tag("filter.todate", FORM.filter.todate) %]
|
||
<table>
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Template Description") %]</th>
|
||
<td>[% P.input_tag("template", template_name, style="width: 250px") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Vendor") %]</th>
|
||
<td>[% P.input_tag("vendor", vendor_name, style="width: 250px") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Reference") %]</th>
|
||
<td>[% P.input_tag("reference", reference_name, style="width: 250px") %]</td>
|
||
</tr>
|
||
</table>
|
||
<p>
|
||
[% P.submit_tag('', LxERP.t8("Filter")) %]
|
||
[% P.button_tag('$("#create_invoice_window_form").resetForm()', LxERP.t8('Reset')) %]
|
||
<a href="#" onclick="$('#create_invoice_window').dialog('close');">[% LxERP.t8("Cancel") %]</a>
|
||
</p>
|
||
</form>
|
||
<hr>
|
||
|
||
<div id="templates">
|
||
[% PROCESS "bank_transactions/_template_list.html" %]
|
||
[% PROCESS "bank_transactions/_template_list.html" %]
|
||
</div>
|
||
</div><!-- /.wrapper -->
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
<script type="text/javascript"><!--
|
||
$(function() {
|
||
$('#template').focus();
|
||
});
|
||
|
||
//-->
|
||
</script>
|
||
//--></script>
|
templates/webpages/bank_transactions/invoices.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP -%][%- USE P -%]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE P %]
|
||
[% SET debug=1 %]
|
||
|
||
[% FOREACH invoice = INVOICES %]
|
||
<tr id="extra_row_[% HTML.escape(bt_id) %]_[% HTML.escape(invoice.id) %]">
|
||
<td></td>
|
||
<td></td>
|
||
<td id="assigned_invoices_[% bt.id %]_[% invoice.id %]">
|
||
[% PROCESS "bank_transactions/_payment_suggestion.html" %]
|
||
</td>
|
||
<td>[% P.input_tag("sources_" _ bt_id _ "_" _ invoice.id, "") %]</td>
|
||
<td>[% P.input_tag("memos_" _ bt_id _ "_" _ invoice.id, "") %]</td>
|
||
[% IF debug %]
|
||
<td></td>
|
||
[% END %]
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
<tr id="extra_row_[% HTML.escape(bt_id) %]_[% HTML.escape(invoice.id) %]">
|
||
<td></td>
|
||
<td></td>
|
||
<td id="assigned_invoices_[% bt.id %]_[% invoice.id %]">
|
||
[% PROCESS "bank_transactions/_payment_suggestion.html" %]
|
||
<span id="[% bt_id %].[% invoice.id %]" data-invoice-amount="[% HTML.escape(invoice.open_amount * 1) %]">
|
||
[% P.hidden_tag("invoice_ids." _ bt_id _"[]", invoice.id) %]
|
||
[% LxERP.t8("Invno.") %]: [% HTML.escape(invoice.invnumber) %]
|
||
[% LxERP.t8("Open amount") %]: [% LxERP.format_amount(invoice.open_amount, 2) %]
|
||
[% P.select_tag("invoice_skontos." _ bt_id _ "[]", invoice.get_payment_select_options_for_bank_transaction(bt_id), value_key="payment_type", title_key="display") %]
|
||
[% P.link_tag("#", "x", onclick="kivi.BankTransaction.delete_invoice(" _ bt_id _ "," _ invoice.id _ ")") %]
|
||
</span>
|
||
</td>
|
||
<td>[% P.input_tag("sources_" _ bt_id _ "_" _ invoice.id, "") %]</td>
|
||
<td>[% P.input_tag("memos_" _ bt_id _ "_" _ invoice.id, "") %]</td>
|
||
[% IF debug %]
|
||
<td></td>
|
||
[% END %]
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
[% END %]
|
templates/webpages/bank_transactions/list.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE T8 %]
|
||
|
||
<h1>[% title %]</h1>
|
||
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
[% INCLUDE 'common/flash.html' %]
|
||
|
||
[% IF SELF.problems.size %]
|
||
[% INCLUDE 'bank_transactions/_problems.html' %]
|
||
[% INCLUDE 'bank_transactions/_problems.html' %]
|
||
[% END %]
|
||
|
||
<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>
|
||
<p>
|
||
[% IF FORM.filter.fromdate %] [% 'From' | $T8 %] [% FORM.filter.fromdate %] [% END %]
|
||
[% IF FORM.filter.todate %] [% 'to (date)' | $T8 %] [% FORM.filter.todate %][% END %]
|
||
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %]
|
||
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %]
|
||
[% L.hidden_tag("filter.todate", FORM.filter.todate) %]
|
||
[% IF FORM.filter.fromdate %] [% 'From' | $T8 %] [% FORM.filter.fromdate %] [% END %]
|
||
[% IF FORM.filter.todate %] [% 'to (date)' | $T8 %] [% FORM.filter.todate %] [% END %]
|
||
[% L.hidden_tag("filter.bank_account", FORM.filter.bank_account) %]
|
||
[% L.hidden_tag("filter.fromdate", FORM.filter.fromdate) %]
|
||
[% L.hidden_tag("filter.todate", FORM.filter.todate) %]
|
||
</p>
|
||
|
||
<div id="bt_tabs" class="tabwidget">
|
||
... | ... | |
<li><a href="#automatic">[% 'Proposals' | $T8 %]</a></li>
|
||
</ul>
|
||
|
||
<div id="all">[% PROCESS "bank_transactions/tabs/all.html" %]</div>
|
||
<div id="automatic">[% PROCESS "bank_transactions/tabs/automatic.html" %]</div>
|
||
<div id="all">
|
||
[% PROCESS "bank_transactions/tabs/all.html" %]
|
||
</div>
|
||
<div id="automatic">
|
||
[% PROCESS "bank_transactions/tabs/automatic.html" %]
|
||
</div>
|
||
</div>
|
||
|
||
<div id="set_all_sources_memos_dialog" class="hidden">
|
||
<table>
|
||
<tr>
|
||
<th>[% LxERP.t8("Source") %]:</th>
|
||
<td>[% L.input_tag("set_all_sources", "") %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th>[% LxERP.t8("Memo") %]:</th>
|
||
<td>[% L.input_tag("set_all_memos", "") %]</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<p>
|
||
[% L.button_tag("kivi.BankTransaction.set_all_sources_memos()", LxERP.t8("Set fields")) %]
|
||
<a href="#" onclick="$('#set_all_sources_memos_dialog').dialog('close');">[%- LxERP.t8("Cancel") %]</a>
|
||
</p>
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
<div id="set_all_sources_memos_dialog" class="hidden">
|
||
<table class="tbl-horizontal">
|
||
<tr>
|
||
<th>[% LxERP.t8("Source") %]:</th>
|
||
<td>[% L.input_tag("set_all_sources", "") %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8("Memo") %]:</th>
|
||
<td>[% L.input_tag("set_all_memos", "") %]</td>
|
||
</tr>
|
||
</table>
|
||
|
||
<div class="buttons">
|
||
[% L.button_tag("kivi.BankTransaction.set_all_sources_memos()", LxERP.t8("Set fields")) %]
|
||
<a href="#" onclick="$('#set_all_sources_memos_dialog').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
|
||
</div>
|
||
</div><!-- /#set_all_sources_memos_dialog -->
|
||
|
||
|
||
<script type="text/javascript"><!--
|
||
$(function() {
|
||
kivi.BankTransaction.init_list([% ui_tab %]);
|
||
});
|
||
//-->
|
||
</script>
|
||
//--></script>
|
templates/webpages/bank_transactions/report_bottom.html | ||
---|---|---|
[% USE L %]
|
||
[%- L.paginate_controls(models=SELF.models) %]
|
||
[% L.paginate_controls(models=SELF.models) %]
|
||
</form>
|
templates/webpages/bank_transactions/report_top.html | ||
---|---|---|
[%- USE L %]
|
||
[%- PROCESS 'bank_transactions/_filter.html' filter=SELF.models.filtered.laundered %]
|
||
[% USE L %]
|
||
[% PROCESS 'bank_transactions/_filter.html' filter=SELF.models.filtered.laundered %]
|
||
<hr>
|
||
<form method="post" action="controller.pl" id="form">
|
templates/webpages/bank_transactions/search.html | ||
---|---|---|
[%- USE T8 %]
|
||
[%- USE HTML %]
|
||
[%- USE L %]
|
||
[%- USE LxERP %]
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
[% INCLUDE 'common/flash.html' %]
|
||
<h1>[% 'Search bank transactions' | $T8 %]</h1>
|
||
|
||
<form method="post" action="controller.pl" id="search_form">
|
||
|
||
<div class="listtop">[% 'Search bank transactions' | $T8 %]</div>
|
||
<p>
|
||
<form method="post" action="controller.pl" id="search_form">
|
||
<div class="wrapper">
|
||
[%- IF INSTANCE_CONF.get_payments_changeable != '0' -%]
|
||
[% 'Cannot safely book imported bank transactions due to lax posting settings for payments' | $T8 %]
|
||
[%- ELSE -%]
|
||
<table>
|
||
|
||
<table class="tbl-horizontal">
|
||
<tr>
|
||
<th align="right">[% 'Bank account' | $T8 %]</th>
|
||
<td>[% L.select_tag('filter.bank_account', BANK_ACCOUNTS, default=bank_account, title_key='displayable_name', with_empty=0, style='width:450px') %]</td>
|
||
<th>[% 'Bank account' | $T8 %]</th>
|
||
<td>[% L.select_tag('filter.bank_account', BANK_ACCOUNTS, default=bank_account, title_key='displayable_name', with_empty=0, class='wi-wide') %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'Transdate from' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.fromdate', filter.fromdate) %]</td>
|
||
<th>[% 'Transdate from' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('filter.fromdate', filter.fromdate) %]</span></td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% 'to (date)' | $T8 %]</th>
|
||
<td>[% L.date_tag('filter.todate', filter.todate) %]</td>
|
||
<th>[% 'to (date)' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('filter.todate', filter.todate) %]</span></td>
|
||
</tr>
|
||
</table>
|
||
[%- END -%]
|
||
</p>
|
||
</form>
|
||
</div>
|
||
</form>
|
templates/webpages/bank_transactions/tabs/all.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- USE P -%]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE T8 %]
|
||
[% USE P %]
|
||
|
||
[% BLOCK proposal_div %]
|
||
<div data-proposal-id="[% prop.id %]">
|
||
<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>"
|
||
<div data-proposal-id="[% prop.id %]">
|
||
<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>"
|
||
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>
|
||
</div>
|
||
[% END %]
|
||
|
||
[% SET debug=1 %]
|
||
<form method="post" id="list_all_form">
|
||
[% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %]
|
||
[% L.hidden_tag('filter.fromdate', FORM.filter.fromdate) %]
|
||
[% L.hidden_tag('filter.todate', FORM.filter.todate) %]
|
||
[% L.hidden_tag('action', 'BankTransaction/dispatch') %]
|
||
[% L.hidden_tag('ui_tab', ui_tab) %]
|
||
[% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %]
|
||
[% L.hidden_tag('filter.fromdate', FORM.filter.fromdate) %]
|
||
[% L.hidden_tag('filter.todate', FORM.filter.todate) %]
|
||
[% L.hidden_tag('action', 'BankTransaction/dispatch') %]
|
||
[% L.hidden_tag('ui_tab', ui_tab) %]
|
||
|
||
<table id="bt_list">
|
||
<thead>
|
||
<tr class="listheading">
|
||
<th></th>
|
||
<th></th>
|
||
<th>[% LxERP.t8("Assigned invoices with amount") %]</th>
|
||
<th style="width: 100px">[% LxERP.t8("Source") %]</th>
|
||
<th style="width: 100px">[% LxERP.t8("Memo") %]</th>
|
||
[% IF debug %]
|
||
<th>[% 'Score' | $T8 %]</th>
|
||
[% END %]
|
||
<th>[% IF FORM.sort_by == 'proposal'%]
|
||
<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">
|
||
[% 'Proposal' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<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>
|
||
[% END %]
|
||
</th>
|
||
<th>[% IF FORM.sort_by == 'transdate'%]
|
||
<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">
|
||
[% 'Transdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<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>
|
||
[% END %]
|
||
</th>
|
||
<th>[% IF FORM.sort_by == 'amount'%]
|
||
<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">
|
||
[% 'Amount' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=amount&sort_dir=0" class="sort_link">
|
||
[% 'Amount' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% 'Assigned' | $T8 %]</th>
|
||
<th>[% IF FORM.sort_by == 'remote_name'%]
|
||
<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">
|
||
[% '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>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_name&sort_dir=0" class="sort_link">
|
||
[% 'Remote name' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% 'Purpose' | $T8 %]</th>
|
||
<th>[% 'Type' | $T8 %]</th>
|
||
<th>[% IF FORM.sort_by == 'remote_account_number'%]
|
||
<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">
|
||
[% '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>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_account_number&sort_dir=0" class="sort_link">
|
||
[% 'Remote account number' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% IF FORM.sort_by == 'remote_bank_code'%]
|
||
<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">
|
||
[% '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>
|
||
[% ELSE %]
|
||
<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>
|
||
[% END %]
|
||
</th>
|
||
<th>[% IF FORM.sort_by == 'valutadate'%]
|
||
<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">
|
||
[% 'Valutadate' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=valutadate&sort_dir=0" class="sort_link">
|
||
[% 'Valutadate' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% 'Currency' | $T8 %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
[%- FOREACH bt = BANK_TRANSACTIONS %]
|
||
<tbody class="listrow" id="bt_rows_[% HTML.escape(bt.id) %]">
|
||
[% SET proposals = bt.proposals.as_list.size > 0 ? bt.proposals.as_list : [{}] ;
|
||
FOREACH prop = proposals %]
|
||
[% IF loop.first %]
|
||
<tr id="bt_id_[% bt.id %]">
|
||
<td><a href=# onclick="kivi.BankTransaction.assign_invoice('[% bt.id %]'); return false;">[% 'Assign invoice' | $T8 %]</a></td>
|
||
<td><a href=# onclick="kivi.BankTransaction.create_invoice('[% bt.id %]'); return false;">[% 'Create invoice' | $T8 %]</a></td>
|
||
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td>
|
||
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
[% IF debug %]
|
||
<td class="tooltipster-html" title="[% FOREACH match = bt.rule_matches %] [% match %]<br> [% END %]">[% bt.agreement %]</td>
|
||
[% END %]
|
||
<td>
|
||
[% IF prop.id ;
|
||
PROCESS proposal_div ;
|
||
END %]
|
||
</td>
|
||
<td align="right">[% bt.transdate_as_date %]</td>
|
||
<td align="right">[% LxERP.format_amount(bt.amount, 2) %]</td>
|
||
<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>
|
||
<td>[% HTML.escape(bt.remote_name) %]</td>
|
||
<td>[% HTML.escape(bt.purpose) %]</td>
|
||
<td>[% HTML.escape(bt.transaction_text) %]</td>
|
||
<td>[% HTML.escape(bt.remote_account_number) %]</td>
|
||
<td>[% HTML.escape(bt.remote_bank_code) %]</td>
|
||
<td align="right">[% bt.valutadate_as_date %]</td>
|
||
<td align="center">[% HTML.escape(bt.currency.name) %]</td>
|
||
</tr>
|
||
[% ELSE # loop.first %]
|
||
<table id="bt_list" class="tbl-list">
|
||
<thead>
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td>
|
||
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
[% IF debug %]
|
||
<td></td>
|
||
[% END %]
|
||
<td>
|
||
[% PROCESS proposal_div %]
|
||
</td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<th></th>
|
||
<th></th>
|
||
<th>[% LxERP.t8("Assigned invoices with amount") %]</th>
|
||
<th style="width: 100px">[% LxERP.t8("Source") %]</th>
|
||
<th style="width: 100px">[% LxERP.t8("Memo") %]</th>
|
||
[% IF debug %]
|
||
<th>[% 'Score' | $T8 %]</th>
|
||
[% END %]
|
||
<th>
|
||
[% IF FORM.sort_by == 'proposal'%]
|
||
<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">
|
||
[% 'Proposal' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<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>
|
||
[% END %]
|
||
</th>
|
||
<th>
|
||
[% IF FORM.sort_by == 'transdate'%]
|
||
<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">
|
||
[% 'Transdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<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>
|
||
[% END %]
|
||
</th>
|
||
<th>
|
||
[% IF FORM.sort_by == 'amount'%]
|
||
<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">
|
||
[% 'Amount' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=amount&sort_dir=0" class="sort_link">
|
||
[% 'Amount' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% 'Assigned' | $T8 %]</th>
|
||
<th>
|
||
[% IF FORM.sort_by == 'remote_name'%]
|
||
<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">
|
||
[% 'Remote name' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_name&sort_dir=0" class="sort_link">
|
||
[% 'Remote name' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% 'Purpose' | $T8 %]</th>
|
||
<th>[% 'Type' | $T8 %]</th>
|
||
<th>
|
||
[% IF FORM.sort_by == 'remote_account_number'%]
|
||
<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">
|
||
[% 'Remote account number' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=remote_account_number&sort_dir=0" class="sort_link">
|
||
[% 'Remote account number' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>
|
||
[% IF FORM.sort_by == 'remote_bank_code'%]
|
||
<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">
|
||
[% 'Remote bank code' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<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>
|
||
[% END %]
|
||
</th>
|
||
<th>
|
||
[% IF FORM.sort_by == 'valutadate'%]
|
||
<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">
|
||
[% 'Valutadate' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
|
||
[% ELSE %]
|
||
<a href="controller.pl?action=BankTransaction/list&filter.bank_account=[% bank_account.id %]&sort_by=valutadate&sort_dir=0" class="sort_link">
|
||
[% 'Valutadate' | $T8 %]</a>
|
||
[% END %]
|
||
</th>
|
||
<th>[% 'Currency' | $T8 %]</th>
|
||
</tr>
|
||
[% END # loop.first %]
|
||
</thead>
|
||
[% FOREACH bt = BANK_TRANSACTIONS %]
|
||
<tbody id="bt_rows_[% HTML.escape(bt.id) %]">
|
||
[% SET proposals = bt.proposals.as_list.size > 0 ? bt.proposals.as_list : [{}] ;
|
||
FOREACH prop = proposals %]
|
||
[% IF loop.first %]
|
||
<tr id="bt_id_[% bt.id %]">
|
||
<td><a href=# onclick="kivi.BankTransaction.assign_invoice('[% bt.id %]'); return false;">[% 'Assign invoice' | $T8 %]</a></td>
|
||
<td><a href=# onclick="kivi.BankTransaction.create_invoice('[% bt.id %]'); return false;">[% 'Create invoice' | $T8 %]</a></td>
|
||
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td>
|
||
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
[% IF debug %]
|
||
<td class="tooltipster-html" title="[% FOREACH match = bt.rule_matches %] [% match %]<br> [% END %]">[% bt.agreement %]</td>
|
||
[% END %]
|
||
<td>[% IF prop.id ; PROCESS proposal_div ; END %]</td>
|
||
<td>[% bt.transdate_as_date %]</td>
|
||
<td>[% LxERP.format_amount(bt.amount, 2) %]</td>
|
||
<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>
|
||
<td>[% HTML.escape(bt.remote_name) %]</td>
|
||
<td>[% HTML.escape(bt.purpose) %]</td>
|
||
<td>[% HTML.escape(bt.transaction_text) %]</td>
|
||
<td>[% HTML.escape(bt.remote_account_number) %]</td>
|
||
<td>[% HTML.escape(bt.remote_bank_code) %]</td>
|
||
<td>[% bt.valutadate_as_date %]</td>
|
||
<td>[% HTML.escape(bt.currency.name) %]</td>
|
||
</tr>
|
||
[% ELSE # loop.first %]
|
||
<tr>
|
||
<td></td>
|
||
<td></td>
|
||
<td id="assigned_invoices_[% bt.id %]_[% prop.id %]"></td>
|
||
<td>[% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
<td>[% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %]</td>
|
||
[% IF debug %]
|
||
<td></td>
|
||
[% END %]
|
||
<td>
|
||
[% PROCESS proposal_div %]
|
||
</td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
[% END # loop.first %]
|
||
[% END # FOREACH proposal %]
|
||
</tbody>
|
||
[%- END %]
|
||
</table>
|
||
[% END %]
|
||
</table>
|
||
|
||
<p>
|
||
<div class="buttons">
|
||
[% L.submit_tag('action_save_invoices', LxERP.t8('Save invoices')) %]
|
||
[% 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')) %]
|
||
</p>
|
||
[% 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') %]
|
||
</div>
|
||
|
||
</form>
|
templates/webpages/bank_transactions/tabs/automatic.html | ||
---|---|---|
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE T8 %]
|
||
|
||
<form method="post" id="list_automatic_form">
|
||
[% L.hidden_tag('filter.bank_account', FORM.filter.bank_account) %]
|
||
... | ... | |
[% L.hidden_tag('action', 'BankTransaction/dispatch') %]
|
||
[% L.hidden_tag('ui_tab', ui_tab) %]
|
||
|
||
<table id="bank_transactions_proposals">
|
||
<table id="bank_transactions_proposals" class="tbl-list">
|
||
<thead>
|
||
<tr class="listheading">
|
||
<tr>
|
||
<th>[% L.checkbox_tag('check_all') %]</th>
|
||
|
||
<th>[% 'Type' | $T8 %]</th>
|
||
<th>[% 'ID' | $T8 %]</th>
|
||
<th>[% 'Transdate' | $T8 %]</th>
|
||
... | ... | |
<th>[% LxERP.t8("Memo") %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% IF !PROPOSALS.size %]
|
||
<tbody class="listrow">
|
||
<td colspan="7"><p class="message_hint">[% 'No data was found.' | $T8 %]</p></td>
|
||
</tbody>
|
||
<td colspan="10"><p class="message message_hint center">[% 'No data was found.' | $T8 %]</p></td>
|
||
[% ELSE %]
|
||
[% FOREACH proposal = PROPOSALS %]
|
||
<tbody class="listrow">
|
||
<tr>
|
||
<td rowspan=[% proposal.rowspan %] style="valign:center;">
|
||
[% L.checkbox_tag('proposal_ids[]', checked=0, value=proposal.id) %]
|
||
</td>
|
||
|
||
<td>[% HTML.escape(proposal.transaction_text) %]</td>
|
||
<td>[% proposal.id %]</td>
|
||
<td>[% proposal.transdate_as_date %]</td>
|
||
<td align="right">[% LxERP.format_amount(proposal.amount,2) %]</td>
|
||
<td></td>
|
||
<td>
|
||
[% SET purpose = HTML.escape(proposal.purpose)
|
||
invnumber_found = '' ;
|
||
FOREACH proposed_invoice = proposal.proposals;
|
||
IF purpose.match(proposed_invoice.invnumber);
|
||
SET invnumber_found = proposed_invoice.invnumber ;
|
||
END ;
|
||
<tr>
|
||
<td rowspan=[% proposal.rowspan %] style="valign:center;">
|
||
[% L.checkbox_tag('proposal_ids[]', checked=0, value=proposal.id) %]
|
||
</td>
|
||
<td>[% HTML.escape(proposal.transaction_text) %]</td>
|
||
<td>[% proposal.id %]</td>
|
||
<td>[% proposal.transdate_as_date %]</td>
|
||
<td>[% LxERP.format_amount(proposal.amount,2) %]</td>
|
||
<td></td>
|
||
<td>[%
|
||
SET purpose = HTML.escape(proposal.purpose)
|
||
invnumber_found = '' ;
|
||
FOREACH proposed_invoice = proposal.proposals;
|
||
IF purpose.match(proposed_invoice.invnumber);
|
||
SET invnumber_found = proposed_invoice.invnumber ;
|
||
END ;
|
||
END ;
|
||
|
||
IF invnumber_found ;
|
||
purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ;
|
||
ELSE ;
|
||
purpose ;
|
||
END %]
|
||
</td>
|
||
<td>[% HTML.escape(proposal.remote_name) %]</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
IF invnumber_found ;
|
||
purpose.replace(invnumber_found, '<span class="invoice_number_highlight">' _ invnumber_found _ '</span>') ;
|
||
ELSE ;
|
||
purpose ;
|
||
END
|
||
%]</td>
|
||
<td>[% HTML.escape(proposal.remote_name) %]</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
|
||
[% FOREACH proposed_invoice = proposal.proposals %]
|
||
<tr>
|
||
|
||
<td></td>
|
||
<td>[% 'Invoice' | $T8 %]</td>
|
||
<td>[% proposed_invoice.id %]</td>
|
||
<td>[% proposed_invoice.transdate_as_date %]
|
||
[% L.hidden_tag("invoice_ids." _ proposal.id _ "[]", proposed_invoice.id) %]</td>
|
||
<td align="right">[% proposed_invoice.realamount %]</td>
|
||
<td>[% proposed_invoice.realamount %]</td>
|
||
<td>[% proposed_invoice.skonto_type | $T8 %]
|
||
[% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", proposed_invoice.skonto_type) %]</td>
|
||
<td[% IF proposed_invoice.invnumber == invnumber_found %] class="invoice_number_highlight"[% END %]>[% proposed_invoice.link %]</td>
|
||
... | ... | |
<td>[% L.input_tag("sources." _ proposal.id _ "[]", "", size=20) %]</td>
|
||
<td>[% L.input_tag("memos." _ proposal.id _ "[]", "", size=20) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
[% END %]
|
||
|
||
<tr><td style="height:10px" colspan="10"></td></tr>
|
||
</tbody>
|
||
[% END %]
|
||
[% END %]
|
||
</table>
|
||
|
||
<p>
|
||
<div class="buttons">
|
||
[% L.submit_tag('action_save_proposals', LxERP.t8('Save proposals')) %]
|
||
[% 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')) %]
|
||
</p>
|
||
[% 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') %]
|
||
</div>
|
||
|
||
</form>
|
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/bank_transactions/..