Revision 5e8868e4
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2670 | 2670 |
sub save_history { |
2671 | 2671 |
my ($self, $addition) = @_; |
2672 | 2672 |
|
2673 |
my $number_type = $self->order->type =~ m{order} ? 'ordnumber' : 'quonumber'; |
|
2674 |
my $snumbers = $number_type . '_' . $self->order->$number_type; |
|
2675 |
|
|
2673 | 2676 |
SL::DB::History->new( |
2674 | 2677 |
trans_id => $self->order->id, |
2675 | 2678 |
employee_id => SL::DB::Manager::Employee->current->id, |
2676 | 2679 |
what_done => $self->order->type, |
2677 |
snumbers => $self->get_history_snumbers(),
|
|
2680 |
snumbers => $snumbers,
|
|
2678 | 2681 |
addition => $addition, |
2679 | 2682 |
)->save; |
2680 | 2683 |
} |
Auch abrufbar als: Unified diff
Revert "Order-Controller: snumbers für History in eigener Routine zusammenbauen"
This reverts commit 9dab1c5cb1f8b9ed946cde7b3c783801671680ed.