Revision 85d21849
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
207 | 207 |
# - merge same descriptions (todo) |
208 | 208 |
# |
209 | 209 |
|
210 |
### config
|
|
211 |
my $default_partnummer = 6;
|
|
212 |
my $default_part_id = SL::DB::Manager::Part->find_by(partnumber => $default_partnummer)->id;
|
|
210 |
my $default_part_id = $params{default_part_id} ? $params{default_part_id}
|
|
211 |
: $params{default_partnumber} ? SL::DB::Manager::Part->find_by(partnumber => $params{default_partnumber})->id
|
|
212 |
: undef;
|
|
213 | 213 |
|
214 | 214 |
# check parts and collect entries |
215 | 215 |
my %part_by_part_id; |
... | ... | |
227 | 227 |
} |
228 | 228 |
|
229 | 229 |
my $date = $source->start_time->to_kivitendo; |
230 |
$entries->{$part_id}->{$date}->{duration} += $source->{rounding}
|
|
230 |
$entries->{$part_id}->{$date}->{duration} += $params{rounding}
|
|
231 | 231 |
? nhimult(0.25, ($source->duration_in_hours)) |
232 | 232 |
: _round_total($source->duration_in_hours); |
233 | 233 |
# add content if not already in description |
Auch abrufbar als: Unified diff
Zeiterfassung: Parameter f. Konvertierung in params übergeben