More Product Model optimisation
This commit is contained in:
@@ -193,4 +193,15 @@ class Account extends Model implements IDs
|
||||
return $item->active AND $item->due > 0;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 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