1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 21:52:35 +01:00
invoiceninja/app/models/Client.php
2013-11-26 14:45:07 +02:00

30 lines
680 B
PHP
Executable File

<?php
class Client extends Eloquent
{
protected $softDelete = true;
public static $fieldName = 'Client - Name';
public static $fieldPhone = 'Client - Phone';
public static $fieldAddress1 = 'Client - Street';
public static $fieldAddress2 = 'Client - Apt/Floor';
public static $fieldCity = 'Client - City';
public static $fieldState = 'Client - State';
public static $fieldPostalCode = 'Client - Postal Code';
public static $fieldNotes = 'Client - Notes';
public function account()
{
return $this->belongsTo('Account');
}
public function invoices()
{
return $this->hasMany('Invoice');
}
public function contacts()
{
return $this->hasMany('Contact');
}
}