mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-19 15:23:19 +01:00
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:
committed by
GitHub
parent
3ddd6cceba
commit
b0cd32bf68
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user