NEW Implementing Billable tasks on projects using new attribute "billable" (#30092)

* Implementing Billable task function on projects using new attribute in #30014

* added billable to Task->initAsSpecimen()

* default billable to 1 in initAsSpecimen

* set billable to 1 in ProjectTest::testTaskCreate

* Moving attribut usage in usage_bill_time condition of project

* PPDoc

* fusion

* pre-commit + typo

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Vincent de Grandpré
2024-07-02 21:29:05 -04:00
committed by GitHub
parent 3ddd6cceba
commit b0cd32bf68
12 changed files with 102 additions and 12 deletions

View File

@@ -165,6 +165,7 @@ class ProjectTest extends CommonClassTest
$localobject = new Task($db);
$localobject->initAsSpecimen();
$localobject->fk_project = $idproject;
$localobject->billable = 1;
$result = $localobject->create($user);
$this->assertLessThan($result, 0);