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