1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Models/Quote.php

37 lines
597 B
PHP
Raw Normal View History

2019-04-04 01:30:49 +02:00
<?php
namespace App\Models;
use App\Utils\Traits\MakesHash;
use Illuminate\Database\Eloquent\Model;
class Quote extends BaseModel
{
use MakesHash;
protected $guarded = [
'id',
];
const STATUS_DRAFT = 1;
const STATUS_SENT = 2;
const STATUS_APPROVED = 4;
const STATUS_OVERDUE = -1;
public function company()
{
return $this->belongsTo(Company::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function invitations()
{
2019-04-24 02:22:02 +02:00
return $this->hasMany(QuoteInvitation::class);
2019-04-04 01:30:49 +02:00
}
2019-04-24 02:22:02 +02:00
2019-04-04 01:30:49 +02:00
}