Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Expand modifiers
James Cole26751e10eec0
diff --git a/app/Support/Search/Modifier.php b/app/Support/Search/Modifier.phpindex fe6bb2d851..3f1e514686 100644--- a/app/Support/Search/Modifier.php+++ b/app/Support/Search/Modifier.php@@ -45,14 +45,17 @@ class Modifierdefault:throw new FireflyException(sprintf('Search modifier "%s" is not (yet) supported. Sorry!', $modifier['type']));break;+ case 'amount':case 'amount_is':$res = Modifier::amountCompare($transaction, $modifier['value'], 0);Log::debug(sprintf('Amount is %s? %s', $modifier['value'], var_export($res, true)));break;+ case 'amount_min':case 'amount_less':$res = Modifier::amountCompare($transaction, $modifier['value'], 1);Log::debug(sprintf('Amount less than %s? %s', $modifier['value'], var_export($res, true)));break;+ case 'amount_max':case 'amount_more':$res = Modifier::amountCompare($transaction, $modifier['value'], -1);Log::debug(sprintf('Amount more than %s? %s', $modifier['value'], var_export($res, true)));diff --git a/config/firefly.php b/config/firefly.phpindex 3d4d28d6d7..0172e2d6ea 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -209,7 +209,7 @@ return [],'default_currency' => 'EUR','default_language' => 'en_US',- 'search_modifiers' => ['amount_is', 'amount_less', 'amount_more', 'source', 'destination', 'category', 'budget', 'bill', 'type', 'date',- 'date_before', 'date_after'],+ 'search_modifiers' => ['amount_is', 'amount', 'amount_max', 'amount_min', 'amount_less', 'amount_more', 'source', 'destination', 'category',+ 'budget', 'bill', 'type', 'date', 'date_before', 'date_after'],// tag notes has_attachments];