ORM\Entity | |
---|---|
ORM\Table |
(name="pickware_erp_supplier_orders") |
package |
Default |
__construct()
getAttachments() : \Doctrine\Common\Collections\ArrayCollection
\Doctrine\Common\Collections\ArrayCollection
getComment() : string
string
getCreated() : \DateTime
\DateTime
getCurrency() : \Shopware\Models\Shop\Currency
\Shopware\Models\Shop\Currency
getCurrencyId() : integer
integer
getDeliveryDate() : \DateTime
\DateTime
getDocumentComment() : string
string
getId() : integer
integer
getItems() : \Doctrine\Common\Collections\ArrayCollection
\Doctrine\Common\Collections\ArrayCollection
getOrderNumber() : string
string
getPaymentDueDate() : \DateTime
\DateTime
getPaymentStatus() : integer
integer
getStatus() : \Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderStatus
getSupplier() : \Shopware\CustomModels\ViisonPickwareERP\Supplier\Supplier
getTotal() : float
float
getUser() : \Shopware\Models\User\User
\Shopware\Models\User\User
getWarehouse() : \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse
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(string $comment)
string
setCreated(\DateTime|string $created)
\DateTime|string
setCurrency(\Shopware\Models\Shop\Currency $currency)
\Shopware\Models\Shop\Currency
setCurrencyId(integer $currencyId)
integer
setDeliveryDate(\DateTime|string $deliveryDate)
\DateTime|string
setDocumentComment(string $documentComment)
string
setOrderNumber(string $orderNumber)
string
setPaymentDueDate(\DateTime|string $paymentDueDate)
\DateTime|string
setPaymentStatus(integer $paymentStatus)
integer
setStatus(\Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderStatus $status)
setSupplier(\Shopware\CustomModels\ViisonPickwareERP\Supplier\Supplier|null $supplier = null)
setTotal(float $total)
float
setUser(\Shopware\Models\User\User $user)
\Shopware\Models\User\User
setWarehouse(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse)