File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments