If a user enters an invalid "monto" for a list, the list is marked as "done", and then raises an error when trying to create the Gasto. The Gasto is not created, but the List is no longer pending.
This is clearly wrong: the monto should be validated before marking the List as done.
If a user enters an invalid "monto" for a list, the list is marked as "done", and then raises an error when trying to create the Gasto. The Gasto is not created, but the List is no longer pending.
This is clearly wrong: the monto should be validated before marking the List as done.