Fixed more bugs with the parsing engine, a crash bug in the update inventory method, and a crash bug in the trimming operations. Deleting a row now marks all rows under it as dirty.

This commit is contained in:
2017-01-21 01:39:28 -06:00
parent ab00ad2598
commit 12239bce23
7 changed files with 172 additions and 21 deletions
+1 -2
View File
@@ -360,7 +360,7 @@ namespace AdvertsingProfitControl
oleDbTransaction.Commit();
foreach (DataRow row in table.Rows)
{
var rowId = RetrieveRowId(table.TableName, int.Parse(row[4].ToString()), int.Parse(row[8].ToString()), int.Parse(row[7].ToString()));
var rowId = int.Parse(row[0].ToString());
if (int.Parse(row[7].ToString()) != 0)
{
//Account for the ad special row.
@@ -408,7 +408,6 @@ namespace AdvertsingProfitControl
return status;
}
public DbTableWriterStatus ProccessInvoiceTable(DataGridView table, int dateId, string connectionString)
{
var status = new DbTableWriterStatus();