This commit is contained in:
@@ -48,16 +48,16 @@ namespace AyaNovaQBI
|
||||
{
|
||||
#region price problem
|
||||
FixPriceDifference d = new FixPriceDifference();
|
||||
d.PriceDescription = e.Cell.Row.Cells["Name"].Value.ToString() + "\r\n" +
|
||||
"Price on work order: " + ((decimal)e.Cell.Row.Cells["AyaPrice"].Value).ToString("c") + "\r\n" +
|
||||
"Price in QuickBooks: " + ((decimal)e.Cell.Row.Cells["QBPrice"].Value).ToString("c");
|
||||
d.OptionTitle = mm.Name + "\r\n" +
|
||||
"Price on work order: " + mm.AyaPrice.ToString("c") + "\r\n" +
|
||||
"Price in QuickBooks: " + mm.QBPrice.ToString("c");
|
||||
if (d.ShowDialog() == DialogResult.Cancel) return;
|
||||
//Fixup price here
|
||||
switch (d.SelectedResolution)
|
||||
{
|
||||
case "AYAONCE":
|
||||
//Add to price override list so price on workorder item part record is used
|
||||
_PartPriceOverrides.Add((Guid)e.Cell.Row.Cells["WorkorderItemPartID"].Value);
|
||||
PartPriceOverrides.Add(mm.WorkOrderItemPartId);
|
||||
break;
|
||||
case "QBONCE":
|
||||
{
|
||||
@@ -116,13 +116,13 @@ namespace AyaNovaQBI
|
||||
break;
|
||||
case "CHANGEQB":
|
||||
//Change the QB price to use the price on this workorder item part
|
||||
util.ChangeQBItemPrice(e.Cell.Row.Cells["QBListID"].Value.ToString(), (decimal)e.Cell.Row.Cells["AyaPrice"].Value);
|
||||
await util.ChangeQBItemPrice(mm.QBListID, mm.AyaPrice);
|
||||
break;
|
||||
}
|
||||
|
||||
//remove the object from the grid as it's now dealt with
|
||||
e.Cell.Row.Delete(false);
|
||||
_ChangesMade = true;
|
||||
ChangesMade = true;
|
||||
//If all done then close up
|
||||
if (grid.Rows.Count == 0)
|
||||
this.Close();
|
||||
|
||||
Reference in New Issue
Block a user