v2 first commit
This commit is contained in:
@ -2,13 +2,14 @@
|
||||
|
||||
namespace App\Models\Income;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Abstracts\Model;
|
||||
use App\Traits\Currencies;
|
||||
use Bkwld\Cloner\Cloneable;
|
||||
|
||||
class InvoiceItem extends Model
|
||||
{
|
||||
|
||||
use Currencies;
|
||||
use Cloneable, Currencies;
|
||||
|
||||
protected $table = 'invoice_items';
|
||||
|
||||
@ -17,7 +18,14 @@ class InvoiceItem extends Model
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['company_id', 'invoice_id', 'item_id', 'name', 'sku', 'quantity', 'price', 'total', 'tax'];
|
||||
protected $fillable = ['company_id', 'invoice_id', 'item_id', 'name', 'quantity', 'price', 'total', 'tax'];
|
||||
|
||||
/**
|
||||
* Clonable relationships.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $cloneable_relations = ['taxes'];
|
||||
|
||||
public function invoice()
|
||||
{
|
||||
|
Reference in New Issue
Block a user