mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-03 23:14:36 +02:00
Added default_currency and shipping cost fields to supplier admin page.
This commit is contained in:
parent
e274d6aa9e
commit
06c6483fd1
6 changed files with 121 additions and 9 deletions
|
@ -102,7 +102,7 @@ class Supplier extends Company
|
|||
|
||||
/**
|
||||
* @var float|null The shipping costs that have to be paid, when ordering via this supplier.
|
||||
* @ORM\Column(name="shipping_costs", nullable=true, type="decimal")
|
||||
* @ORM\Column(name="shipping_costs", nullable=true, type="decimal", precision=11, scale=5)
|
||||
* @Assert\PositiveOrZero()
|
||||
*/
|
||||
protected $shipping_costs;
|
||||
|
@ -126,18 +126,19 @@ class Supplier extends Company
|
|||
}
|
||||
|
||||
/**
|
||||
* @return ?float
|
||||
* @return ?string
|
||||
*/
|
||||
public function getShippingCosts() : ?float
|
||||
public function getShippingCosts() : ?string
|
||||
{
|
||||
dump($this);
|
||||
return $this->shipping_costs;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ?float $shipping_costs
|
||||
* @param ?string $shipping_costs
|
||||
* @return Supplier
|
||||
*/
|
||||
public function setShippingCosts(?float $shipping_costs) : Supplier
|
||||
public function setShippingCosts(?string $shipping_costs) : Supplier
|
||||
{
|
||||
$this->shipping_costs = $shipping_costs;
|
||||
return $this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue