ErpSyncQuantityCommand
class ErpSyncQuantityCommand extends ErpContainerCommand
Class ErpSyncQuantityCommand - sync products qunatity
Properties
| protected InputInterface | $input | from ErpContainerCommand | |
| protected OutputInterface | $output | from ErpContainerCommand |
Methods
Dispatch event and return result
Cache all mappings in array
Get erp data key
Extract value for erp data
Write max page parameter to file
Write duplicates to file
No description
No description
Insert new simple products
Update simple product table
Update product arrival dates
Details
in ErpContainerCommand at line 44
protected
execute(InputInterface $input, OutputInterface $output)
in ErpContainerCommand at line 68
protected mixed
dispatchEventWithResult(string $eventName, mixed $parameter = null)
Dispatch event and return result
in ErpContainerCommand at line 84
protected object
get(string $service)
Get container service
in ErpContainerCommand at line 97
protected array
getMappings(string $entity, mixed $params = null)
Cache all mappings in array
in ErpContainerCommand at line 178
protected mixed
getMappingsValueForKey(string $key, array $mappings)
Get erp data key
in ErpContainerCommand at line 203
protected mixed
getValueFromErpData(string $key, array $data, array $mappings)
Extract value for erp data
in ErpContainerCommand at line 218
protected
writeError(string $message)
Write error message to console
in ErpContainerCommand at line 229
protected
writeSuccess(string $message)
Write success message to console
in ErpContainerCommand at line 239
protected
writeLog(string $message)
Write success and error messages to log file
in ErpContainerCommand at line 254
static protected
setPage(int $page, int $maxPages, string $path)
Write max page parameter to file
in ErpContainerCommand at line 266
static protected
writteDuplicates(string $path, string $duplicates)
Write duplicates to file
at line 72
protected
configure()
at line 82
executeCommand()
at line 203
insert()
Insert new simple products
at line 225
update()
Update simple product table
at line 260
updateProductArrivalDates()
Update product arrival dates