This commit is contained in:
@@ -891,7 +891,7 @@ namespace AyaNovaQBI
|
||||
handleCheckOfObjectTypeMenuItem(sender, e);
|
||||
if (_Type == AyaType.Customer) return;
|
||||
_Type = AyaType.Customer;
|
||||
this.Text = "Map / Import - Customers";
|
||||
this.Text = "Customers";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = true;
|
||||
Initialize();
|
||||
}
|
||||
@@ -901,7 +901,7 @@ namespace AyaNovaQBI
|
||||
handleCheckOfObjectTypeMenuItem(sender, e);
|
||||
if (_Type == AyaType.ServiceRate) return;
|
||||
_Type = AyaType.ServiceRate;
|
||||
this.Text = "Map / Import - Service rates";
|
||||
this.Text = "Service rates";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = false;
|
||||
Initialize();
|
||||
}
|
||||
@@ -911,7 +911,7 @@ namespace AyaNovaQBI
|
||||
handleCheckOfObjectTypeMenuItem(sender, e);
|
||||
if (_Type == AyaType.TravelRate) return;
|
||||
_Type = AyaType.TravelRate;
|
||||
this.Text = "Map / Import - Travel rates";
|
||||
this.Text = "Travel rates";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = false;
|
||||
Initialize();
|
||||
}
|
||||
@@ -921,7 +921,7 @@ namespace AyaNovaQBI
|
||||
handleCheckOfObjectTypeMenuItem(sender, e);
|
||||
if (_Type == AyaType.Part) return;
|
||||
_Type = AyaType.Part;
|
||||
this.Text = "Map / Import - Parts";
|
||||
this.Text = "Parts";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = true;
|
||||
Initialize();
|
||||
if (!util.QBIntegration.Items.Any(z => z.AType == AyaType.Vendor))
|
||||
@@ -942,7 +942,7 @@ namespace AyaNovaQBI
|
||||
handleCheckOfObjectTypeMenuItem(sender, e);
|
||||
if (_Type == AyaType.Vendor) return;
|
||||
_Type = AyaType.Vendor;
|
||||
this.Text = "Map / Import - Vendors";
|
||||
this.Text = "Vendors";
|
||||
updateSelectedItemsToolStripMenuItem.Visible = true;
|
||||
Initialize();
|
||||
}
|
||||
@@ -963,17 +963,7 @@ namespace AyaNovaQBI
|
||||
}
|
||||
|
||||
|
||||
private void gridAya_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void gridQB_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void gridQB_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
@@ -997,29 +987,13 @@ namespace AyaNovaQBI
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion utility stuff
|
||||
|
||||
|
||||
|
||||
private async void updateSelectedItemsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Parts in v7 default update would do price / cost both ways in addition to the part description and other fields
|
||||
// however the user could go to map and select to *only* update the prices in AyaNova from QB but not the other fields
|
||||
//for v8 going to simplify this to update all by default still for selected items or optionally pick "Price and cost only"
|
||||
|
||||
//Parts either grid separate checkbox "update Price and cost only" which does that otherwise does price/cost and other fields both ways
|
||||
|
||||
//customers either grid offer to update the opposite
|
||||
|
||||
//vendors either grid offer to update the opposite, this is new functionality
|
||||
|
||||
//Rates are not offered - same as v7
|
||||
|
||||
|
||||
|
||||
|
||||
if (gridAya.SelectedRows.Count == 0 && gridQB.SelectedRows.Count == 0) return;
|
||||
bool IsAyaGrid = false;
|
||||
IsAyaGrid = gridAya.SelectedRows.Count > 0;
|
||||
|
||||
Reference in New Issue
Block a user