This commit is contained in:
@@ -104,6 +104,11 @@ class Product extends Model
|
||||
);
|
||||
}
|
||||
|
||||
public function conversionRate(): ?float
|
||||
{
|
||||
return $this->conversionRate;
|
||||
}
|
||||
|
||||
public function isDiscontinued(): bool
|
||||
{
|
||||
return $this->lastSeen < now()->format('Y-m-d');
|
||||
|
||||
Reference in New Issue
Block a user