]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ic.pl
Fix für Bug 1082. Die Abteilung in Lieferscheinen wurde korrekt gespeichert und auch...
[mfinanz.git] / bin / mozilla / ic.pl
index 1cd8ce5fc015dba51f3eabc9248f8809fb47ad9f..faaa702dc0e196ca450db2d18267017e4c26cd2b 100644 (file)
@@ -1294,7 +1294,7 @@ sub generate_report {
 
     # set module stuff
     if ($ref->{module} eq 'oe') {
-      my $edit_oe_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{customer_id} ne '' ? 'sales_order' : 'purchase_order'), 'id=' . E($ref->{trans_id}), 'callback');
+      my $edit_oe_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{cv} eq 'vendor' ? 'purchase_order' : 'sales_order'), 'id=' . E($ref->{trans_id}), 'callback');
       $row->{ordnumber}{link} = $edit_oe_link;
       $row->{quonumber}{link} = $edit_oe_link if (!$ref->{ordnumber});