X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdo.pl;h=11e3a4daa21d5830709d046e1975559755d3b769;hb=ab875da135e7c44abb05eae5a136f6df4e09078c;hp=130cca13039cd799fb844ce645fb65bbee043cd3;hpb=99065c25a9fbb661e02a3b99d213e70e8a830264;p=kivitendo-erp.git diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 130cca130..11e3a4daa 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -460,7 +460,7 @@ sub orders { $report->set_columns(%column_defs); $report->set_column_order(@columns); - $report->set_export_options('orders', @hidden_variables); + $report->set_export_options('orders', @hidden_variables, qw(sort sortdir)); $report->set_sort_indicator($form->{sort}, $form->{sortdir}); @@ -485,10 +485,10 @@ sub orders { push @options, $locale->text('Transaction description') . " : $form->{transaction_description}"; } if ($form->{transdatefrom}) { - push @options, $locale->text('From') . " " . $locale->date(\%myconfig, $form->{transdatefrom}, 1); + push @options, $locale->text('From') . " " . $locale->date(\%myconfig, $form->{transdatefrom}, 1); } if ($form->{transdateto}) { - push @options, $locale->text('Bis') . " " . $locale->date(\%myconfig, $form->{transdateto}, 1); + push @options, $locale->text('Bis') . " " . $locale->date(\%myconfig, $form->{transdateto}, 1); } if ($form->{open}) { push @options, $locale->text('Open'); @@ -655,6 +655,7 @@ sub invoice { $form->{title} = $locale->text('Add Vendor Invoice'); $form->{script} = 'ir.pl'; $script = "ir"; + $buysell = 'sell'; } else { $form->{title} = $locale->text('Add Sales Invoice'); @@ -734,6 +735,11 @@ sub invoice_multi { } $form->{convert_from_do_ids} = join ' ', @do_ids; + # bei der auswahl von mehreren Lieferscheinen fuer eine Rechnung, die einfach in donumber_array + # zwischenspeichern (DO.pm) und als ' '-separierte Liste wieder zurueckschreiben + # Hinweis: delete gibt den wert zurueck und loescht danach das element (nett und einfach) + # $shell: perldoc perlunc; /delete EXPR + $form->{donumber} = delete $form->{donumber_array}; $form->{deliverydate} = $form->{transdate}; $form->{transdate} = $form->current_date(\%myconfig); $form->{duedate} = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1); @@ -1231,3 +1237,14 @@ sub no { sub update { call_sub($form->{update_nextsub} || $form->{nextsub} || 'update_delivery_order'); } + +sub dispatcher { + foreach my $action (qw(update ship_to print e_mail save transfer_out transfer_in mark_closed save_as_new invoice delete)) { + if ($form->{"action_${action}"}) { + call_sub($action); + return; + } + } + + $form->error($locale->text('No action defined.')); +}