We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f51ed commit f2d798bCopy full SHA for f2d798b
src/Picqer/Financials/Exact/PurchaseOrder.php
@@ -159,4 +159,13 @@ public function addItem(array $array)
159
}
160
$this->attributes['PurchaseOrderLines'][] = $array;
161
162
+
163
+ public function getPurchaseOrderLines()
164
+ {
165
+ if (array_key_exists('__deferred', $this->attributes['PurchaseOrderLines'])) {
166
+ $this->attributes['PurchaseOrderLines'] = (new PurchaseOrderLine($this->connection()))->filter("PurchaseOrderID eq guid'{$this->PurchaseOrderID}'");
167
+ }
168
169
+ return $this->attributes['PurchaseOrderLines'];
170
171
0 commit comments