update payments and vat mentions

This commit is contained in:
ludo
2023-12-21 23:04:42 +01:00
parent 643c26d549
commit 8a463e7b9e
13 changed files with 86 additions and 143 deletions

View File

@@ -30,6 +30,11 @@ class PriceListValue extends Model
);
}
public function vat()
{
return $this->belongsTo(Tax::class, 'tax_id');
}
public function scopeByPriceList($query, $id)
{
return $query->where($this->table.'.price_list_id', $id);