https://bugs.kde.org/show_bug.cgi?id=382162
Bug ID: 382162 Summary: Wrong budget in root categories if subcategories also include subcategories Product: skrooge Version: unspecified Platform: Other OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: guillaume.deb...@gmail.com Reporter: bernhard+...@scheirle.de CC: steph...@mankowski.fr Target Milestone: --- Created attachment 106519 --> https://bugs.kde.org/attachment.cgi?id=106519&action=edit Skrooge file that contains this bug. Skrooge Version: 2.8.1 Lets say we have following setup: * 6 Categories: * Root * Root > Sub * Root > Sub > Sub * Root2 * Root2 > Sub2 * Root2 > Sub2 > Sub2 * 4 Operations: * 10€ in "Root > Sub" * 5€ in "Root > Sub > Sub" * 10€ in "Root2 > Sub2" * 5€ in "Root2 > Sub2 > Sub2" * 4 Budget entries: * "Root" [including subcategories] * "Root > Sub" [including subcategories] * "Root2" [including subcategories] * "Root2 > Sub2" [NOT including subcategories] Skrooge now shows following values for these budgets: Budget | Skrooge Value | Expected Value ---------------|---------------|--------------- "Root" | 5 € | 0 € "Root > Sub" | 15 € | 15 € "Root2" | 5 € | 5 € "Root2 > Sub2" | 10 € | 10 € ---------------|---------------|--------------- Total: | 35 € | 30 € As you can see skooge counts the 5€ in "Root > Sub > Sub" twice, once in "Root" and once in "Root > Sub". This leads to wrong budget values. If multiple budgets in the same hierarchy have the "include subcategories" flag set only the closest parent should include operation of its subcategories. E.g. The 5€ in "Root > Sub > Sub" should only be included in "Root > Sub". The attached skrooge file contains this scenario. -- You are receiving this mail because: You are watching all bug changes.