Revision 994c3d85
Von Jan Büren vor fast 4 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
227 | 227 |
|
228 | 228 |
my $date = $source->start_time->to_kivitendo; |
229 | 229 |
$entries->{$part_id}->{$date}->{duration} += _round_total($source->duration_in_hours); |
230 |
$entries->{$part_id}->{$date}->{content} .= '<li>' . $source->description_as_stripped_html . '</li>'; |
|
230 |
# add content if not already in description |
|
231 |
my $new_description = $source->description_as_stripped_html; |
|
232 |
$entries->{$part_id}->{$date}->{content} .= '<li>' . $new_description . '</li>' |
|
233 |
unless $entries->{$part_id}->{$date}->{content} =~ m/\Q$new_description/; |
|
234 |
|
|
231 | 235 |
$entries->{$part_id}->{$date}->{date_obj} = $source->start_time; # for sorting |
232 | 236 |
} |
233 | 237 |
|
Auch abrufbar als: Unified diff
Einträge am selben Tag nicht erneut in die Beschreibung aufnehmen