human friendly invoice import/export

This commit is contained in:
denisdulici
2020-01-20 22:58:49 +03:00
parent 8562223ff3
commit 6923a3d6e4
27 changed files with 497 additions and 76 deletions

View File

@ -79,6 +79,11 @@ class Contact extends Model
return $query->whereIn('type', (array) $types);
}
public function scopeEmail($query, $email)
{
return $query->where('email', '=', $email);
}
public function onCloning($src, $child = null)
{
$this->user_id = null;