(Help) cannot remove invoice

hi master…help help
I cannot remove start invoice on dolibarr version 11.0.3…what can i do?

I did not understand what you mean by start invoice?

thanks for fast respon…sorry…for payment invoice…and want to delete…i re open the file…and click delete icon…cannot do it…

solved…closed thread

Hi,

COuld you please explain what was the problem and how you solved it ?

The problem was that he could not delete an invoice after creation.

The solution is. Go to extra up and add INVOICE_CAN_ALWAYS_BE_REMOVED and add value to 1

3 Likes

thank kyu so much. But while deleting there is an error.

Cannot delete or update a parent row: a foreign key constraint fails (u172598482_dolibarr.llx_paiement_facture, CONSTRAINT fk_paiement_facture_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid)) sql=DELETE FROM llx_facture WHERE rowid = 2

This is so useful

Thank you @marciab80.

@ssahil.5029 This is probably due to the fact that you try to remove invoices that contain payments to them. Try to delete the payments one by one and then try to remove the invoice again.