Skip to content

Commit bed4016

Browse files
committed
The Sumation fix
1 parent ba35ed0 commit bed4016

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/AbraFlexi/Functions.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,13 @@ public static function flexiUrl(array $data, $joiner = 'and', $defop = 'eq'): st
207207
break;
208208

209209
default:
210-
if ($column === 'stitky') {
211-
$parts[$column] = $column."='".self::code($data[$column])."'";
212-
} else {
213-
$parts[$column] = $column." {$defop} '".$data[$column]."'";
210+
switch ($column) {
211+
case 'stitky':
212+
$parts[$column] = $column."='".self::code($data[$column])."'";
213+
break;
214+
default:
215+
$parts[$column] = $column." {$defop} '".$data[$column]."'";
216+
break;
214217
}
215218

216219
break;

src/AbraFlexi/RO.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,23 +235,21 @@ class RO extends \Ease\Sand
235235
'authSessionId' => ['type' => 'string', 'description' => 'Authentification Session ID'],
236236
'code-as-id' => ['type' => 'boolean', 'description' => 'If an object has unique code, it is also exported (except for the <code> element) as <id> code: ... </id>'],
237237
'code-in-response' => ['type' => 'boolean', 'description' => 'The response will contain not only ID and URL for each object, but also code.'],
238-
'delimeter' => ['type' => 'string', 'description' => 'Specifies the input / output file separator in CSV format.',
239-
'example' => ';'],
238+
'delimeter' => ['type' => 'string', 'description' => 'Specifies the input / output file separator in CSV format.', 'example' => ';'],
240239
'detail' => ['type' => 'string', 'description' => 'Definition of the level of detail'], // See: https://www.abraflexi.eu/api/dokumentace/ref/detail-levels
241240
'dir' => ['type' => 'string', 'description' => 'Sorting direction.', 'example' => 'desc'],
242241
'dry-run' => ['type' => 'boolean', 'description' => 'Test run (dry-run)'], // See: https://www.abraflexi.eu/api/dokumentace/ref/dry-run/
243242
'encoding' => ['type' => 'string', 'description' => 'Specifies the encoding of the input / output file in CSV format.'],
244243
'export-settings' => ['type' => 'boolean', 'description' => 'Export one extra entry with current settings at the beginning'],
245244
'fail-on-warning' => ['type' => 'boolean', 'description' => 'If a warning occurs, do not save a record (Data Validation)'],
246245
'filter' => ['type' => 'string', 'description' => 'filter results by this param'],
246+
'fields' => ['type' => 'string', 'description' => 'sumation field list'],
247247
'format' => ['type' => 'string', 'description' => 'One of the compiled XSL transforms will be applied to the output XML.'],
248248
'idUcetniObdobi' => ['type' => 'string', 'description' => ''], // See: https://www.abraflexi.eu/api/dokumentace/ref/stavy-uctu/
249-
'includes' => ['type' => 'string', 'description' => 'Include related detail level object ',
250-
'example' => 'faktura-vydana/stredisko'],
249+
'includes' => ['type' => 'string', 'description' => 'Include related detail level object ', 'example' => 'faktura-vydana/stredisko'],
251250
'inDesktopApp' => ['type' => 'boolean', 'description' => 'Hide menu and navigation in html format'], // Note: Undocumented function (html only)
252251
'limit' => ['type' => 'integer', 'description' => 'number of requested results'],
253-
'mode' => ['type' => 'string', 'description' => 'Support for RubyOnRails',
254-
'example' => 'ruby'],
252+
'mode' => ['type' => 'string', 'description' => 'Support for RubyOnRails', 'example' => 'ruby'],
255253
'no-ext-ids' => ['type' => 'boolean', 'description' => 'The answer will not contain external identifiers (performance optimization)'],
256254
'no-http-errors' => ['type' => 'boolean', 'description' => 'If a 4xx error occurs while processing a request, the server sends 200 OK anyway'],
257255
'no-ids' => ['type' => 'boolean', 'description' => 'The response will not contain any primary identifiers (performance optimization). It only affects the main records.'],

0 commit comments

Comments
 (0)