Front Page › Forums › Accounting › Orphaned invoice can't be approved, void or deleted › Reply To: Orphaned invoice can't be approved, void or deleted
October 3, 2017 at 10:54 pm
#9944
juansh
Participant
Thanks for your help.
Just a quick note which may help with a fix for this issue. After adding “void” to the status field which was previously NULL in the database entry, I was able to see the delete option in WordPress Admin the same as other void invoices. I’m guessing that it is due to a string match query in the code for the status field. Maybe a quick fix would be to do the following check:
if (!status || status === “void”) { // then show delete option below invoice }
I could be talking nonsense but hopefully it helps 🙂