This commit is contained in:
2022-07-10 00:15:42 +00:00
parent 44ef578b5d
commit 70ce9a07a6
3 changed files with 320 additions and 4 deletions

View File

@@ -5680,6 +5680,7 @@ namespace AyaNovaQBI
public decimal QBPrice { get; set; }
public long WorkOrderItemPartId { get; set; }
public string QBListID { get; set; }
public string Fix { get; set; }
}
@@ -5979,6 +5980,28 @@ namespace AyaNovaQBI
if (!bDuplicate)
{
string theFix = string.Empty;
switch (Reason)
{
case MisMatchReason.NothingToInvoice:
theFix = "Nothing to invoice";
break;
case MisMatchReason.PriceDifferent:
theFix = "Fix price";
break;
case MisMatchReason.NotLinkedToQB:
if (ObjectType == AyaType.Customer)
{
theFix = "Link / Export";
}
else
{
theFix = "Link";
}
break;
default:
break;
}
Mismatches.Add(new MisMatch
{
Name = Name,
@@ -5989,6 +6012,7 @@ namespace AyaNovaQBI
QBPrice = QBPrice,
WorkOrderItemPartId = WorkOrderItemPartId,
QBListID = QBListID,
Fix = theFix
});
}
}