This commit is contained in:
2022-07-02 00:50:20 +00:00
parent f4192f494f
commit 834bf7703d
2 changed files with 6 additions and 2 deletions

View File

@@ -37,8 +37,8 @@ namespace AyaNovaQBI
public AyaType AType { get; set; }
public string IntegrationItemId { get; set; }//foreign id (e.g. QB Id)
public string IntegrationItemName { get; set; }//foreign object's name for UI, not required if not displayed anywhere
public string IntegrationItemId { get; set; } = String.Empty;//foreign id (e.g. QB Id)
public string IntegrationItemName { get; set; } = String.Empty;//foreign object's name for UI, not required if not displayed anywhere
public DateTime? LastSync { get; set; }//optional, used by qbi
public string IntegrationItemData { get; set; }//foreign object data store for this item, unused by any AyaNova add-on's in the past but might be useful for others, expect json or xml or some other text value here

View File

@@ -106,6 +106,10 @@ namespace AyaNovaQBI
if (DisplayRow(bLinked))
{
var qbItem = util.QBIntegration.Items.FirstOrDefault(z => z.AType == _Type && z.Id == i.Id);
if (qbItem == null)
{
qbItem = new IntegrationItem();
}
_aya.Rows.Add(new object[] { i.Id, qbItem.IntegrationItemId, i.Name, qbItem.IntegrationItemName });
}