Default client payment terms not used with Zapier/API
This commit is contained in:
parent
2333b532c6
commit
a6df1955d8
1 changed files with 5 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ class ClientRepository extends BaseRepository
|
|||
}
|
||||
}
|
||||
|
||||
// set default payment terms
|
||||
if (auth()->check() && ! isset($data['payment_terms'])) {
|
||||
$data['payment_terms'] = auth()->user()->account->payment_terms;
|
||||
}
|
||||
|
||||
$client->fill($data);
|
||||
$client->save();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue