diff --git a/AyaNovaQBI/MainForm.Designer.cs b/AyaNovaQBI/MainForm.Designer.cs
index 00f2590..a0c394f 100644
--- a/AyaNovaQBI/MainForm.Designer.cs
+++ b/AyaNovaQBI/MainForm.Designer.cs
@@ -228,6 +228,7 @@
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.Size = new System.Drawing.Size(790, 450);
this.grid.TabIndex = 3;
+ this.grid.Visible = false;
this.grid.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grid_CellFormatting);
//
// customer
diff --git a/AyaNovaQBI/MainForm.cs b/AyaNovaQBI/MainForm.cs
index 7bf48a2..ee753aa 100644
--- a/AyaNovaQBI/MainForm.cs
+++ b/AyaNovaQBI/MainForm.cs
@@ -24,10 +24,14 @@ namespace AyaNovaQBI
StringBuilder initErrors = new StringBuilder();
if (await util.InitializeQBI(initErrors) == false)
{
- if (initErrors.Length>0)
+ if (initErrors.Length > 0)
+ {
+ if (util.LOG_AVAILABLE) await util.IntegrationLog(initErrors.ToString());
await Task.Run(() => MessageBox.Show($"AyaNova QBI was unable to start:\r\n{initErrors.ToString()}"));
+ }
Close();
}
+ grid.Visible = true;
// grid.DataSource = util.GetInvoiceableItems();
}
diff --git a/AyaNovaQBI/Timestamp.cs b/AyaNovaQBI/Timestamp.cs
index bb2994b..5ff832d 100644
--- a/AyaNovaQBI/Timestamp.cs
+++ b/AyaNovaQBI/Timestamp.cs
@@ -22,7 +22,7 @@ namespace AyaNovaQBI
///
/// Do not modify the definition of BuildAt as your changes will be discarded.
///
- public static DateTime BuildAt { get { return new DateTime(637915880684659436); } } //--**
+ public static DateTime BuildAt { get { return new DateTime(637915929965140980); } } //--**
///
/// The program that time stamped it.
///
diff --git a/AyaNovaQBI/util.cs b/AyaNovaQBI/util.cs
index e89d201..97464b1 100644
--- a/AyaNovaQBI/util.cs
+++ b/AyaNovaQBI/util.cs
@@ -38,6 +38,7 @@ namespace AyaNovaQBI
internal static AyaNovaLicense ALicense { get; set; } = null;
internal static Integration QBIntegration { get; set; } = null;
+ internal static bool LOG_AVAILABLE { get; set; } = false;
@@ -487,6 +488,7 @@ namespace AyaNovaQBI
return false;
}
+
//Get license
var r = await GetAsync("license");
ALicense = r.ObjectResponse["data"]["license"].ToObject();
@@ -528,6 +530,7 @@ namespace AyaNovaQBI
if (!await IntegrationCheck(initErrors))
return false;
+ LOG_AVAILABLE = true;
//todo: logger needs to be enabled for integration next in a convenient to call util method and then make it work in UI
await IntegrationLog("Test: boot up");