@@ -112,10 +112,10 @@ |
||
112 | 112 | |
113 | 113 | public function addItem(array $array) |
114 | 114 | { |
115 | - if (! isset($this->attributes['SalesEntryLines']) || $this->attributes['SalesEntryLines'] == null) { |
|
115 | + if ( ! isset($this->attributes['SalesEntryLines']) || $this->attributes['SalesEntryLines'] == null) { |
|
116 | 116 | $this->attributes['SalesEntryLines'] = []; |
117 | 117 | } |
118 | - if (! isset($array['LineNumber'])) { |
|
118 | + if ( ! isset($array['LineNumber'])) { |
|
119 | 119 | $array['LineNumber'] = count($this->attributes['SalesEntryLines']) + 1; |
120 | 120 | } |
121 | 121 | $this->attributes['SalesEntryLines'][] = $array; |
@@ -67,10 +67,10 @@ |
||
67 | 67 | |
68 | 68 | public function addItem(array $array) |
69 | 69 | { |
70 | - if (! isset($this->attributes['PurchaseEntryLines']) || $this->attributes['PurchaseEntryLines'] == null) { |
|
70 | + if ( ! isset($this->attributes['PurchaseEntryLines']) || $this->attributes['PurchaseEntryLines'] == null) { |
|
71 | 71 | $this->attributes['PurchaseEntryLines'] = []; |
72 | 72 | } |
73 | - if (! isset($array['LineNumber'])) { |
|
73 | + if ( ! isset($array['LineNumber'])) { |
|
74 | 74 | $array['LineNumber'] = count($this->attributes['PurchaseEntryLines']) + 1; |
75 | 75 | } |
76 | 76 | $this->attributes['PurchaseEntryLines'][] = $array; |
@@ -32,22 +32,22 @@ |
||
32 | 32 | protected $primaryKey = 'HID'; |
33 | 33 | |
34 | 34 | protected $fillable = [ |
35 | - 'AccountCode', |
|
36 | - 'AccountId', |
|
37 | - 'AccountName', |
|
38 | - 'Amount', |
|
39 | - 'AmountInTransit', |
|
40 | - 'CurrencyCode', |
|
41 | - 'Description', |
|
42 | - 'DueDate', |
|
43 | - 'EntryNumber', |
|
44 | - 'HID', |
|
45 | - 'Id', |
|
46 | - 'InvoiceDate', |
|
47 | - 'InvoiceNumber', |
|
48 | - 'JournalCode', |
|
49 | - 'JournalDescription', |
|
50 | - 'YourRef', |
|
35 | + 'AccountCode', |
|
36 | + 'AccountId', |
|
37 | + 'AccountName', |
|
38 | + 'Amount', |
|
39 | + 'AmountInTransit', |
|
40 | + 'CurrencyCode', |
|
41 | + 'Description', |
|
42 | + 'DueDate', |
|
43 | + 'EntryNumber', |
|
44 | + 'HID', |
|
45 | + 'Id', |
|
46 | + 'InvoiceDate', |
|
47 | + 'InvoiceNumber', |
|
48 | + 'JournalCode', |
|
49 | + 'JournalDescription', |
|
50 | + 'YourRef', |
|
51 | 51 | ]; |
52 | 52 | |
53 | 53 | protected $url = 'read/financial/ReceivablesList'; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | public function addItem(array $array) |
61 | 61 | { |
62 | - if (! isset($this->attributes['BankEntryLines']) || $this->attributes['BankEntryLines'] == null) { |
|
62 | + if ( ! isset($this->attributes['BankEntryLines']) || $this->attributes['BankEntryLines'] == null) { |
|
63 | 63 | $this->attributes['BankEntryLines'] = []; |
64 | 64 | } |
65 | 65 | $this->attributes['BankEntryLines'][] = $array; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | ]; |
28 | 28 | |
29 | 29 | $res = $client->get($uri, [ |
30 | - 'headers' => $headers |
|
30 | + 'headers' => $headers |
|
31 | 31 | ]); |
32 | 32 | |
33 | 33 | return $res->getBody(); |
@@ -123,10 +123,10 @@ |
||
123 | 123 | */ |
124 | 124 | public function addItem(array $array) |
125 | 125 | { |
126 | - if (! isset($this->attributes['QuotationLines']) || $this->attributes['QuotationLines'] == null) { |
|
126 | + if ( ! isset($this->attributes['QuotationLines']) || $this->attributes['QuotationLines'] == null) { |
|
127 | 127 | $this->attributes['QuotationLines'] = []; |
128 | 128 | } |
129 | - if (! isset($array['LineNumber'])) { |
|
129 | + if ( ! isset($array['LineNumber'])) { |
|
130 | 130 | $array['LineNumber'] = count($this->attributes['QuotationLines']) + 1; |
131 | 131 | } |
132 | 132 | $this->attributes['QuotationLines'][] = $array; |