fixed total sales

This commit is contained in:
Muammer Top 2021-06-28 17:51:25 +03:00
parent aef54dd4bd
commit f9a6541e7b

View File

@ -43,7 +43,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
public function getCurrencyStandardPriceAttribute()
{
if ($this->standard_price > $this->currency) {
if ($this->standard_price > $this->price) {
return app(Currency::class)->format($this->standard_price, $this->currency);
}
return null;