Bug Fix: Exception on deletion of first invoice in list

This commit is contained in:
Bobbie Hodgetts
2021-05-07 11:45:42 +01:00
parent d8ebd29c47
commit e054278cdd

View File

@@ -222,9 +222,12 @@ namespace bnhtrade.Core.Logic.Export
if (invoiceList[i].InvoiceLineList.Count == 0)
{
invoiceList.RemoveAt(i);
if (i > 0)
{
i = i - 1;
}
}
}
// get here add info to lines
else
{