Revision f6a49074
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
227 | 227 |
} |
228 | 228 |
|
229 | 229 |
my $date = $source->start_time->to_kivitendo; |
230 |
$entries->{$part_id}->{$date}->{duration} += $source->{rounding} ?
|
|
231 |
nhimult(0.25, ($source->duration_in_hours))
|
|
232 |
: _round_total($source->duration_in_hours);
|
|
230 |
$entries->{$part_id}->{$date}->{duration} += $source->{rounding} |
|
231 |
? nhimult(0.25, ($source->duration_in_hours))
|
|
232 |
: _round_total($source->duration_in_hours); |
|
233 | 233 |
# add content if not already in description |
234 | 234 |
my $new_description = $source->description_as_stripped_html; |
235 | 235 |
$entries->{$part_id}->{$date}->{content} .= '<li>' . $new_description . '</li>' |
... | ... | |
402 | 402 |
|
403 | 403 |
=item C<new_from_time_recordings $sources, %params> |
404 | 404 |
|
405 |
Creates a new C<SL::DB::DeliveryOrder> instace from the time recordings |
|
405 |
Creates a new C<SL::DB::DeliveryOrder> instance from the time recordings
|
|
406 | 406 |
given as C<$sources>. All time recording entries must belong to the same |
407 | 407 |
customer. Time recordings are sorted by article and date. For each article |
408 | 408 |
a new delivery order item is created. If no article is associated with an |
Auch abrufbar als: Unified diff
Zeiterfassung: Lieferschein new_from_time_recording: Kosmetik/Typo im POD