BConnect POS - Reference PHP

ProductStock
in package

Attributes
#[Entity]
$repositoryClass: \App\Repository\ProductStockRepository::class
#[UniqueConstraint]
$name: 'uniq_product_stock_name_by_pos'
$columns: ['name', 'point_of_sale_id']
#[UniqueEntity]
$fields: ['name', 'pointOfSaleId']
$message: "Le nom du produit doit ĂȘtre unique par point de vente"

Table of Contents

Properties

$approval_certificate  : string|null
$archiveStatus  : bool|null
$category  : Category|null
$certificate_origin  : string|null
$created_at  : DateTimeImmutable|null
$expiration_date  : DateTimeInterface|null
$historyPurchaseOrders  : Collection
$id  : int|null
$image  : string|null
$invoice_purchase  : string|null
$manufacturing_date  : DateTimeInterface|null
$motif  : string|null
$name  : string|null
$pointOfSaleId  : int|null
$productStockInventories  : Collection
$purchase_price  : float|null
$purchaseOrders  : Collection
$quantity  : int|null
$saleProductStocks  : Collection
$status  : bool|null
$supplier  : Supplier|null
$unitOfMeasurement  : string|null
$updated_at  : DateTimeImmutable|null

Methods

__construct()  : mixed
addHistoryPurchaseOrder()  : static
addProductStockInventory()  : static
addPurchaseOrder()  : static
addSaleProductStock()  : static
getApprovalCertificate()  : string|null
getCategory()  : Category|null
getCertificateOrigin()  : string|null
getCreatedAt()  : DateTimeImmutable|null
getExpirationDate()  : DateTimeInterface|null
getHistoryPurchaseOrders()  : Collection<int, HistoryPurchaseOrder>
getId()  : int|null
getImage()  : string|null
getInvoicePurchase()  : string|null
getManufacturingDate()  : DateTimeInterface|null
getMotif()  : string|null
getName()  : string|null
getPointOfSaleId()  : int|null
getProductStockInventories()  : Collection<int, ProductStockInventory>
getPurchaseOrders()  : Collection<int, PurchaseOrder>
getPurchasePrice()  : float|null
getQuantity()  : int|null
getSaleProductStocks()  : Collection<int, SaleProductStock>
getSupplier()  : Supplier|null
getUnitOfMeasurement()  : string|null
getUpdatedAt()  : DateTimeImmutable|null
isArchiveStatus()  : bool|null
isStatus()  : bool|null
removeHistoryPurchaseOrder()  : static
removeProductStockInventory()  : static
removePurchaseOrder()  : static
removeSaleProductStock()  : static
setApprovalCertificate()  : static
setArchiveStatus()  : static
setCategory()  : static
setCertificateOrigin()  : static
setCreatedAt()  : static
setExpirationDate()  : static
setImage()  : static
setInvoicePurchase()  : static
setManufacturingDate()  : static
setMotif()  : static
setName()  : static
setPointOfSaleId()  : static
setPurchasePrice()  : static
setQuantity()  : static
setStatus()  : static
setSupplier()  : static
setUnitOfMeasurement()  : static
setUpdatedAt()  : static

Properties

$approval_certificate

private string|null $approval_certificate = null
Attributes
#[Column]
$nullable: true

$archiveStatus

private bool|null $archiveStatus = null
Attributes
#[Column]
$nullable: true

$category

private Category|null $category = null
Attributes
#[JoinColumn]
$nullable: false
#[ManyToOne]
$inversedBy: 'productStocks'

$certificate_origin

private string|null $certificate_origin = null
Attributes
#[Column]
$nullable: true

$created_at

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

$expiration_date

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

$historyPurchaseOrders

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

$id

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

$image

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

$invoice_purchase

private string|null $invoice_purchase = null
Attributes
#[Column]
$nullable: true

$manufacturing_date

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

$motif

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

$name

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

$pointOfSaleId

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

$productStockInventories

private Collection $productStockInventories
Attributes
#[OneToMany]
$mappedBy: 'product'
$targetEntity: \App\Entity\ProductStockInventory::class

$purchase_price

private float|null $purchase_price = null
Attributes
#[Column]

$purchaseOrders

private Collection $purchaseOrders
Attributes
#[OneToMany]
$mappedBy: 'productStock'
$targetEntity: \App\Entity\PurchaseOrder::class

$quantity

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

$saleProductStocks

private Collection $saleProductStocks
Attributes
#[OneToMany]
$mappedBy: 'product_stock'
$targetEntity: \App\Entity\SaleProductStock::class
$cascade: ['persist']

$status

private bool|null $status = null
Attributes
#[Column]

$supplier

private Supplier|null $supplier = null
Attributes
#[JoinColumn]
$nullable: true
#[ManyToOne]
$inversedBy: 'productStocks'

$unitOfMeasurement

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

$updated_at

private DateTimeImmutable|null $updated_at = null
Attributes
#[Column]

Methods

getApprovalCertificate()

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

getCertificateOrigin()

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

getCreatedAt()

public getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getExpirationDate()

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

getId()

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

getImage()

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

getInvoicePurchase()

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

getManufacturingDate()

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

getMotif()

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

getName()

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

getPointOfSaleId()

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

getPurchasePrice()

public getPurchasePrice() : float|null
Return values
float|null

getQuantity()

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

getUnitOfMeasurement()

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

getUpdatedAt()

public getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

isArchiveStatus()

public isArchiveStatus() : bool|null
Return values
bool|null

isStatus()

public isStatus() : bool|null
Return values
bool|null

setApprovalCertificate()

public setApprovalCertificate(string $approval_certificate) : static
Parameters
$approval_certificate : string
Return values
static

setArchiveStatus()

public setArchiveStatus(bool|null $archiveStatus) : static
Parameters
$archiveStatus : bool|null
Return values
static

setCertificateOrigin()

public setCertificateOrigin(string $certificate_origin) : static
Parameters
$certificate_origin : string
Return values
static

setCreatedAt()

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

setExpirationDate()

public setExpirationDate(DateTimeInterface|null $expiration_date) : static
Parameters
$expiration_date : DateTimeInterface|null
Return values
static

setImage()

public setImage(string|null $image) : static
Parameters
$image : string|null
Return values
static

setInvoicePurchase()

public setInvoicePurchase(string $invoice_purchase) : static
Parameters
$invoice_purchase : string
Return values
static

setManufacturingDate()

public setManufacturingDate(DateTimeInterface|null $manufacturing_date) : static
Parameters
$manufacturing_date : DateTimeInterface|null
Return values
static

setMotif()

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

setName()

public setName(string $name) : static
Parameters
$name : string
Return values
static

setPointOfSaleId()

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

setPurchasePrice()

public setPurchasePrice(float $purchase_price) : static
Parameters
$purchase_price : float
Return values
static

setQuantity()

public setQuantity(int $quantity) : static
Parameters
$quantity : int
Return values
static

setStatus()

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

setUnitOfMeasurement()

public setUnitOfMeasurement(string|null $unitOfMeasurement) : static
Parameters
$unitOfMeasurement : string|null
Return values
static

setUpdatedAt()

public setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
$updated_at : DateTimeImmutable
Return values
static
On this page

Search results