ViisonPickwareERPSupplierCommon

Extends \Shopware\Plugins\ViisonCommon\Controllers\ViisonCommonBaseController

Backend controller used for auto loading common Ext JS modules for supplier and supplier order management.

package

Default

Methods

Responds a paginated, filtered and sorted list of article details.

getArticleDetailListAction() 

Remark: This method returns articles regardless of their current stock management status, meaning that articles, whose stock is managed, are returned as well as those, whose stock is not managed. This is based on the rational, that customers may sell products, whose exact stock amount is not important (e.g. huge amount with very low purchase price) and which are reordered "at sight". Nevertheless managed articles are treated with higher priority: they are always listed before the unmanaged ones regardless of any custom sorting.

Responds a paginated, filtered and sorted list of fabricators.

getFabricatorListAction() 

Checks the given filter array for the special ID blacklist filter and, if found, uses the given table and field names to unroll the filter. That is, it fetches all assigned supplier IDs and uses them to add a new 'id NOT IN' filter condition instead of the original ID blacklist condition.

unrollIdBlacklistFilter(array $filter, string $idBlacklistFilterName, string $tableName, string $tableFieldKey, string $modelFieldKey, string $filterTableFieldKey = 'supplierId') : array
static

Arguments

$filter

array

$idBlacklistFilterName

string

$tableName

string

$tableFieldKey

string

$modelFieldKey

string

$filterTableFieldKey

string

(optional, default 'supplierId')

Response

array

Checks the given filter array for the special query blacklist filter and, if found, uses the given query to unroll the filter. That is, it fetches a column of the query results and uses them to add a new 'NOT IN' filter condition instead of the original query blacklist condition.

unrollQueryBlacklistFilter(array $filter, string $blacklistFilterName, string $modelFieldKey, string $query) : array
static

Arguments

$filter

array

$blacklistFilterName

string

$modelFieldKey

string

$query

string

Response

array

Constants

NONE

NONE

REORDER

REORDER