More Product Model optimisation
This commit is contained in:
@@ -114,4 +114,15 @@ class Site extends Model
|
||||
? $this->details->get($x)->value
|
||||
: NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the taxed value of a value
|
||||
*
|
||||
* @param float $value
|
||||
* @return float
|
||||
*/
|
||||
public function taxed(float $value): float
|
||||
{
|
||||
return Tax::calc($value,$this->taxes);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user