PurchaseOrder
-
#[Entity]
-
$repositoryClass: \App\Repository\PurchaseOrderRepository::class
Table of Contents
Constants
-
STATUS_PAYE
: mixed = "Payée"
-
STATUS_REJETE
: mixed = "Rejetée"
-
STATUS_SOUMIS
: mixed = "Soumise"
-
STATUS_SUSPENDU
: mixed = "Suspendue"
-
STATUS_VALIDEE
: mixed = "Validée"
Properties
-
$comment
: string|null
-
$created_at
: DateTimeImmutable|null
-
$historyPurchaseOrders
: Collection
-
$id
: int|null
-
$invoice
: string|null
-
$motif
: string|null
-
$number_purchase_order
: string|null
-
$pointOfSaleId
: int|null
-
$price_order
: string|null
-
$product
: Product|null
-
$productStock
: ProductStock|null
-
$proof
: string|null
-
$purchase_intention_date
: DateTimeInterface|null
-
$quantityOrder
: int|null
-
$status
: string|null
-
$totalOrder
: int|null
-
$unit_of_measurement
: string|null
Methods
-
__construct()
: mixed
-
addHistoryPurchaseOrder()
: static
-
getComment()
: string|null
-
getCreatedAt()
: DateTimeImmutable|null
-
getHistoryPurchaseOrders()
: Collection<int, HistoryPurchaseOrder>
-
getId()
: int|null
-
getInvoice()
: string|null
-
getMotif()
: string|null
-
getNumberPurchaseOrder()
: string|null
-
getPointOfSaleId()
: int|null
-
getPriceOrder()
: string|null
-
getProduct()
: Product|null
-
getProductStock()
: ProductStock|null
-
getProof()
: string|null
-
getPurchaseIntentionDate()
: DateTimeInterface|null
-
getQuantityOrder()
: int|null
-
getStatus()
: string|null
-
getTotalOrder()
: int|null
-
getUnitOfMeasurement()
: string|null
-
removeHistoryPurchaseOrder()
: static
-
setComment()
: static
-
setCreatedAt()
: static
-
setInvoice()
: static
-
setMotif()
: static
-
setNumberPurchaseOrder()
: static
-
setPointOfSaleId()
: static
-
setPriceOrder()
: static
-
setProduct()
: static
-
setProductStock()
: static
-
setProof()
: static
-
setPurchaseIntentionDate()
: static
-
setQuantityOrder()
: static
-
setStatus()
: static
-
setTotalOrder()
: static
-
setUnitOfMeasurement()
: static
STATUS_PAYE
public
mixed
STATUS_PAYE
= "Payée"
STATUS_REJETE
public
mixed
STATUS_REJETE
= "Rejetée"
STATUS_SOUMIS
public
mixed
STATUS_SOUMIS
= "Soumise"
STATUS_SUSPENDU
public
mixed
STATUS_SUSPENDU
= "Suspendue"
STATUS_VALIDEE
public
mixed
STATUS_VALIDEE
= "Validée"
private
string|null
$comment
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$created_at
private
DateTimeImmutable|null
$created_at
= null
-
#[Column]
-
$nullable: true
$historyPurchaseOrders
private
Collection
$historyPurchaseOrders
-
#[OneToMany]
-
$mappedBy: 'purchaseOrder'
-
$targetEntity: \App\Entity\HistoryPurchaseOrder::class
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$invoice
private
string|null
$invoice
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$motif
private
string|null
$motif
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$number_purchase_order
private
string|null
$number_purchase_order
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$pointOfSaleId
private
int|null
$pointOfSaleId
= null
$price_order
private
string|null
$price_order
= null
$product
private
Product|null
$product
= null
-
#[ManyToOne]
-
$inversedBy: 'purchaseOrders'
$productStock
private
ProductStock|null
$productStock
= null
-
#[ManyToOne]
-
$inversedBy: 'purchaseOrders'
$proof
private
string|null
$proof
= null
$purchase_intention_date
private
DateTimeInterface|null
$purchase_intention_date
= null
-
#[Column]
-
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
$quantityOrder
private
int|null
$quantityOrder
= null
$status
private
string|null
$status
= null
$totalOrder
private
int|null
$totalOrder
= null
-
#[Column]
-
$nullable: true
$unit_of_measurement
private
string|null
$unit_of_measurement
= null
__construct()
public
__construct() : mixed
addHistoryPurchaseOrder()
public
addHistoryPurchaseOrder(HistoryPurchaseOrder $historyPurchaseOrder) : static
Parameters
-
$historyPurchaseOrder
: HistoryPurchaseOrder
-
public
getComment() : string|null
Return values
string|null
getCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
getHistoryPurchaseOrders()
public
getHistoryPurchaseOrders() : Collection<int, HistoryPurchaseOrder>
getId()
public
getId() : int|null
getInvoice()
public
getInvoice() : string|null
Return values
string|null
getMotif()
public
getMotif() : string|null
Return values
string|null
getNumberPurchaseOrder()
public
getNumberPurchaseOrder() : string|null
Return values
string|null
getPointOfSaleId()
public
getPointOfSaleId() : int|null
getPriceOrder()
public
getPriceOrder() : string|null
Return values
string|null
getProduct()
public
getProduct() : Product|null
getProductStock()
public
getProductStock() : ProductStock|null
getProof()
public
getProof() : string|null
Return values
string|null
getPurchaseIntentionDate()
public
getPurchaseIntentionDate() : DateTimeInterface|null
Return values
DateTimeInterface|null
getQuantityOrder()
public
getQuantityOrder() : int|null
getStatus()
public
getStatus() : string|null
Return values
string|null
getTotalOrder()
public
getTotalOrder() : int|null
getUnitOfMeasurement()
public
getUnitOfMeasurement() : string|null
Return values
string|null
removeHistoryPurchaseOrder()
public
removeHistoryPurchaseOrder(HistoryPurchaseOrder $historyPurchaseOrder) : static
Parameters
-
$historyPurchaseOrder
: HistoryPurchaseOrder
-
public
setComment(string|null $comment) : static
Parameters
-
$comment
: string|null
-
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
-
$created_at
: DateTimeImmutable
-
setInvoice()
public
setInvoice(string $invoice) : static
Parameters
-
$invoice
: string
-
setMotif()
public
setMotif(string|null $motif) : static
Parameters
-
$motif
: string|null
-
setNumberPurchaseOrder()
public
setNumberPurchaseOrder(string|null $number_purchase_order) : static
Parameters
-
$number_purchase_order
: string|null
-
setPointOfSaleId()
public
setPointOfSaleId(int $pointOfSaleId) : static
Parameters
-
$pointOfSaleId
: int
-
setPriceOrder()
public
setPriceOrder(string $price_order) : static
Parameters
-
$price_order
: string
-
setProduct()
public
setProduct(Product|null $product) : static
Parameters
-
$product
: Product|null
-
setProductStock()
public
setProductStock(ProductStock|null $productStock) : static
Parameters
-
$productStock
: ProductStock|null
-
setProof()
public
setProof(string $proof) : static
Parameters
-
$proof
: string
-
setPurchaseIntentionDate()
public
setPurchaseIntentionDate(DateTimeInterface $purchase_intention_date) : static
Parameters
-
$purchase_intention_date
: DateTimeInterface
-
setQuantityOrder()
public
setQuantityOrder(int $quantityOrder) : static
Parameters
-
$quantityOrder
: int
-
setStatus()
public
setStatus(string $status) : static
Parameters
-
$status
: string
-
setTotalOrder()
public
setTotalOrder(int|null $totalOrder) : static
Parameters
-
$totalOrder
: int|null
-
setUnitOfMeasurement()
public
setUnitOfMeasurement(string $unit_of_measurement) : static
Parameters
-
$unit_of_measurement
: string
-