cleaning day

This commit is contained in:
ludo
2024-02-22 21:28:33 +01:00
parent 00fc978217
commit 3acb69abe4
111 changed files with 198 additions and 2456 deletions

View File

@@ -3,8 +3,10 @@
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Wildside\Userstamps\Userstamps;
use Znck\Eloquent\Relations\BelongsToThrough as RelationsBelongsToThrough;
use Znck\Eloquent\Traits\BelongsToThrough;
class PriceListValue extends Model
@@ -15,12 +17,12 @@ class PriceListValue extends Model
protected $table = 'shop_price_list_values';
public function price_list()
public function price_list(): BelongsTo
{
return $this->belongsTo(PriceList::class);
}
public function tariff()
public function tariff(): RelationsBelongsToThrough
{
return $this->belongsToThrough(
Tariff::class,
@@ -34,7 +36,7 @@ class PriceListValue extends Model
);
}
public function vat()
public function vat(): BelongsTo
{
return $this->belongsTo(Tax::class, 'tax_id');
}