mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Default client payment terms not used with Zapier/API
This commit is contained in:
parent
2333b532c6
commit
a6df1955d8
@ -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…
x
Reference in New Issue
Block a user