Revision 0144a5aa
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
222 | 222 |
my $new_number = $self->order->number; |
223 | 223 |
$new_number =~ s/-$current_version_number$//; |
224 | 224 |
$self->order->number($new_number . '-' . $new_version_number); |
225 |
|
|
226 |
SL::DB::OrderVersion->new(oe_id => $self->order->id, |
|
227 |
version => $new_version_number, |
|
228 |
)->save; |
|
225 |
$self->order->add_order_version(SL::DB::OrderVersion->new(oe_id => $self->order->id, |
|
226 |
version => $new_version_number)); |
|
229 | 227 |
|
230 | 228 |
# call the save action |
231 | 229 |
$self->action_save(); |
Auch abrufbar als: Unified diff
Auftrags-Controller: neue Unterversion erst in Transaktion speichern