mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 02:52:44 +00:00
Remove some commented code.
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
@@ -23,33 +23,6 @@ use Illuminate\Support\Collection;
|
|||||||
*/
|
*/
|
||||||
class ImportProcedure
|
class ImportProcedure
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * @param ImportJob $job
|
|
||||||
// * @param Collection $journals
|
|
||||||
// */
|
|
||||||
// public static function runRules(ImportJob $job, Collection $journals)
|
|
||||||
// {
|
|
||||||
// // get all rules for user.
|
|
||||||
// $rules
|
|
||||||
// = Rule::distinct()
|
|
||||||
// ->where('user_id', $job->user->id)
|
|
||||||
// ->leftJoin('rule_groups', 'rule_groups.id', '=', 'rules.rule_group_id')
|
|
||||||
// ->leftJoin('rule_triggers', 'rules.id', '=', 'rule_triggers.rule_id')
|
|
||||||
// ->where('rule_groups.active', 1)
|
|
||||||
// ->where('rule_triggers.trigger_type', 'user_action')
|
|
||||||
// ->where('rule_triggers.trigger_value', 'store-journal')
|
|
||||||
// ->where('rules.active', 1)
|
|
||||||
// ->orderBy('rule_groups.order', 'ASC')
|
|
||||||
// ->orderBy('rules.order', 'ASC')
|
|
||||||
// ->get(['rules.*']);
|
|
||||||
//
|
|
||||||
// // execute rules on each transaction.
|
|
||||||
// /** @var TransactionJournal $journal */
|
|
||||||
// foreach($journals as $journal) {
|
|
||||||
// self::applyRules($rules, $journal);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ImportJob $job
|
* @param ImportJob $job
|
||||||
|
Reference in New Issue
Block a user