byrokrat / giroapp

Command line app for managing autogiro donations.
GNU General Public License v3.0
4 stars 2 forks source link

State::ERROR blocks adding new mandates for a payer number #151

Closed hanneskod closed 6 years ago

hanneskod commented 6 years ago

When a mandate has state ERROR and you try to add a new mandare with the same payer number (with a different account number) it is denied. The state of the old mandate must first explicitly be set to INACTIVE before a new can be added.

Giroapp could be more helpful here. Inform the user what needs to be done? Ask if the state of the old mandate should automatically be inactivated? Be even more invasive?

hanneskod commented 6 years ago

Exception message could contain an example command to run for more information.

show 12345678 --filter all --format list

But for that to work show needs to be able to show multiple donors (if there are many definitions..)

Lets write so that show loads multiple donors, but by default filters on active...