tuttle-dev / tuttle

🪰 Tuttle - time and money management for freelancers
GNU General Public License v3.0
62 stars 12 forks source link

UI: Invoices should not be editable #148

Closed clstaudt closed 1 year ago

clstaudt commented 1 year ago

Invoices are treated immutable. Rather than implementing a complex editing logic, tell the user to cancel or delete and recreate the invoice if it isn't correct.

clstaudt commented 1 year ago

That also means that view_edit_delete_popup isn't as reusable as planned. Give every data item a completely customizable popup menu instead.

vlad-ed-git commented 1 year ago

This is solvable by making edit optional in the view_edit_delete_popup and removing the edit choice on invoice. The view_edit_delete_popup is re used in each model except timetracking, and customization is done via parameters, like the other core UIs.