Revision eecd5012
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2721 | 2721 |
sub save_history { |
2722 | 2722 |
my ($self, $addition) = @_; |
2723 | 2723 |
|
2724 |
my $number_type = $self->order->type =~ m{order} ? 'ordnumber' : 'quonumber'; |
|
2725 |
my $snumbers = $number_type . '_' . $self->order->$number_type; |
|
2726 |
|
|
2724 | 2727 |
SL::DB::History->new( |
2725 | 2728 |
trans_id => $self->order->id, |
2726 | 2729 |
employee_id => SL::DB::Manager::Employee->current->id, |
2727 | 2730 |
what_done => $self->order->type, |
2728 |
snumbers => $self->get_history_snumbers(),
|
|
2731 |
snumbers => $snumbers,
|
|
2729 | 2732 |
addition => $addition, |
2730 | 2733 |
)->save; |
2731 | 2734 |
} |
Auch abrufbar als: Unified diff
Revert "Order-Controller: snumbers für History in eigener Routine zusammenbauen"
This reverts commit 9dab1c5cb1f8b9ed946cde7b3c783801671680ed.