Erweiterungen / Korrekturen Beraterbestellungen

This commit is contained in:
Kevin Adametz 2020-09-08 19:22:07 +02:00
parent ecc71c616f
commit c4ed6b39db
36 changed files with 1104 additions and 617 deletions

View file

@ -43,4 +43,9 @@ class ShippingCountry extends Model
return $this->belongsTo('App\Models\Country', 'country_id');
}
public function shopping_orders()
{
return $this->hasMany('App\Models\ShoppingOrder', 'country_id');
}
}

View file

@ -43,7 +43,7 @@ class ShippingPrice extends Model
protected $table = 'shipping_prices';
protected $fillable = [
'shipping_id', 'price', 'price_comp', 'tax_rate', 'factor', 'total_from', 'total_to', 'weight_from', 'weight_to',
'shipping_id', 'price', 'price_comp', 'num_comp', 'tax_rate', 'factor', 'total_from', 'total_to', 'weight_from', 'weight_to',
];
public function shipping()

View file

@ -53,6 +53,7 @@ class ShoppingOrderItem extends Model
'shopping_order_id',
'row_id',
'product_id',
'comp',
'qty',
'price',
'price_net',