mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for invoice save (#3295)
* Working on Invoice Designs * Fixes for invoice save * Threshold changes for sending large accounts on ?first_load=true
This commit is contained in:
parent
82720f1801
commit
e8f19f9b63
@ -283,7 +283,7 @@ class BaseController extends Controller
|
||||
if (request()->has('first_load') && request()->input('first_load') == 'true')
|
||||
{
|
||||
|
||||
if (auth()->user()->getCompany()->clients->count() > 1000)
|
||||
if (auth()->user()->getCompany()->invoices->count() > 1000)
|
||||
{
|
||||
|
||||
$data = $mini_load;
|
||||
|
@ -150,7 +150,7 @@ trait MakesInvoiceValues
|
||||
$data['$'.$label . '_label'] = ctrans('texts.'.$label);
|
||||
}
|
||||
|
||||
if(property_exists($custom_fields,'invoice_text1'))
|
||||
if($custom_fields && property_exists($custom_fields,'invoice_text1'))
|
||||
$data['$invoice_text1'] = $custom_fields->invoice_text1;
|
||||
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user