BConnect POS - Reference PHP

PurchaseOrder
in package

Attributes
#[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

Constants

Properties

$comment

private string|null $comment = null
Attributes
#[Column]
$length: 255
$nullable: true

$created_at

private DateTimeImmutable|null $created_at = null
Attributes
#[Column]
$nullable: true

$historyPurchaseOrders

private Collection $historyPurchaseOrders
Attributes
#[OneToMany]
$mappedBy: 'purchaseOrder'
$targetEntity: \App\Entity\HistoryPurchaseOrder::class

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]

$invoice

private string|null $invoice = null
Attributes
#[Column]
$length: 255
$nullable: true

$motif

private string|null $motif = null
Attributes
#[Column]
$length: 255
$nullable: true

$number_purchase_order

private string|null $number_purchase_order = null
Attributes
#[Column]
$length: 255
$nullable: true

$pointOfSaleId

private int|null $pointOfSaleId = null
Attributes
#[Column]

$price_order

private string|null $price_order = null
Attributes
#[Column]
$length: 255

$product

private Product|null $product = null
Attributes
#[ManyToOne]
$inversedBy: 'purchaseOrders'

$proof

private string|null $proof = null
Attributes
#[Column]
$length: 255

$purchase_intention_date

private DateTimeInterface|null $purchase_intention_date = null
Attributes
#[Column]
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE

$quantityOrder

private int|null $quantityOrder = null
Attributes
#[Column]

$status

private string|null $status = null
Attributes
#[Column]
$length: 255

$totalOrder

private int|null $totalOrder = null
Attributes
#[Column]
$nullable: true

$unit_of_measurement

private string|null $unit_of_measurement = null
Attributes
#[Column]
$length: 255

Methods

getComment()

public getComment() : string|null
Return values
string|null

getCreatedAt()

public getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|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
Return values
int|null

getPriceOrder()

public getPriceOrder() : string|null
Return values
string|null

getProof()

public getProof() : string|null
Return values
string|null

getPurchaseIntentionDate()

public getPurchaseIntentionDate() : DateTimeInterface|null
Return values
DateTimeInterface|null

getQuantityOrder()

public getQuantityOrder() : int|null
Return values
int|null

getStatus()

public getStatus() : string|null
Return values
string|null

getTotalOrder()

public getTotalOrder() : int|null
Return values
int|null

getUnitOfMeasurement()

public getUnitOfMeasurement() : string|null
Return values
string|null

setComment()

public setComment(string|null $comment) : static
Parameters
$comment : string|null
Return values
static

setCreatedAt()

public setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
$created_at : DateTimeImmutable
Return values
static

setInvoice()

public setInvoice(string $invoice) : static
Parameters
$invoice : string
Return values
static

setMotif()

public setMotif(string|null $motif) : static
Parameters
$motif : string|null
Return values
static

setNumberPurchaseOrder()

public setNumberPurchaseOrder(string|null $number_purchase_order) : static
Parameters
$number_purchase_order : string|null
Return values
static

setPointOfSaleId()

public setPointOfSaleId(int $pointOfSaleId) : static
Parameters
$pointOfSaleId : int
Return values
static

setPriceOrder()

public setPriceOrder(string $price_order) : static
Parameters
$price_order : string
Return values
static

setProof()

public setProof(string $proof) : static
Parameters
$proof : string
Return values
static

setPurchaseIntentionDate()

public setPurchaseIntentionDate(DateTimeInterface $purchase_intention_date) : static
Parameters
$purchase_intention_date : DateTimeInterface
Return values
static

setQuantityOrder()

public setQuantityOrder(int $quantityOrder) : static
Parameters
$quantityOrder : int
Return values
static

setStatus()

public setStatus(string $status) : static
Parameters
$status : string
Return values
static

setTotalOrder()

public setTotalOrder(int|null $totalOrder) : static
Parameters
$totalOrder : int|null
Return values
static

setUnitOfMeasurement()

public setUnitOfMeasurement(string $unit_of_measurement) : static
Parameters
$unit_of_measurement : string
Return values
static
On this page

Search results