[GNC] delete invoice or bill

Derek Atkins derek at ihtfp.com
Tue Oct 22 16:13:52 EDT 2019


On Tue, October 22, 2019 3:44 pm, Mark Hedges via gnucash-user wrote:
> On Fri, Jun 21, 2019 at 2:23 AM Adrien Monteleone
> <adrien.monteleone at lusfiber.net> wrote:
>> > On Jun 20, 2019, at 10:16 AM, Contact at Starfire Energy
>> <contact at StarfireEnergy.com> wrote:
>> >
>> > Is there a way to delete an invoice created in error or a bill created
>> in error?
>>
>> Sorry, they can’t be deleted.
>
> Why?

Because the logic to ensure that an invoice or bill can be safely removed
is extremely complex.  So complex that it was much easier to just prevent
deletion.  If you don't like it, patches are always welcome.

>> The recommended procedure is to change the bill/invoice number to
>> something like “use next”. You can additionally create a placeholder
>> customer and vendor to assign them to if you like.
>>
>> Then just try to remember at some point to search for any bills/invoices
>> numbered “use next” and edit them to reflect a real new bill/invoice.
>
> Instead of letting people correct bad data?

This is how you correct bad data -- by re-using the underlying data
structure.  The assumption is that the user will make more invoices, so
re-using vs creating is not an extreme burden.

Again, if you don't like this, patches are always welcome.

> Mark

> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

-derek
-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-user mailing list