Correction of a bug preventing the insertion of a new invoice