v2 first commit
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Models\Setting;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Abstracts\Model;
|
||||
|
||||
class Tax extends Model
|
||||
{
|
||||
@ -65,12 +65,11 @@ class Tax extends Model
|
||||
{
|
||||
$title = $this->name . ' (';
|
||||
|
||||
if (setting('general.percent_position', 'after') == 'after') {
|
||||
$title .= $this->rate . '%';
|
||||
if (setting('localisation.percent_position', 'after') == 'after') {
|
||||
$title .= $this->getAttribute('type') == 'fixed' ? $this->rate : $this->rate . '%';
|
||||
} else {
|
||||
$title .= '%' . $this->rate;
|
||||
$title .= $this->getAttribute('type') == 'fixed' ? $this->rate : '%' . $this->rate;
|
||||
}
|
||||
|
||||
$title .= ')';
|
||||
|
||||
return $title;
|
||||
|
Reference in New Issue
Block a user