mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-18 00:29:22 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
782e2b7fdf
commit
0f3ba9b6a8
19 changed files with 109 additions and 139 deletions
|
@ -154,11 +154,11 @@ class Orderdetail extends DBElement
|
|||
*/
|
||||
public function getSupplierProductUrl(bool $no_automatic_url = false) : string
|
||||
{
|
||||
if ($no_automatic_url || $this->supplierpartnr != '') {
|
||||
if ($no_automatic_url || $this->supplierpartnr !== '') {
|
||||
return $this->supplierpartnr;
|
||||
} else {
|
||||
return $this->getSupplier()->getAutoProductUrl($this->supplierpartnr);
|
||||
} // maybe an automatic url is available...
|
||||
}
|
||||
|
||||
return $this->getSupplier()->getAutoProductUrl($this->supplierpartnr); // maybe an automatic url is available...
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -235,7 +235,7 @@ class Orderdetail extends DBElement
|
|||
return $correct_pricedetails->getPrice($as_money_string, $multiplier);
|
||||
* */
|
||||
//TODO
|
||||
throw new \Exception("Not implemented yet...");
|
||||
throw new \Exception('Not implemented yet...');
|
||||
}
|
||||
|
||||
/********************************************************************************
|
||||
|
@ -252,7 +252,7 @@ class Orderdetail extends DBElement
|
|||
*/
|
||||
public function setSupplierId(int $new_supplier_id) : self
|
||||
{
|
||||
throw new \Exception("Not implemented yet!");
|
||||
throw new \Exception('Not implemented yet!');
|
||||
//TODO;
|
||||
|
||||
return $this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue