mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 04:34:35 -04:00
Fixes for base repo
This commit is contained in:
parent
5101e7cce6
commit
1a0d98ef3d
@ -203,10 +203,8 @@ class BaseRepository
|
|||||||
$resource = explode('\\', $class->name)[2]; /** This will extract 'Invoice' from App\Models\Invoice */
|
$resource = explode('\\', $class->name)[2]; /** This will extract 'Invoice' from App\Models\Invoice */
|
||||||
$lcfirst_resource_id = lcfirst($resource).'_id';
|
$lcfirst_resource_id = lcfirst($resource).'_id';
|
||||||
|
|
||||||
if ($class->name == Invoice::class || $class->name == Quote::class) {
|
$state['starting_amount'] = $model->amount;
|
||||||
$state['starting_amount'] = $model->amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! $model->id) {
|
if (! $model->id) {
|
||||||
$company_defaults = $client->setCompanyDefaults($data, lcfirst($resource));
|
$company_defaults = $client->setCompanyDefaults($data, lcfirst($resource));
|
||||||
$model->uses_inclusive_taxes = $client->getSetting('inclusive_taxes');
|
$model->uses_inclusive_taxes = $client->getSetting('inclusive_taxes');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user