Budget graph in project details (#3406)

* do not copy description if restarting via calendar
* added support to display negative durations
* fix charts for larger numbers
This commit is contained in:
Kevin Papst
2022-07-13 17:21:36 +02:00
committed by GitHub
parent 245dd47082
commit 0dba83d8e9
26 changed files with 400 additions and 80 deletions

View File

@@ -17,7 +17,10 @@ final class Month extends Timesheet
private $billableDuration = 0;
private $billableRate = 0.00;
public function __construct(string $month)
/**
* @param string|int $month
*/
public function __construct($month)
{
$monthNumber = (int) $month;
if ($monthNumber < 1 || $monthNumber > 12) {