mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 08:54:34 -04:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
aee3b77581
@ -18,6 +18,7 @@ use Illuminate\Database\Eloquent\Builder;
|
||||
*/
|
||||
class ClientFilters extends QueryFilters
|
||||
{
|
||||
|
||||
/**
|
||||
* Filter by name.
|
||||
*
|
||||
|
@ -293,8 +293,16 @@ abstract class QueryFilters
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
public function with(string $value): Builder
|
||||
public function with(string $value = ''): Builder
|
||||
{
|
||||
if (strlen($value) == 0) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
if($this->with_property == 'id') {
|
||||
$value = $this->decodePrimaryKey($value);
|
||||
}
|
||||
|
||||
return $this->builder
|
||||
->orWhere($this->with_property, $value)
|
||||
->orderByRaw("{$this->with_property} = ? DESC", [$value])
|
||||
|
@ -40,15 +40,15 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// DB::listen(function($query) {
|
||||
// nlog(
|
||||
// $query->sql,
|
||||
// [
|
||||
// 'bindings' => $query->bindings,
|
||||
// 'time' => $query->time
|
||||
// ]
|
||||
// );
|
||||
// });
|
||||
\DB::listen(function($query) {
|
||||
nlog(
|
||||
$query->sql,
|
||||
[
|
||||
'bindings' => $query->bindings,
|
||||
'time' => $query->time
|
||||
]
|
||||
);
|
||||
});
|
||||
|
||||
// Model::preventLazyLoading(
|
||||
// !$this->app->isProduction()
|
||||
|
@ -4,8 +4,8 @@ includes:
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
- '#Call to an undefined method .*badMethod\(\)#'
|
||||
- 'Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude().
|
||||
level: 2
|
||||
- '#Call to an undefined method Illuminate\Database\Eloquent\Builder::exclude#'
|
||||
level: 4
|
||||
paths:
|
||||
- app
|
||||
universalObjectCratesClasses:
|
||||
|
@ -9,7 +9,7 @@
|
||||
* @license https://www.elastic.co/licensing/elastic-license
|
||||
*/
|
||||
|
||||
namespace Tests\Feature;
|
||||
namespace Tests\Feature\EInvoice;
|
||||
|
||||
use App\Services\Invoice\EInvoice\FacturaEInvoice;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
@ -19,7 +19,6 @@ use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @covers App\Http\Controllers\ActivityController
|
||||
*/
|
||||
class FacturaeTest extends TestCase
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
* @license https://www.elastic.co/licensing/elastic-license
|
||||
*/
|
||||
|
||||
namespace Tests\Feature;
|
||||
namespace Tests\Feature\EInvoice;
|
||||
|
||||
use App\Services\Invoice\EInvoice\FatturaPA;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
|
@ -19,7 +19,6 @@ use App\Models\Company;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\User;
|
||||
use App\Services\Report\ARDetailReport;
|
||||
use App\Services\Report\UserSalesReport;
|
||||
use App\Utils\Traits\MakesHash;
|
||||
use Illuminate\Routing\Middleware\ThrottleRequests;
|
||||
use Tests\MockAccountData;
|
||||
@ -28,7 +27,7 @@ use Tests\TestCase;
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
class ARDetailReportTest extends TestCase
|
||||
class ArDetailReportTest extends TestCase
|
||||
{
|
||||
use MakesHash;
|
||||
|
||||
|
@ -27,7 +27,7 @@ use Tests\TestCase;
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
class ARSummaryReportTest extends TestCase
|
||||
class ArSummaryReportTest extends TestCase
|
||||
{
|
||||
use MakesHash;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user