Skip to content

Error in external id parsing #96

@petaak

Description

@petaak

If I have a bank transaction with external ID in the format "ext:e810294f-ab67-4cb0-89bf-aeadd0fb94d2", I'm getting an error.

Code:

$abraFlexiBanka = new \AbraFlexi\Banka($id, $this->connectionOptions->toArray());
$abraFlexiBanka->loadFromAbraFlexi();

Error:

ErrorException: Undefined array key 2 in /var/www/html/vendor/spojenet/flexibee/src/AbraFlexi/Relation.php:112

It seems you expect the external ID to have at least two prefixes, for example ext:myApp:e810294f-ab67-4cb0-89bf-aeadd0fb94d2. But the external ID does not necessarily have to be in that format.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions