Revision d2d06133
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/DB/Order.pm | ||
---|---|---|
672 | 672 |
return $final_version; |
673 | 673 |
} |
674 | 674 |
|
675 |
sub increment_version_number { |
|
676 |
my ($self) = @_; |
|
677 |
|
|
678 |
die t8('This sub-version is not yet finalized') if !$self->is_final_version; |
|
679 |
|
|
680 |
my $current_version_number = $self->current_version_number; |
|
681 |
my $new_version_number = $current_version_number + 1; |
|
682 |
|
|
683 |
my $new_number = $self->number; |
|
684 |
$new_number =~ s/-$current_version_number$//; |
|
685 |
$self->number($new_number . '-' . $new_version_number); |
|
686 |
$self->add_order_version(SL::DB::OrderVersion->new(version => $new_version_number)); |
|
687 |
} |
|
688 |
|
|
675 | 689 |
sub netamount_base_currency { |
676 | 690 |
my ($self) = @_; |
677 | 691 |
|
Auch abrufbar als: Unified diff
Order-Controller: Unterversion hochzählen über Model:Record umgesetzt
Todo: SL::Model::Record->save verwenden, sobald implementiert