Skip to content

Commit 5bce1b3

Browse files
authored
Merge pull request #64 from Guite/master
Rename worktime property for correct usage
2 parents f69fa55 + 50171a7 commit 5bce1b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/worktime/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$workTimeEntity->projectId = 456;
2222
$workTimeEntity->comment = 'sdk test test';
2323
$workTimeEntity->minutes = 60;
24-
$workTimeEntity->billed = true;
24+
$workTimeEntity->isCalculated = true;
2525

2626
$result = $workTimesService->updateTime($workTimeEntity);
2727

src/WorkTime/WorkTimeEntity.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class WorkTimeEntity
2525

2626
public $comment;
2727

28-
// not documented property https://github.com/fastbill/fastbill-php-sdk/issues/61
29-
public $billed;
28+
// not documented property IS_CALCULATED (1 == billed)
29+
public $isCalculated;
3030

3131
public const FIELD_MAPPING = [
3232
'TIME_ID' => 'timeId',
@@ -39,7 +39,7 @@ class WorkTimeEntity
3939
'MINUTES' => 'minutes',
4040
'BILLABLE_MINUTES' => 'billableMinutes',
4141
'COMMENT' => 'comment',
42-
'BILLED' => 'billed',
42+
'IS_CALCULATED' => 'isCalculated',
4343
];
4444

4545
public const XML_FIELD_MAPPING = [
@@ -53,7 +53,7 @@ class WorkTimeEntity
5353
'minutes' => 'MINUTES',
5454
'billableMinutes' => 'BILLABLE_MINUTES',
5555
'comment' => 'COMMENT',
56-
'billed' => 'BILLED',
56+
'isCalculated' => 'IS_CALCULATED',
5757
];
5858

5959
public function __construct(?\SimpleXMLElement $data = null)

0 commit comments

Comments
 (0)