fixed short invoice calculator (#114)
* fixed money display and address field for InvoiceTemplate entity * added quick start button for users without active records * rearranged columns on project and customer admin page * improved extensions docu
This commit is contained in:
@@ -30,6 +30,7 @@ class ShortInvoiceCalculator extends DefaultCalculator
|
||||
$timesheet = new Timesheet();
|
||||
|
||||
foreach ($this->model->getEntries() as $entry) {
|
||||
$timesheet->setRate($timesheet->getRate() + $entry->getRate());
|
||||
$timesheet->setDuration($timesheet->getDuration() + $entry->getDuration());
|
||||
if ($timesheet->getActivity() === null) {
|
||||
$timesheet->setActivity($entry->getActivity());
|
||||
|
||||
Reference in New Issue
Block a user