Revision 6b87fc69
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/DB/RequirementSpecItem.pm | ||
---|---|---|
56 | 56 |
|
57 | 57 |
$self->requirement_spec->update_attributes($method => $next_number) || return 0; |
58 | 58 |
|
59 |
$method = 'requirement_spec_' . ($self->parent_id ? 'function_block' : 'section') . '_number_format';
|
|
60 |
my $format = SL::DB::Default->get->$method;
|
|
59 |
$method = ($self->parent_id ? 'function_block' : 'section') . '_number_format'; |
|
60 |
my $format = $self->requirement_spec->type->$method;
|
|
61 | 61 |
|
62 | 62 |
$self->fb_number(SL::PrefixedNumber->new(number => $format || 0)->set_to($next_number)); |
63 | 63 |
|
Auch abrufbar als: Unified diff
Pflichtenhefte: Nummerierungsformate zu Typen verschoben & bearbeitbar gemacht