23-01-2026

This commit is contained in:
Kevin Adametz 2026-01-23 17:35:23 +01:00
parent a939cd51ef
commit a8b395e20d
248 changed files with 29342 additions and 4805 deletions

View file

@ -154,6 +154,7 @@ class ShoppingOrder extends Model
'net_split' => 'array',
'abo_interval' => 'int',
'is_abo' => 'bool',
'points' => 'float',
];
public static $shippedTypes = [
@ -421,6 +422,16 @@ class ShoppingOrder extends Model
return formatNumber($this->attributes['total_shipping']);
}
public function setPointsAttribute($value)
{
$this->attributes['points'] = $value !== null ? \Util::reFormatNumber($value) : null;
}
public function getFormattedPoints()
{
return isset($this->attributes['points']) ? formatNumber($this->attributes['points']) : "";
}
public function getPriceVkNetBy($product_id)
{
if ($product = Product::find($product_id)) {