X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fir.pl;h=7e610f3e5bf2ef9bfbe7b1c3edce8f2d7dda7572;hb=3138b5c71a57c5cf7ce31a96432563f663063c22;hp=ca0e19f8d7a405a068d71653194871f2c4c7f818;hpb=848ff82dda324979b7958eaad58a9b84e38bb27e;p=kivitendo-erp.git diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index ca0e19f8d..7e610f3e5 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -46,6 +46,7 @@ require "bin/mozilla/drafts.pl"; sub add { $lxdebug->enter_sub(); + $form->{"Watchdog::invdate,duedate,vendor,vendor_id"} = 1; return $lxdebug->leave_sub() if (load_draft_maybe()); @@ -220,6 +221,16 @@ sub form_header { s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; } + if ($form->{old_employee_id}) { + $form->{employee_id} = $form->{old_employee_id}; + } + if ($form->{old_salesman_id}) { + $form->{salesman_id} = $form->{old_salesman_id}; + } + + $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); + + $form->{radier} = ($form->current_date(\%myconfig) eq $form->{gldate}) ? 1 : 0; @@ -677,11 +688,11 @@ sub form_footer {