This commit is contained in:
2022-07-03 20:20:54 +00:00
parent a86fb4838b
commit b6e74035b2
2 changed files with 65 additions and 58 deletions

View File

@@ -498,7 +498,7 @@ namespace AyaNovaQBI
Cancel = 2
}
/*
@@ -1119,7 +1119,7 @@ namespace AyaNovaQBI
"for invoices. If you do not use Invoice templates or are not sure what they are\r\n" +
"select < Use default > from the list below.\r\n\r\n" +
"This setting is required.";
s3b.QBInvoiceTemplates = QBInvoiceTemplates;
s3b.QBInvoiceTemplates = QBInvoiceTemplates;
s3b.SelectedQBInvoiceTemplate = QDat.QBInvoiceTemplate;
if (s3b.ShowDialog() == DialogResult.Cancel)
@@ -1317,7 +1317,19 @@ namespace AyaNovaQBI
}
#endregion validate user settings
#region Integration object persistance
public static async Task SaveIntegrationObject()
{
if (QDat.IsDirty)
{
await IntegrationLog("ValidateSettings: QBI settings modified by user, saving now");
QBIntegration.IntegrationData = Newtonsoft.Json.JsonConvert.SerializeObject(QDat);
}
ApiResponse r = await PutAsync("integration", Newtonsoft.Json.JsonConvert.SerializeObject(QBIntegration));
QBIntegration.Concurrency = r.ObjectResponse["data"]["concurrency"].Value<uint>();
QDat.IsDirty = false;
}
#endregion integration object persistance
#region PFC QB side
/// <summary>