From: Moritz Bunkus Date: Tue, 7 Feb 2017 13:24:40 +0000 (+0100) Subject: Kontoauszug verbuchen: bei Vorschlägen Rechnungsnummer in Verwendungszweck highlighten X-Git-Tag: release-3.5.4~1521 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5ab937c5ee945133bc39fc431f01183b06b51694;p=kivitendo-erp.git Kontoauszug verbuchen: bei Vorschlägen Rechnungsnummer in Verwendungszweck highlighten --- 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 %]
[% 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) %]