Error bei Wiedervorlage von EK-Rechnungi (fixmaster)
authorMartin Helmling <martin.helmling@octosoft.eu>
Tue, 18 Jul 2017 12:36:33 +0000 (14:36 +0200)
committerMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Tue, 18 Jul 2017 12:40:58 +0000 (14:40 +0200)
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
templates/webpages/ir/form_header.html

index 8a2f269..a2faf62 100644 (file)
--- 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},
index 5a99378..de5e623 100644 (file)
@@ -17,7 +17,7 @@
 <input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key)  %]">
 [%- END %]
 <input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
-<input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
+<input type="hidden" name="follow_up_trans_type_1" value="purchase_invoice">
 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
 <input type="hidden" name="follow_up_rowcount" value="1">
 <input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">