This commit is contained in:
@@ -22,7 +22,7 @@ namespace AyaNovaQBI
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Do not modify the definition of BuildAt as your changes will be discarded.
|
/// Do not modify the definition of BuildAt as your changes will be discarded.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public static DateTime BuildAt { get { return new DateTime(637916805706218221); } } //--**
|
public static DateTime BuildAt { get { return new DateTime(637916841557635620); } } //--**
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The program that time stamped it.
|
/// The program that time stamped it.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -562,7 +562,7 @@ namespace AyaNovaQBI
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
await IntegrationLog($"PFC: QB Company name= {QCompanyName}, QB Country version={QCountry}, QBVersion={QVersion}, Companyfile={QCompanyFile}");
|
await IntegrationLog($"PFC: QB Company name= {QCompanyName}, QB Country version={QCountry}, QBVersion={QVersion}, Companyfile={QCompanyFile}");
|
||||||
await PopulateQBListCache();
|
//await PopulateQBListCache();
|
||||||
await PopulateAyaListCache();
|
await PopulateAyaListCache();
|
||||||
|
|
||||||
|
|
||||||
@@ -2457,11 +2457,9 @@ namespace AyaNovaQBI
|
|||||||
w.Ops = "Reading from AyaNova...";
|
w.Ops = "Reading from AyaNova...";
|
||||||
|
|
||||||
w.Step = "Clients";
|
w.Step = "Clients";
|
||||||
//todo: qBI requires id, name and active for matching only
|
|
||||||
await PopulateAyaClientList();
|
await PopulateAyaClientList();
|
||||||
|
|
||||||
w.Step = "Vendors";
|
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();
|
await PopulateAyaVendorList();
|
||||||
|
|
||||||
w.Step = "Rates";
|
w.Step = "Rates";
|
||||||
@@ -2489,9 +2487,8 @@ namespace AyaNovaQBI
|
|||||||
|
|
||||||
public static async Task PopulateAyaClientList()
|
public static async Task PopulateAyaClientList()
|
||||||
{
|
{
|
||||||
var a = await PostAsync("pick-list/list/", $"{{ \"ayaType\":{AyaType.Customer}}}");
|
var a = await PostAsync("pick-list/list/", $"{{\"ayaType\":{(int)AyaType.Customer}}}");
|
||||||
|
_clientlist = a.ObjectResponse["data"].ToObject<List<NameIdActiveItem>>();
|
||||||
//_clientlist = ClientPickList.GetList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion ayanova clients
|
#endregion ayanova clients
|
||||||
@@ -2512,8 +2509,8 @@ namespace AyaNovaQBI
|
|||||||
|
|
||||||
public static async Task PopulateAyaVendorList()
|
public static async Task PopulateAyaVendorList()
|
||||||
{
|
{
|
||||||
//TODO: _vendorlist = VendorPickList.GetList();
|
var a = await PostAsync("pick-list/list/", $"{{\"ayaType\":{(int)AyaType.Vendor}}}");
|
||||||
await Task.CompletedTask;
|
_vendorlist = a.ObjectResponse["data"].ToObject<List<NameIdActiveItem>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion ayanova vendors
|
#endregion ayanova vendors
|
||||||
|
|||||||
Reference in New Issue
Block a user