Revision a143b82a
Von Sven Schöling vor fast 18 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
2538 | 2538 |
sub e_mail { |
2539 | 2539 |
$lxdebug->enter_sub(); |
2540 | 2540 |
|
2541 |
$form->{saveasnew} = 1; |
|
2542 |
$form->{closed} = 0; |
|
2543 | 2541 |
$form->{print_and_save} = 1; |
2544 |
map { delete $form->{$_} } qw(printed emailed queued); |
|
2545 |
|
|
2546 |
# Let Lx-Office assign a new order number if the user hasn't changed the |
|
2547 |
# previous one. If it has been changed manually then use it as-is. |
|
2548 |
my $idx = $form->{type} =~ /_quotation$/ ? "quonumber" : "ordnumber"; |
|
2549 |
if ($form->{saved_xyznumber} && |
|
2550 |
($form->{saved_xyznumber} eq $form->{$idx})) { |
|
2551 |
delete($form->{$idx}); |
|
2552 |
} |
|
2553 | 2542 |
|
2554 | 2543 |
&save; |
2555 | 2544 |
|
Auch abrufbar als: Unified diff
Bug 614.
Auch copy&paste Programmierung will gelernt sein... :/