$id_ref_currency $id_ref_currency : integer Type integer — Currency used by default in main global configuration (i.e. by default for all shops)
$total_with_discount_te $total_with_discount_te : float Type float — Total price after discount, without tax
$discount_value_te $discount_value_te : float Type float — Supplier discount value without tax (for the whole order)
getEntries() getEntries(integer $id_lang = null) : array Retrieves the product entries for the current order Parameters integer $id_lang Optional Id Lang - Uses Context::language::id by default Returns array
getEntriesCollection() getEntriesCollection() : \PrestaShopCollection Retrieves the details entries (i.e. products) collection for the current order Returns \PrestaShopCollection — Collection of SupplyOrderDetail
isEditable() isEditable() : boolean Check if the current state allows to edit the current order Returns boolean
isDeliveryNoteAvailable() isDeliveryNoteAvailable() : boolean Checks if the current state allows to generate a delivery note for this order Returns boolean
isInReceiptState() isInReceiptState() : boolean Checks if the current state allows to add products in stock Returns boolean
warehouseHasPendingOrders() warehouseHasPendingOrders(integer $id_warehouse) : boolean For a given $id_warehouse, tells if it has pending supply orders Parameters integer $id_warehouse Returns boolean
supplierHasPendingOrders() supplierHasPendingOrders(integer $id_supplier) : boolean For a given $id_supplier, tells if it has pending supply orders Parameters integer $id_supplier Id Supplier Returns boolean
exists() exists(integer|string $match) : integer For a given id or reference, tells if the supply order exists Parameters integer|string $match Either the reference of the order, or the Id of the order Returns integer — SupplyOrder Id
getSupplyOrderByReference() getSupplyOrderByReference(string $reference) : boolean|\SupplyOrder For a given reference, returns the corresponding supply order Parameters string $reference Reference of the order Returns boolean|\SupplyOrder
getReferenceById() getReferenceById(integer $id_supply_order) : boolean|string Gets the reference of a given order Parameters integer $id_supply_order Returns boolean|string
getWsSupplyOrderDetails() getWsSupplyOrderDetails() : array Webservice : gets the ids supply_order_detail associated to this order Returns array
calculatePrices() calculatePrices() Checks all products in this order and calculate prices Applies the global discount if necessary
addHistory() addHistory() Historizes the order : its id, its state, and the employee responsible for the current action