@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | public function endSession() |
172 | 172 | { |
173 | 173 | if (empty($this->register)) { |
174 | - register_shutdown_function(function () { |
|
174 | + register_shutdown_function(function() { |
|
175 | 175 | try { |
176 | 176 | $header[] = new \SoapHeader(self::HEADER_NAMESPACE, 'Action', $this->getAddressToAction('Wyloguj'), 0); |
177 | 177 | $header[] = new \SoapHeader(self::HEADER_NAMESPACE, 'To', self::CONFIG['addressToService'], 0); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | if (!$vatId && !$taxNumber && !$ncr) { |
224 | 224 | return []; |
225 | 225 | } |
226 | - $response = $this->getData('DaneSzukajPodmioty', ['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]); |
|
226 | + $response = $this->getData('DaneSzukajPodmioty', ['pParametryWyszukiwania' => ['Nip' => $vatId, 'Krs' => $ncr, 'Regon' => $taxNumber]]); |
|
227 | 227 | foreach ($response as &$info) { |
228 | 228 | $this->getAdvanceData($info); |
229 | 229 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | foreach (static::$extendedOperators as $exo) { |
31 | 31 | if (false !== strpos($valueToCondition, $exo) && false === $operatorWasFound) { |
32 | 32 | $ev = explode($exo, $valueToCondition); |
33 | - $condition[] = [$exo, $this->getColumnName(), $ev[1]]; |
|
33 | + $condition[] = [$exo, $this->getColumnName(), $ev[1]]; |
|
34 | 34 | $conditionFound = true; |
35 | 35 | $operatorWasFound = true; |
36 | 36 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function process(): int |
28 | 28 | { |
29 | 29 | $query = (new \App\Db\Query())->select([ |
30 | - 'ID_DOKUMENTU_HANDLOWEGO', 'ID_FIRMY', 'ID_KONTRAHENTA', 'ID_DOK_ORYGINALNEGO', |
|
30 | + 'ID_DOKUMENTU_HANDLOWEGO', 'ID_FIRMY', 'ID_KONTRAHENTA', 'ID_DOK_ORYGINALNEGO', |
|
31 | 31 | 'NUMER', 'FORMA_PLATNOSCI', 'UWAGI', 'KONTRAHENT_NAZWA', 'WARTOSC_NETTO', 'WARTOSC_BRUTTO', 'DOK_KOREKTY', |
32 | 32 | 'issueTime' => 'cast (dbo.DOKUMENT_HANDLOWY.DATA_WYSTAWIENIA - 36163 as datetime)', |
33 | 33 | 'saleDate' => 'cast (dbo.DOKUMENT_HANDLOWY.DATA_SPRZEDAZY - 36163 as datetime)', |
@@ -236,7 +236,7 @@ |
||
236 | 236 | $currencyId = $this->convertCurrency($this->row['SYM_WAL'], []); |
237 | 237 | } |
238 | 238 | $currencyParam = \App\Json::encode($this->getCurrencyParam($currencyId)); |
239 | - $dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL']) |
|
239 | + $dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL']) |
|
240 | 240 | ->from('dbo.POZYCJA_DOKUMENTU_MAGAZYNOWEGO') |
241 | 241 | ->where(['ID_DOK_HANDLOWEGO' => $this->waproId]) |
242 | 242 | ->createCommand($this->controller->getDb())->query(); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | public function getAddSupportedFieldTypes() |
86 | 86 | { |
87 | 87 | return [ |
88 | - 'Text', 'Decimal', 'Integer', 'Currency', 'Percent', 'AdvPercentage', 'Date', 'Time', 'DateTime', 'RangeTime', 'Phone', 'Email', 'MultiEmail', 'MultiDomain', 'Picklist', 'MultiSelectCombo', 'Country', 'URL', 'Checkbox', 'TextArea', 'Related1M', 'MultiReference', 'Editor', 'Tree', 'CategoryMultipicklist', 'Image', 'MultiImage', 'MultiAttachment', 'MultiReferenceValue', 'ServerAccess', 'Skype', 'Twitter', 'Token', 'Smtp', |
|
88 | + 'Text', 'Decimal', 'Integer', 'Currency', 'Percent', 'AdvPercentage', 'Date', 'Time', 'DateTime', 'RangeTime', 'Phone', 'Email', 'MultiEmail', 'MultiDomain', 'Picklist', 'MultiSelectCombo', 'Country', 'URL', 'Checkbox', 'TextArea', 'Related1M', 'MultiReference', 'Editor', 'Tree', 'CategoryMultipicklist', 'Image', 'MultiImage', 'MultiAttachment', 'MultiReferenceValue', 'ServerAccess', 'Skype', 'Twitter', 'Token', 'Smtp', |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 |