ViisonPickwareERPSupplierOrders

Extends \Shopware_Controllers_Backend_ExtJs Implements \Shopware\Components\CSRFWhitelistAware

Backend controller for the supplier orders module.

package

Default

Methods

Checks whether the given article details have ArticleDetailSupplierMapping that do not exist in the database.

checkArticleDetailsForChangedArticleDetailSupplierMappingsAction() 

Checks if any orderItem has already a stock ledger entry attached to it and if the price changed in comparison to the stock ledger entry. If any change was detected set hasPriceChanged to true so that a popup can be shown in the backend.

checkStockEntryPriceChangeAction() : void
Throws
\Exception

Creates one or more supplier order articles using the POSTed data.

createOrderArticlesAction() 

Creates one or more orders using the POSTed data.

createOrdersAction() 

Deletes the POSTed supplier order articles.

deleteOrderArticlesAction() 

Deletes the POSTed orders.

deleteOrdersAction() 

Creates a new CSV files containing all articles of the order with the given ID and adds it to the response.

downloadOrderCSVAction() 

Creates a new supplier order document for the order with the given ID and adds it to the response.

downloadOrderPDFAction() 

Responds a filtered and sorted list of supplier order articles.

getOrderArticleListAction() 

Note that this is list not paginated i.e. it uses no limit on its results.

Responds with a list containing all available supplier order article statuses.

getOrderArticleStatusListAction() 

Responds a paginated, filtered and sorted list of supplier orders.

getOrderListAction() 

Creates an email containing information about the order with the given ID and responds its receiver address, subject, content and attachment name.

getOrderMailAction() 

Responds with a list containing all available supplier order statuses.

getOrderStatusListAction() 

Responds with a list of all available warehouses including a "all online available warehouses" group option.

getSourceWarehouseListAction() 

getViewParams

getViewParams() 
inheritdoc

getWhitelistedCSRFActions

getWhitelistedCSRFActions() 
inheritdoc

Disables the renderer and output buffering for all 'downloadOrderPDF' requests to be able to display PDFs as response.

init() 

Don't use the JSON renderer for the 'exportInventory' action.

preDispatch() 

Creates or updates the ArticleDetailSupplierMapping for given supplier article details.

saveArticleDetailSupplierMappingsForArticleDetailsAction() 

Creates an email containing information about the order with the given ID and sends it to the respective supplier using the POSTed email address, subject and email body.

sendOrderMailAction() 

Updates one or more existing supplier order articles using the POSTed data.

updateOrderArticlesAction() 

Updates one or more existing orders using the POSTed data. That is, updates the base order date and adds/updates/removes its order items and attachments.

updateOrdersAction()