mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Add price_related_quantity to PriceDTO.php
This commit is contained in:
parent
7239aef47f
commit
f8ccd5bc22
1 changed files with 3 additions and 1 deletions
|
@ -41,6 +41,8 @@ class PriceDTO
|
||||||
public readonly ?string $currency_iso_code,
|
public readonly ?string $currency_iso_code,
|
||||||
/** @var bool If the price includes tax */
|
/** @var bool If the price includes tax */
|
||||||
public readonly ?bool $includes_tax = true,
|
public readonly ?bool $includes_tax = true,
|
||||||
|
/** @var float the price related quantity */
|
||||||
|
public readonly ?float $price_related_quantity = 1.0,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$this->price_as_big_decimal = BigDecimal::of($this->price);
|
$this->price_as_big_decimal = BigDecimal::of($this->price);
|
||||||
|
@ -54,4 +56,4 @@ class PriceDTO
|
||||||
{
|
{
|
||||||
return $this->price_as_big_decimal;
|
return $this->price_as_big_decimal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue