This commit is contained in:
Kevin Adametz 2020-07-01 13:21:35 +02:00
parent 9ed251820e
commit da08e9ff37
13 changed files with 378 additions and 56 deletions

View file

@ -263,7 +263,7 @@ class Product extends Model
public function getFormattedTax()
{
return isset($this->attributes['tax']) ? Util::formatNumber($this->attributes['tax']) : "";
return isset($this->attributes['tax']) ? Util::formatNumber($this->attributes['tax'], 0) : "";
}
public function getFormattedPriceOld()

View file

@ -84,7 +84,7 @@ class ShoppingOrder extends Model
'total',
'shipping',
'subtotal',
'tax_rate',
//'tax_rate',
'tax',
'total_shipping',
'weight',

View file

@ -46,6 +46,7 @@ class ShoppingOrderItem extends Model
'product_id',
'qty',
'price',
'tax_rate',
'slug',
];