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