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
'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},
<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) %]">