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,7 +222,10 @@ namespace bnhtrade.Core.Logic.Export
|
|||||||
if (invoiceList[i].InvoiceLineList.Count == 0)
|
if (invoiceList[i].InvoiceLineList.Count == 0)
|
||||||
{
|
{
|
||||||
invoiceList.RemoveAt(i);
|
invoiceList.RemoveAt(i);
|
||||||
i = i - 1;
|
if (i > 0)
|
||||||
|
{
|
||||||
|
i = i - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// get here add info to lines
|
// get here add info to lines
|
||||||
|
|||||||
Reference in New Issue
Block a user