mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Update enabled_modules value
This commit is contained in:
parent
0d8d793a4c
commit
91c40b0517
@ -100,7 +100,7 @@ class DemoMode extends Command
|
||||
$company = factory(\App\Models\Company::class)->create([
|
||||
'account_id' => $account->id,
|
||||
'slack_webhook_url' => config('ninja.notification.slack'),
|
||||
'enabled_modules' => 8191,
|
||||
'enabled_modules' => 32767,
|
||||
]);
|
||||
|
||||
$settings = $company->settings;
|
||||
|
@ -139,7 +139,7 @@ class BaseController extends Controller
|
||||
$includes = $transformer->getDefaultIncludes();
|
||||
$includes = $this->getRequestIncludes($includes);
|
||||
|
||||
info(print_r($includes,1));
|
||||
//info(print_r($includes,1));
|
||||
|
||||
$updated_at = request()->has('updated_at') ? request()->input('updated_at') : 0;
|
||||
$updated_at = date('Y-m-d H:i:s', $updated_at);
|
||||
|
@ -48,10 +48,10 @@ class QueryLogging
|
||||
$timeEnd = microtime(true);
|
||||
$time = $timeEnd - $timeStart;
|
||||
|
||||
// Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
|
||||
Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
|
||||
|
||||
//if($count > 10)
|
||||
Log::info($queries);
|
||||
// Log::info($queries);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ class StorePaymentRequest extends Request
|
||||
{
|
||||
$input = $this->all();
|
||||
|
||||
info(print_r($input,1));
|
||||
//info(print_r($input,1));
|
||||
|
||||
$invoices_total = 0;
|
||||
$credits_total = 0;
|
||||
|
@ -79,10 +79,10 @@ class ValidCreditsRules implements Rule
|
||||
|
||||
|
||||
if(count($this->input['credits']) >=1 && count($this->input['invoices']) == 0){
|
||||
$this->error_msg = "You must have an invoice set when using a credit";
|
||||
$this->error_msg = "You must have an invoice set when using a credit in a payment";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user