Revision 0519ea6f
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Model/Record.pm | ||
---|---|---|
406 | 406 |
my %new_attrs; |
407 | 407 |
# Lets assign a new number if the user hasn't changed the previous one. |
408 | 408 |
# If it has been changed manually then use it as-is. |
409 |
$new_attrs{number} = (trim($changed_record->number) eq $saved_record->number)
|
|
409 |
$new_attrs{record_number} = (trim($changed_record->record_number) eq $saved_record->record_number)
|
|
410 | 410 |
? '' |
411 |
: trim($changed_record->number); |
|
411 |
: trim($changed_record->record_number);
|
|
412 | 412 |
|
413 | 413 |
# Clear transdate unless changed |
414 | 414 |
$new_attrs{transdate} = ($changed_record->transdate == $saved_record->transdate) |
Auch abrufbar als: Unified diff
Model::Record: nutze record_number um die Belegnummer anzuspechen