Sort and cleanup code.

This commit is contained in:
James Cole
2022-09-25 15:31:58 +02:00
parent 3c33ea959e
commit 6eaed9829b
7 changed files with 614 additions and 623 deletions

View File

@@ -58,7 +58,7 @@ trait AmountCollection
{
$this->query->where(
static function (EloquentBuilder $q) use ($amount) {
$q->where('source.amount','!=', app('steam')->negative($amount));
$q->where('source.amount', '!=', app('steam')->negative($amount));
}
);
@@ -132,7 +132,7 @@ trait AmountCollection
$this->query->where(
static function (EloquentBuilder $q) use ($amount) {
$q->whereNull('source.foreign_amount');
$q->orWhere('source.foreign_amount','!=', app('steam')->negative($amount));
$q->orWhere('source.foreign_amount', '!=', app('steam')->negative($amount));
}
);