mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-15 05:33:26 +01:00
Transaction Rules documentation vs reality #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zkutasi on GitHub (Nov 28, 2025).
Maybe I am missing something, but I would like to try to add some tules to automatically categorize things for example...
I am trying to follow the Wiki: https://github.com/eitchtee/WYGIWYH/wiki/Transaction-Rules
But I do not see the same on the UI.
I see:
Wiki states:
Each rule has the following configuration options:
I see:
So here, the X I put into the "If..." field, but another field appeared: The "Then", I have not seen before, so I was unable to fill it... or is it like something more clever? I do not find it on the Wiki how this should be done. I cannot edit the actions... so how I can add one?
@zkutasi commented on GitHub (Nov 28, 2025):
Ohhh I see, on the View Panel, the "Add New" will add a new Action... and there I can see the missing fields:
I suggest then to name the button "Add new Action". The previous discrepancies also apply: naming on the Wiki vs on the UI is very different.
@zkutasi commented on GitHub (Nov 28, 2025):
One more question: How can I run a Rule after an import? Like in Outlook for example, if I add a new Rule, there is a button to execute the Rule on an existing folder and then the Rule runs on its own after... I found the Test which is super awesome, but cannot find the execution.
@eitchtee commented on GitHub (Nov 28, 2025):
Hey there,
You got it right in the end. You're not the first person getting lost in this, thanks for the suggestion for changing the text, will do.
Transaction Rules are ran for each transaction individually after any of the configured events happen, this includes imports. So, if you configure a rule to run On Create, and import a csv with transactions, it should run for all imported transactions as long as the trigger (the If... part) matches.
This behavior can be changed with the
trigger_transaction_rulessetting in the Import profile, but it defaults to true if unspecified.However there isn't a way of running it on previously added transactions. One trick you might do is configure the rule to run "On update" and then use the bulk actions bar to set the transaction to Unpaid, then Paid again, this should trigger the rule. I haven't tried doing this for thousand of transactions at once, but it should be fine, but you might want to temporarily change the TASK_WORKERS=1 variable to a higher number (keep in mind each worker is a CPU thread) so there's more workers processing the transactions concurrently.
@zkutasi commented on GitHub (Nov 29, 2025):
Thanks, your trick works like a charm :)