X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fbank_transactions%2Ftabs%2Fall.html;h=eae900822304a020f46fa3acbc4e2e737c15fc2d;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=4785497665acfc93c355b5a321a33b98d1d14f68;hpb=88d162cc5e8e8d3810059d918a1eef6a2b205984;p=kivitendo-erp.git diff --git a/templates/webpages/bank_transactions/tabs/all.html b/templates/webpages/bank_transactions/tabs/all.html index 478549766..eae900822 100644 --- a/templates/webpages/bank_transactions/tabs/all.html +++ b/templates/webpages/bank_transactions/tabs/all.html @@ -1,7 +1,15 @@ -[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%] +[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%][%- USE P -%] + +[% BLOCK proposal_div %] +
+ ←[% HTML.escape(prop.invnumber)%] +
+[% END %] [% SET debug=1 %] -
+ [% 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) %] @@ -13,7 +21,9 @@ - [% 'Assigned invoices' | $T8 %] [% 'with amount' | $T8 %] + [% LxERP.t8("Assigned invoices with amount") %] + [% LxERP.t8("Source") %] + [% LxERP.t8("Memo") %] [% IF debug %] [% 'Score' | $T8 %] [% END %] @@ -80,37 +90,69 @@ - - [%- FOREACH bt = BANK_TRANSACTIONS %] - - [% 'Assign invoice' | $T8 %] - [% 'Create invoice' | $T8 %] - - [% IF debug %] - [% bt.agreement %] - [% END %] - - [% FOREACH prop = bt.proposals %] -
- ←[% HTML.escape(prop.invnumber)%]
- [% END %] - - [% bt.transdate_as_date %] - [% bt.amount_as_number %] - [% bt.invoice_amount_as_number %] - [% HTML.escape(bt.remote_name) %] - [% HTML.escape(bt.purpose) %] - [% HTML.escape(bt.transactiontext) %] - [% HTML.escape(bt.remote_account_number) %] - [% HTML.escape(bt.remote_bank_code) %] - [% bt.valutadate_as_date %] - [% HTML.escape(bt.currency.name) %] - - [%- END %] - + [%- FOREACH bt = BANK_TRANSACTIONS %] + + [% SET proposals = bt.proposals.as_list.size > 0 ? bt.proposals.as_list : [{}] ; + FOREACH prop = proposals %] + [% IF loop.first %] + + [% 'Assign invoice' | $T8 %] + [% 'Create invoice' | $T8 %] + + [% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %] + [% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %] + [% IF debug %] + [% bt.agreement %] + [% END %] + + [% IF prop.id ; + PROCESS proposal_div ; + END %] + + [% bt.transdate_as_date %] + [% LxERP.format_amount(bt.amount, 2) %] + [% HTML.escape(LxERP.format_amount(bt.invoice_amount, 2)) %] + [% HTML.escape(bt.remote_name) %] + [% HTML.escape(bt.purpose) %] + [% HTML.escape(bt.transaction_text) %] + [% HTML.escape(bt.remote_account_number) %] + [% HTML.escape(bt.remote_bank_code) %] + [% bt.valutadate_as_date %] + [% HTML.escape(bt.currency.name) %] + + [% ELSE # loop.first %] + + + + + [% P.input_tag("sources_" _ bt.id _ "_" _ prop.id, "", class="hidden") %] + [% P.input_tag("memos_" _ bt.id _ "_" _ prop.id, "", class="hidden") %] + [% IF debug %] + + [% END %] + + [% PROCESS proposal_div %] + + + + + + + + + + + + + [% END # loop.first %] + [% END # FOREACH proposal %] + + [%- END %] -[% L.submit_tag('action_save_invoices', LxERP.t8('Save invoices')) %] + +

+ [% 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')) %] +