mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 15:04:37 -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([
|
$company = factory(\App\Models\Company::class)->create([
|
||||||
'account_id' => $account->id,
|
'account_id' => $account->id,
|
||||||
'slack_webhook_url' => config('ninja.notification.slack'),
|
'slack_webhook_url' => config('ninja.notification.slack'),
|
||||||
'enabled_modules' => 8191,
|
'enabled_modules' => 32767,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$settings = $company->settings;
|
$settings = $company->settings;
|
||||||
|
@ -139,7 +139,7 @@ class BaseController extends Controller
|
|||||||
$includes = $transformer->getDefaultIncludes();
|
$includes = $transformer->getDefaultIncludes();
|
||||||
$includes = $this->getRequestIncludes($includes);
|
$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 = request()->has('updated_at') ? request()->input('updated_at') : 0;
|
||||||
$updated_at = date('Y-m-d H:i:s', $updated_at);
|
$updated_at = date('Y-m-d H:i:s', $updated_at);
|
||||||
|
@ -48,10 +48,10 @@ class QueryLogging
|
|||||||
$timeEnd = microtime(true);
|
$timeEnd = microtime(true);
|
||||||
$time = $timeEnd - $timeStart;
|
$time = $timeEnd - $timeStart;
|
||||||
|
|
||||||
// Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
|
Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
|
||||||
|
|
||||||
//if($count > 10)
|
//if($count > 10)
|
||||||
Log::info($queries);
|
// Log::info($queries);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class StorePaymentRequest extends Request
|
|||||||
{
|
{
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
info(print_r($input,1));
|
//info(print_r($input,1));
|
||||||
|
|
||||||
$invoices_total = 0;
|
$invoices_total = 0;
|
||||||
$credits_total = 0;
|
$credits_total = 0;
|
||||||
|
@ -79,10 +79,10 @@ class ValidCreditsRules implements Rule
|
|||||||
|
|
||||||
|
|
||||||
if(count($this->input['credits']) >=1 && count($this->input['invoices']) == 0){
|
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 false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user