Implemented a way to use the external barcode lookup plugin also from within the frontend as a product picker workflow

This commit is contained in:
Bernd Bestel
2023-11-03 20:47:43 +01:00
parent c9215a9a4e
commit 27f9d70b56
11 changed files with 62 additions and 14 deletions

View File

@@ -29,7 +29,8 @@ abstract class BaseBarcodeLookupPlugin
}
if (!IsAssociativeArray($pluginOutput))
{ // $pluginOutput is at least an indexed array here
{
// $pluginOutput is at least an indexed array here
throw new \Exception('Plugin output must be an associative array');
}
@@ -53,7 +54,7 @@ abstract class BaseBarcodeLookupPlugin
// $pluginOutput contains all needed properties here
// Check referenced entity ids are valid
// Check if referenced entity ids are valid
$locationId = $pluginOutput['location_id'];
if (FindObjectInArrayByPropertyValue($this->Locations, 'id', $locationId) === null)
{