X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Foe.pl;h=6ee8520c205b614b26a14601143b162818ae66c7;hb=2efc8cbcc63c56094e0692067b7cb678c1583987;hp=c9cb92e0a559d1f4aa85386c2f99f97a37f3d26b;hpb=70e1559de935668f85affe8c2e73eaa45d3d1715;p=kivitendo-erp.git diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index c9cb92e0a..6ee8520c2 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -324,6 +324,13 @@ sub form_header { my $checkedclosed = $form->{"closed"} ? "checked" : ""; my $checkeddelivered = $form->{"delivered"} ? "checked" : ""; + if ($form->{old_employee_id}) { + $form->{employee_id} = $form->{old_employee_id}; + } + if ($form->{old_salesman_id}) { + $form->{salesman_id} = $form->{old_salesman_id}; + } + map { $form->{$_} =~ s/\"/"/g } qw(ordnumber quonumber shippingpoint shipvia notes intnotes shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptocontact @@ -2180,6 +2187,9 @@ sub delete_order_quotation { sub invoice { $lxdebug->enter_sub(); + $form->{old_employee_id} = $form->{employee_id}; + $form->{old_salesman_id} = $form->{salesman_id}; + if ($form->{type} =~ /_order$/) { # these checks only apply if the items don't bring their own ordnumbers/transdates. @@ -2231,6 +2241,7 @@ sub invoice { $exchangerate = $form->check_exchangerate(\%myconfig, $form->{currency}, $orddate, $buysell); + print(STDERR "CURRENCY $form->{currency} DEFAULT: $form->{defaultcurrency} EXCHANGE $exchangerate\n"); if (!$exchangerate) { &backorder_exchangerate($orddate, $buysell); @@ -2621,6 +2632,9 @@ sub poso { $form->{closed} = 0; + $form->{old_employee_id} = $form->{employee_id}; + $form->{old_salesman_id} = $form->{salesman_id}; + # reset map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued customer vendor creditlimit creditremaining discount tradediscount oldinvtotal);