From 43a9cf43dcdc7303af49430f5dd9d05cab30f30c Mon Sep 17 00:00:00 2001 From: Martin Helmling Date: Tue, 18 Jul 2017 14:36:33 +0200 Subject: [PATCH] Error bei Wiedervorlage von EK-Rechnungi (fixmaster) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In einer Einkaufrechnung wird die Wiedervorlage vom Typ "sales_invoice" erzeugt, was anschließend zu Datenbankfehlern führt, da die ID in den Verkaufrechnungen gesucht wird Nun ist der Typ ergänzt fix OD #6174 --- SL/FU.pm | 6 ++++++ templates/webpages/ir/form_header.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/SL/FU.pm b/SL/FU.pm index 8a2f2698a..a2faf62f3 100644 --- a/SL/FU.pm +++ b/SL/FU.pm @@ -363,6 +363,12 @@ sub link_details { 'title' => $locale->text('Sales Invoice') . " $params{trans_info}", }; + } elsif ($params{trans_type} eq 'purchase_invoice') { + $link = { + 'url' => 'ir.pl?action=edit&type=purchase_invoice&id=' . $params{trans_id}, + 'title' => $locale->text('Purchase Invoice') . " $params{trans_info}", + }; + } elsif ($params{trans_type} eq 'credit_note') { $link = { 'url' => 'is.pl?action=edit&type=credit_note&id=' . $params{trans_id}, diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 5a99378f7..de5e62344 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -17,7 +17,7 @@ [%- END %] - + -- 2.20.1