Revision 2392ce9e
Von freiphone vor mehr als 7 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
321 | 321 |
|
322 | 322 |
$TMPL_VAR{invoice_obj} = SL::DB::PurchaseInvoice->load_cached($form->{id}) if $form->{id}; |
323 | 323 |
$TMPL_VAR{vendor_obj} = SL::DB::Vendor->load_cached($form->{vendor_id}) if $form->{vendor_id}; |
324 |
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id}; |
|
325 |
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id}; |
|
324 |
my $current_employee = SL::DB::Manager::Employee->current; |
|
325 |
$form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id}; |
|
326 |
$form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id}; |
|
327 |
$form->{employee_id} ||= $current_employee->id; |
|
328 |
$form->{salesman_id} ||= $current_employee->id; |
|
326 | 329 |
|
327 | 330 |
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig); |
328 | 331 |
|
Auch abrufbar als: Unified diff
Einkaufsrechnungen: Bearbeiter*in & Verkäufer*in mit aktueller Benutzer*in vorbelegen
ir.pl wurde in commit 08e820f vergessen.
Behebt #258