🤖 Auto commit for release 'develop' on 2025-12-17

This commit is contained in:
JC5
2025-12-17 08:47:31 +01:00
parent 486e0d5ed5
commit 012df6bb24
50 changed files with 419 additions and 621 deletions

View File

@@ -26,6 +26,7 @@ namespace FireflyIII\Helpers\Collector\Extensions;
use FireflyIII\Helpers\Collector\GroupCollectorInterface;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use FireflyIII\Support\Facades\Steam;
/**
* Trait AmountCollection
@@ -39,7 +40,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('source.amount', \FireflyIII\Support\Facades\Steam::negative($amount));
$q->where('source.amount', Steam::negative($amount));
}
);
@@ -50,7 +51,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('source.amount', '!=', \FireflyIII\Support\Facades\Steam::negative($amount));
$q->where('source.amount', '!=', Steam::negative($amount));
}
);
@@ -64,7 +65,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('destination.amount', '<=', \FireflyIII\Support\Facades\Steam::positive($amount));
$q->where('destination.amount', '<=', Steam::positive($amount));
}
);
@@ -78,7 +79,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->where('destination.amount', '>=', \FireflyIII\Support\Facades\Steam::positive($amount));
$q->where('destination.amount', '>=', Steam::positive($amount));
}
);
@@ -93,7 +94,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNotNull('source.foreign_amount');
$q->where('source.foreign_amount', \FireflyIII\Support\Facades\Steam::negative($amount));
$q->where('source.foreign_amount', Steam::negative($amount));
}
);
@@ -108,7 +109,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNull('source.foreign_amount');
$q->orWhere('source.foreign_amount', '!=', \FireflyIII\Support\Facades\Steam::negative($amount));
$q->orWhere('source.foreign_amount', '!=', Steam::negative($amount));
}
);
@@ -123,7 +124,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNotNull('destination.foreign_amount');
$q->where('destination.foreign_amount', '<=', \FireflyIII\Support\Facades\Steam::positive($amount));
$q->where('destination.foreign_amount', '<=', Steam::positive($amount));
}
);
@@ -138,7 +139,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount): void { // @phpstan-ignore-line
$q->whereNotNull('destination.foreign_amount');
$q->where('destination.foreign_amount', '>=', \FireflyIII\Support\Facades\Steam::positive($amount));
$q->where('destination.foreign_amount', '>=', Steam::positive($amount));
}
);