File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ public function objectToJson(SellReceipt $receipt): array
31
31
$ output ['id ' ] = $ receipt ->id ;
32
32
}
33
33
34
+ if ($ receipt ->related_receipt_id ) {
35
+ $ output ['related_receipt_id ' ] = $ receipt ->related_receipt_id ;
36
+ }
37
+
34
38
return $ output ;
35
39
}
36
40
}
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ class SellReceipt
33
33
* @var string|null
34
34
*/
35
35
public $ id ;
36
+ /** @var string $related_receipt_id */
37
+ public $ related_receipt_id ;
36
38
37
39
public function __construct (
38
40
string $ cashier_name ,
@@ -44,7 +46,8 @@ public function __construct(
44
46
string $ header = '' ,
45
47
string $ footer = '' ,
46
48
string $ barcode = '' ,
47
- string $ id = ''
49
+ string $ id = '' ,
50
+ string $ related_receipt_id = ''
48
51
) {
49
52
$ this ->id = $ id ;
50
53
$ this ->cashier_name = $ cashier_name ;
@@ -56,5 +59,6 @@ public function __construct(
56
59
$ this ->header = $ header ;
57
60
$ this ->footer = $ footer ;
58
61
$ this ->barcode = $ barcode ;
62
+ $ this ->related_receipt_id = $ related_receipt_id ;
59
63
}
60
64
}
You can’t perform that action at this time.
0 commit comments