Revision ff9eb0dc
Von Bernd Bleßmann vor mehr als 11 Jahren hinzugefügt
SL/DB/Helper/FlattenToForm.pm | ||
---|---|---|
39 | 39 |
_copy($self->contact, $form, '', '', 0, grep { /^cp_/ } map { $_->name } SL::DB::Contact->meta->columns) if _has($self, 'cp_id'); |
40 | 40 |
_copy($self->shipto, $form, '', '', 0, grep { /^shipto/ } map { $_->name } SL::DB::Shipto->meta->columns) if _has($self, 'shipto_id'); |
41 | 41 |
_copy($self->globalproject, $form, 'globalproject', '', 0, qw(number description)) if _has($self, 'globalproject_id'); |
42 |
_copy($self->employee, $form, 'employee', '', 0, map { $_->name } SL::DB::Employee->meta->columns) if _has($self, 'employee_id');
|
|
43 |
_copy($self->salesman, $form, 'salesman', '', 0, map { $_->name } SL::DB::Employee->meta->columns) if _has($self, 'salesman_id');
|
|
42 |
_copy($self->employee, $form, 'employee_', '', 0, map { $_->name } SL::DB::Employee->meta->columns) if _has($self, 'employee_id');
|
|
43 |
_copy($self->salesman, $form, 'salesman_', '', 0, map { $_->name } SL::DB::Employee->meta->columns) if _has($self, 'salesman_id');
|
|
44 | 44 |
_copy($self->acceptance_confirmed_by, $form, 'acceptance_confirmed_by_', '', 0, map { $_->name } SL::DB::Employee->meta->columns) if _has($self, 'acceptance_confirmed_by_id'); |
45 | 45 |
|
46 | 46 |
$form->{employee} = $self->employee->name if _has($self, 'employee_id'); |
Auch abrufbar als: Unified diff
FlattenToForm: employee und salesman enden mit Unterstrich in der Form.
Behebt #2235.