mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 06:27:15 +00:00
Bug Fix: Exception on deletion of first invoice in list
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user