Skip to content

Commit bded034

Browse files
committed
use improved invoice calculator logic
1 parent 4367cbb commit bded034

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Version 2.9.0
2+
3+
Compatibility: requires minimum Kimai 2.41.0
4+
5+
- Use improved invoice calculator logic
6+
17
## Version 2.8.0
28

39
Compatibility: requires minimum Kimai 2.15.0

Invoice/DemoSortActivityInvoiceCalculator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ protected function mergeSumInvoiceItem(InvoiceItem $invoiceItem, ExportableItem
4242
}
4343
}
4444

45-
public function getEntries(): array
45+
/**
46+
* @return InvoiceItem[]
47+
*/
48+
protected function calculateEntries(): array
4649
{
4750
$entries = $this->model->getEntries();
4851
if (\count($entries) === 0) {

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Showcase plugin for Kimai, with demos for many extension points within the core",
44
"homepage": "https://github.com/Keleo/DemoBundle",
55
"type": "kimai-plugin",
6-
"version": "2.8.0",
6+
"version": "2.9.0",
77
"keywords": [
88
"kimai",
99
"kimai-plugin"
@@ -17,7 +17,7 @@
1717
],
1818
"extra": {
1919
"kimai": {
20-
"require": 21500,
20+
"require": 24100,
2121
"name": "Developer demo"
2222
}
2323
},

0 commit comments

Comments
 (0)