This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user