support tags in invoices (#2526)

This commit is contained in:
Kevin Papst
2021-04-23 17:06:42 +02:00
committed by GitHub
parent 67d23ec6b2
commit bb94b11e37
9 changed files with 59 additions and 5 deletions

View File

@@ -114,5 +114,11 @@ abstract class AbstractMergedCalculator extends AbstractCalculator
if (empty($invoiceItem->getDescription()) && null !== $entry->getActivity()) {
$invoiceItem->setDescription($entry->getActivity()->getName());
}
if ($entry instanceof Timesheet) {
foreach ($entry->getTagsAsArray() as $tag) {
$invoiceItem->addTag($tag);
}
}
}
}