Added default_currency and shipping cost fields to supplier admin page.

This commit is contained in:
Jan Böhmer 2019-08-14 15:41:01 +02:00
parent e274d6aa9e
commit 06c6483fd1
6 changed files with 121 additions and 9 deletions

View file

@ -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;