mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-21 18:39:31 +00:00
Fixed some inspection issues.
This commit is contained in:
parent
f7c2f1032f
commit
21a81486df
24 changed files with 64 additions and 84 deletions
|
|
@ -117,14 +117,16 @@ class Supplier extends Company
|
|||
protected $parts;
|
||||
|
||||
/**
|
||||
* Gets the currency that should be used by default, when creating a orderdetail with this supplier.
|
||||
* @return ?Currency
|
||||
*/
|
||||
public function getDefaultCurrency()
|
||||
public function getDefaultCurrency() : ?Currency
|
||||
{
|
||||
return $this->default_currency;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the default currency.
|
||||
* @param ?Currency $default_currency
|
||||
* @return Supplier
|
||||
*/
|
||||
|
|
@ -135,16 +137,17 @@ class Supplier extends Company
|
|||
}
|
||||
|
||||
/**
|
||||
* @return ?string
|
||||
* Gets the shipping costs for an order with this supplier, given in base currency.
|
||||
* @return string|null A bcmath string with the shipping costs
|
||||
*/
|
||||
public function getShippingCosts() : ?string
|
||||
{
|
||||
dump($this);
|
||||
return $this->shipping_costs;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ?string $shipping_costs
|
||||
* Sets the shipping costs for an order with this supplier.
|
||||
* @param string|null $shipping_costs A bcmath string with the shipping costs.
|
||||
* @return Supplier
|
||||
*/
|
||||
public function setShippingCosts(?string $shipping_costs) : Supplier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue