Added the new modify record form, can only pull in the Projections table and parse it. Fixed a bug in the modify record form where the first row would be marked as pending edit due to not checking the beginning cell variable correctly.
This commit is contained in:
@@ -2109,7 +2109,6 @@ namespace AdvertsingProfitControl
|
||||
{
|
||||
errorLabel.Text = @"Failed to trim the Inventory table.";
|
||||
//Delete the Projections table.
|
||||
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2123,25 +2122,15 @@ namespace AdvertsingProfitControl
|
||||
if (operationStatus == TrimmingOperationResult.FailedToTrim)
|
||||
{
|
||||
errorLabel.Text = @"Failed to trim the Actual Sales table.";
|
||||
//Delete the Projections table and the Inventory table.
|
||||
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
|
||||
dbW.DeleteApcDataEntriesByDate("Inventory", dateId, dbT.DatabaseConnectionString);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!ProcessTrimmingStatusResult(actualSalesDataGridView, "ActualSales", operationStatus, trimmedTable, updateTable))
|
||||
{
|
||||
//Delete the Projections and Inventory table.
|
||||
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
|
||||
dbW.DeleteApcDataEntriesByDate("Inventory", dateId, dbT.DatabaseConnectionString);
|
||||
errorLabel.Text = @"Failed to add actual sales to the database.";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//Delete the Projections table.
|
||||
dbW.DeleteApcDataEntriesByDate("Projections", dateId, dbT.DatabaseConnectionString);
|
||||
}
|
||||
}
|
||||
}
|
||||
//Commit the Invoice table to the database.
|
||||
|
||||
Reference in New Issue
Block a user