This commit is contained in:
2022-06-24 23:16:44 +00:00
parent 6b018459f3
commit 7429251f1c
2 changed files with 6 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ namespace AyaNovaQBI
/// <remarks>
/// Do not modify the definition of BuildAt as your changes will be discarded.
/// </remarks>
public static DateTime BuildAt { get { return new DateTime(637916805706218221); } } //--**
public static DateTime BuildAt { get { return new DateTime(637916841557635620); } } //--**
/// <summary>
/// The program that time stamped it.
/// </summary>

View File

@@ -562,7 +562,7 @@ namespace AyaNovaQBI
else
{
await IntegrationLog($"PFC: QB Company name= {QCompanyName}, QB Country version={QCountry}, QBVersion={QVersion}, Companyfile={QCompanyFile}");
await PopulateQBListCache();
//await PopulateQBListCache();
await PopulateAyaListCache();
@@ -2457,11 +2457,9 @@ namespace AyaNovaQBI
w.Ops = "Reading from AyaNova...";
w.Step = "Clients";
//todo: qBI requires id, name and active for matching only
await PopulateAyaClientList();
w.Step = "Vendors";
//TODO: QBI requires id, name and active status for vendors only, it used to need vendortype but they don't exist in v8, maybe tags sb fetched?
await PopulateAyaVendorList();
w.Step = "Rates";
@@ -2489,9 +2487,8 @@ namespace AyaNovaQBI
public static async Task PopulateAyaClientList()
{
var a = await PostAsync("pick-list/list/", $"{{ \"ayaType\":{AyaType.Customer}}}");
//_clientlist = ClientPickList.GetList();
var a = await PostAsync("pick-list/list/", $"{{\"ayaType\":{(int)AyaType.Customer}}}");
_clientlist = a.ObjectResponse["data"].ToObject<List<NameIdActiveItem>>();
}
#endregion ayanova clients
@@ -2512,8 +2509,8 @@ namespace AyaNovaQBI
public static async Task PopulateAyaVendorList()
{
//TODO: _vendorlist = VendorPickList.GetList();
await Task.CompletedTask;
var a = await PostAsync("pick-list/list/", $"{{\"ayaType\":{(int)AyaType.Vendor}}}");
_vendorlist = a.ObjectResponse["data"].ToObject<List<NameIdActiveItem>>();
}
#endregion ayanova vendors