From 5ab937c5ee945133bc39fc431f01183b06b51694 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 7 Feb 2017 14:24:40 +0100 Subject: [PATCH] =?utf8?q?Kontoauszug=20verbuchen:=20bei=20Vorschl=C3=A4ge?= =?utf8?q?n=20Rechnungsnummer=20in=20Verwendungszweck=20highlighten?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- css/kivitendo/main.css | 7 ++++++ css/lx-office-erp/main.css | 7 ++++++ .../bank_transactions/tabs/automatic.html | 22 +++++++++++++++---- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/css/kivitendo/main.css b/css/kivitendo/main.css index dd1ff541f..f74c98d90 100644 --- a/css/kivitendo/main.css +++ b/css/kivitendo/main.css @@ -520,3 +520,10 @@ span.toggle_selected { max-width: 16px; max-height: 16px; } + +/* Bank transactions */ +#bank_transactions_proposals .invoice_number_highlight a, +#bank_transactions_proposals span.invoice_number_highlight { + background-color: #006400; + color: #FFFFFF; +} diff --git a/css/lx-office-erp/main.css b/css/lx-office-erp/main.css index b3f244268..44c437f17 100644 --- a/css/lx-office-erp/main.css +++ b/css/lx-office-erp/main.css @@ -527,3 +527,10 @@ a.red { max-width: 16px; max-height: 16px; } + +/* Bank transactions */ +#bank_transactions_proposals .invoice_number_highlight a, +#bank_transactions_proposals span.invoice_number_highlight { + background-color: #006400; + color: #FFFFFF; +} diff --git a/templates/webpages/bank_transactions/tabs/automatic.html b/templates/webpages/bank_transactions/tabs/automatic.html index 63f6d16e1..9caf50178 100644 --- a/templates/webpages/bank_transactions/tabs/automatic.html +++ b/templates/webpages/bank_transactions/tabs/automatic.html @@ -7,7 +7,7 @@ [% L.hidden_tag('action', 'BankTransaction/dispatch') %] [% L.hidden_tag('ui_tab', ui_tab) %] - +
@@ -38,7 +38,21 @@ - + @@ -53,11 +67,11 @@ - + [% proposed_invoice.link %] [% END %] - + [% END %] [% END %] -- 2.20.1
[% L.checkbox_tag('check_all') %][% proposal.transdate_as_date %] [% LxERP.format_amount(proposal.amount,2) %] [% HTML.escape(proposal.purpose) %] + [% 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, '' _ invnumber_found _ '') ; + ELSE ; + purpose ; + END %] + [% HTML.escape(proposal.remote_name) %]
[% proposed_invoice.realamount %] [% proposed_invoice.skonto_type | $T8 %] [% L.hidden_tag("invoice_skontos." _ proposal.id _ "[]", proposed_invoice.skonto_type) %][% proposed_invoice.link %][% HTML.escape(proposed_invoice.customer.name) %][% HTML.escape(proposed_invoice.vendor.name) %]