mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
minor clean up
This commit is contained in:
parent
0bff698bc4
commit
f9b112d098
@ -147,8 +147,7 @@ class BaseRepository
|
|||||||
* @throws \ReflectionException
|
* @throws \ReflectionException
|
||||||
*/
|
*/
|
||||||
protected function alternativeSave($data, $model)
|
protected function alternativeSave($data, $model)
|
||||||
{ //$start = microtime(true);
|
{
|
||||||
//forces the client_id if it doesn't exist
|
|
||||||
if(array_key_exists('client_id', $data) && !empty($data['client_id']))
|
if(array_key_exists('client_id', $data) && !empty($data['client_id']))
|
||||||
$model->client_id = $data['client_id'];
|
$model->client_id = $data['client_id'];
|
||||||
|
|
||||||
@ -176,7 +175,7 @@ class BaseRepository
|
|||||||
|
|
||||||
if (isset($tmp_data['client_contacts']))
|
if (isset($tmp_data['client_contacts']))
|
||||||
unset($tmp_data['client_contacts']);
|
unset($tmp_data['client_contacts']);
|
||||||
nlog($tmp_data);
|
|
||||||
$model->fill($tmp_data);
|
$model->fill($tmp_data);
|
||||||
|
|
||||||
$model->custom_surcharge_tax1 = $client->company->custom_surcharge_taxes1;
|
$model->custom_surcharge_tax1 = $client->company->custom_surcharge_taxes1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user