In the function Import Bills & Invoices, if the import file contains existing invoices, the user is asked, once per import session, to confirm that update of existing invoices is expected. But if an earlier row in the import file was for a new invoice, GnuCash does not request confirmation from the user if subsequent rows are for existing invoices.
Created attachment 373109 [details] Import files to illustrate the bug Using book with common and business accounts, dd/mm/yyyy date format, vendor 2001. The first file will import an invoice, so that we have an existing invoice. The second file contains a row for a new invoice, and a row for an update of our existing invoice. GnuCash updates the invoice without confirmation from the user. (If the order of the two data were reversed, GnuCash *would* ask for that confirmation.)
Created attachment 373110 [details] Import file 2 to illustrate the bug See comment at previous attachment.
Pull request #457 merged into maint, https://github.com/Gnucash/gnucash/pull/457.