Revision 96f92141
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2777 | 2777 |
sub save_history { |
2778 | 2778 |
my ($self, $addition) = @_; |
2779 | 2779 |
|
2780 |
my $number_type = $self->order->type =~ m{order} ? 'ordnumber' : 'quonumber'; |
|
2781 |
my $snumbers = $number_type . '_' . $self->order->$number_type; |
|
2782 |
|
|
2780 | 2783 |
SL::DB::History->new( |
2781 | 2784 |
trans_id => $self->order->id, |
2782 | 2785 |
employee_id => SL::DB::Manager::Employee->current->id, |
2783 | 2786 |
what_done => $self->order->type, |
2784 |
snumbers => $self->get_history_snumbers(),
|
|
2787 |
snumbers => $snumbers,
|
|
2785 | 2788 |
addition => $addition, |
2786 | 2789 |
)->save; |
2787 | 2790 |
} |
Auch abrufbar als: Unified diff
Revert "Order-Controller: snumbers für History in eigener Routine zusammenbauen"
This reverts commit 9dab1c5cb1f8b9ed946cde7b3c783801671680ed.