[Feature Request]: Hide invoice groups (numbering systems) #1596
Replies: 6 comments
|
@coderabbitai make plan. Gamble on the Context, since that is missing, but just guess that the user is trying to hide invoices from before 2026. I need "Arrange, Act, Assert" scenarios |
|
@coderabbitai how is it coming with that plan? |
Coding PlanSummary
Design ChoicesDesign Choice 1: Default value for existing invoice groups after migrationOptions Considered:
Chosen Option: 2 Rationale: Defaulting to active ensures no disruption to existing workflows—all current groups continue working as before, and administrators can selectively hide old groups. 💡 User Tips Regenerate the plan with different choices with Implementation StepsPhase 1: Database Schema and Model LayerAdd the Task 1: Create Database MigrationAdd a new SQL migration file to add the active flag column to the invoice groups table.
Task 2: Extend Invoice Groups ModelUpdate the model to support the active flag with validation, database array handling, and scope methods.
🤖 Prompt for AI agentsPhase 2: Admin Interface UpdatesUpdate the invoice groups controller and views to support filtering by active status and toggling the flag via the edit form. Task 1: Add Status Filtering to ControllerExtend the controller to support filtered views by active/inactive status.
Task 2: Update Index View with Status TabsAdd navigation tabs and a status badge column to the invoice groups list view.
Task 3: Add Active Checkbox to Form ViewAdd a checkbox to the invoice group edit form for toggling the active state.
🤖 Prompt for AI agentsPhase 3: Filter Dropdowns to Active Groups OnlyUpdate all Ajax controller methods that populate invoice group dropdowns to filter to active groups only, ensuring hidden groups don't appear in creation modals. Task 1: Update Invoice Module Ajax MethodsFilter invoice group dropdowns in invoice-related creation modals.
Task 2: Update Quote Module Ajax MethodsFilter invoice group dropdowns in quote-related creation modals.
Task 3: Update Settings ModuleFilter invoice group dropdowns in the settings page for default group selection.
🤖 Prompt for AI agentsResearchThis is a CodeIgniter 3 application with a modular MVC structure under 🚀 Next Steps🤖 All AI agent prompts combined💡 Iterate on the plan with:
|
|
@Federicod91 I've also converted your old issue to a discussion, so maybe those 2 can be merged and maybe you can clarify what groups you want to hide. |
|
I have the following invoice groups: I want to display only the Invoices 2026 group on the invoice creation page and hide all the others. |
|
See https://github.com/orgs/InvoicePlane/discussions/1584 |
Uh oh!
There was an error while loading. Please reload this page.
Affected Area or Handler
invoices create
Problem Statement
I'd like to add the ability to hide invoice groups from previous years in the invoice creation window without deleting them.
Is there a way to do this, or perhaps implement this feature in the next version?
Proposed Solution
Add a button to hide the group on the invoice groups page.
Notes or context
No response
All reactions