when after creating a credit memo this one has to be reversed due to errors trying to create a new one fails with "Credit Memo already exists". I think it should be allowed to create a new one if the first try got reversed.
Lowering priority as the second credit memo can be created manually.
I have not reviewed code, but maybe the solution is easy, when reversing the credit memo, clear the field that makes the relationship in the original invoice.
I was not sure, when to assign which priority. Perhaps we could add a short info in https://wiki.idempiere.org/en/Bug_Reporting_Guidelines to give an idea.
I just had a look at IncoiceCreateCreditMemo.java and saw that the old credit memo is read before issuing the error. So I think the best way could be to simply ignore the already assigned RelatedInvoice_ID if it shows that the credit memo is not valid any longer. This way the connection doesn’t get lost until a new credit memo is created.
Hi , priorities are described at https://wiki.idempiere.org/en/Bug_Triage (would be good to add a link in the page you linked).
Your solution sounds OK also, just I'm not sure if is worthy to preserve a link to a document that is not valid anymore. But in principle both would work.
Hi , I think it’s easier to find out what happened to a credit memo if somebody else did the reversing. But the main reason to suggest this solution is, that it’s least intrusive.
Yes, both solutions look fine, I agree with any of those.