case 3717

This commit is contained in:
2019-11-20 20:04:42 +00:00
parent 26636f1d9b
commit 91daa79a53
4 changed files with 30 additions and 11 deletions

View File

@@ -1552,6 +1552,7 @@ namespace AyaNova.PlugIn.QBI
} }
CopyableMessageBox cb=new CopyableMessageBox(sb.ToString()); CopyableMessageBox cb=new CopyableMessageBox(sb.ToString());
cb.ShowDialog(); cb.ShowDialog();
@@ -1561,8 +1562,9 @@ namespace AyaNova.PlugIn.QBI
catch(Exception ex) catch(Exception ex)
{ {
w.Visible=false; w.Visible=false;
CopyableMessageBox cb=new CopyableMessageBox("ImportToAyaNova error: " + ex.Message); Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:ImportToAyaNova");//case 3717
cb.ShowDialog(); //CopyableMessageBox cb = new CopyableMessageBox("ImportToAyaNova error: \r\n" + Util.CrackException(ex));
//cb.ShowDialog();
} }
finally finally
@@ -1667,9 +1669,10 @@ namespace AyaNova.PlugIn.QBI
catch(Exception ex) catch(Exception ex)
{ {
CopyableMessageBox cb=new CopyableMessageBox("ImportToQuickBooks error: " + ex.Message); //CopyableMessageBox cb=new CopyableMessageBox("ImportToQuickBooks error: " + ex.Message);
cb.ShowDialog(); //cb.ShowDialog();
cb.Dispose(); //cb.Dispose();
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:ImportToQuickBooks");//case 3717
} }
finally finally
{ {
@@ -1868,8 +1871,12 @@ namespace AyaNova.PlugIn.QBI
catch(Exception ex) catch(Exception ex)
{ {
w.Visible=false; w.Visible=false;
CopyableMessageBox cb=new CopyableMessageBox("ImportToAyaNova error: " + ex.Message);
cb.ShowDialog(); //CopyableMessageBox cb=new CopyableMessageBox("AutoLink error: \r\n" + Util.CrackException(ex));
//cb.ShowDialog();
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:AutoLink");//case 3717
} }
finally finally
{ {
@@ -1947,8 +1954,9 @@ namespace AyaNova.PlugIn.QBI
catch (Exception ex) catch (Exception ex)
{ {
w.Visible = false; w.Visible = false;
CopyableMessageBox cb = new CopyableMessageBox("UpdateAyaNovaPartPrices error: " + ex.Message); //CopyableMessageBox cb = new CopyableMessageBox("UpdateAyaNovaPartPrices error: " + ex.Message);
cb.ShowDialog(); //cb.ShowDialog();
Util.CrackDisplayAndIntegrationLogException(ex, "QBI:Map:UpdateAyaNovaPartPrices");//case 3717
} }
finally finally
{ {

View File

@@ -33,4 +33,4 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.6.0.0")] [assembly: AssemblyVersion("7.6.0.0")]
[assembly: AssemblyFileVersion("7.6.0.0")] [assembly: AssemblyFileVersion("7.6.1.0")]

View File

@@ -52,7 +52,7 @@ namespace AyaNova.PlugIn.QBI
public string PluginVersion public string PluginVersion
{ {
get { return "7.6"; }//if patch then 7.3 (patch 1) etc get { return "7.6 (patch 1)"; }//if patch then 7.3 (patch 1) etc
} }
public string About public string About

View File

@@ -6015,6 +6015,17 @@ namespace AyaNova.PlugIn.QBI
} }
//case 3717
public static void CrackDisplayAndIntegrationLogException(Exception ex, string methodText="n/a", string extraText="n/a" ) {
string message="Exception error\r\nMethod: " + methodText + "\r\nExtra: " + extraText + "\r\n Error:" + CrackException(ex);
//Log it so we have it forever in the log
IntegrationLog.Log(QBID, message);
//display it to the user
CopyableMessageBox cb = new CopyableMessageBox(message);
cb.ShowDialog();
}
/// <summary> /// <summary>
/// Case 262 addition /// Case 262 addition