SupplierOrder

Extends \Shopware\Components\Model\ModelEntity

ORM\Entity
ORM\Table

(name="pickware_erp_supplier_orders")

package

Default

Methods

__construct

__construct() 

getAttachments

getAttachments() : \Doctrine\Common\Collections\ArrayCollection

Response

\Doctrine\Common\Collections\ArrayCollection

getComment

getComment() : string

Response

string

getCreated

getCreated() : \DateTime

Response

\DateTime

getCurrency

getCurrency() : \Shopware\Models\Shop\Currency

Response

\Shopware\Models\Shop\Currency

getCurrencyId

getCurrencyId() : integer

Response

integer

getDeliveryDate

getDeliveryDate() : \DateTime

Response

\DateTime

getDocumentComment

getDocumentComment() : string

Response

string

getId

getId() : integer

Response

integer

getItems

getItems() : \Doctrine\Common\Collections\ArrayCollection

Response

\Doctrine\Common\Collections\ArrayCollection

getOrderNumber

getOrderNumber() : string

Response

string

getPaymentDueDate

getPaymentDueDate() : \DateTime

Response

\DateTime

getPaymentStatus

getPaymentStatus() : integer

Response

integer

getStatus

getStatus() : \Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderStatus

getSupplier

getSupplier() : \Shopware\CustomModels\ViisonPickwareERP\Supplier\Supplier

getTotal

getTotal() : float

Response

float

getUser

getUser() : \Shopware\Models\User\User

Response

\Shopware\Models\User\User

getWarehouse

getWarehouse() : \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse

Recomputes the order total.

recomputeTotal() 

Computing the order total on the fly using SQL when selecting supplier orders through Doctrine is very slow. Because of this, the order total is cached in a field which needs to be updated every time the items in the supplier order are changed.

setComment

setComment(string $comment) 

Arguments

$comment

string

setCreated

setCreated(\DateTime|string $created) 

Arguments

$created

\DateTime|string

setCurrency

setCurrency(\Shopware\Models\Shop\Currency $currency) 

Arguments

$currency

\Shopware\Models\Shop\Currency

setCurrencyId

setCurrencyId(integer $currencyId) 

Arguments

$currencyId

integer

setDeliveryDate

setDeliveryDate(\DateTime|string $deliveryDate) 

Arguments

$deliveryDate

\DateTime|string

setDocumentComment

setDocumentComment(string $documentComment) 

Arguments

$documentComment

string

setOrderNumber

setOrderNumber(string $orderNumber) 

Arguments

$orderNumber

string

setPaymentDueDate

setPaymentDueDate(\DateTime|string $paymentDueDate) 

Arguments

$paymentDueDate

\DateTime|string

setPaymentStatus

setPaymentStatus(integer $paymentStatus) 

Arguments

$paymentStatus

integer

setStatus

setStatus(\Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderStatus $status) 

setSupplier

setSupplier(\Shopware\CustomModels\ViisonPickwareERP\Supplier\Supplier|null $supplier = null) 

setTotal

setTotal(float $total) 

Arguments

$total

float

setUser

setUser(\Shopware\Models\User\User $user) 

Arguments

$user

\Shopware\Models\User\User

setWarehouse

setWarehouse(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse)