private static void CopyRecordFromMyob(AMSDbContext connect, MYOBCustomer jtItem, Customer item)
        {
            jtItem.CompanyName  = item.IsIndividual ? HandyContactFunctions.FormattedLastAndFirstName(item.LastName, item.FirstName) : item.CompanyName;
            jtItem.DisplayID    = item.DisplayID;
            jtItem.FirstName    = item.FirstName;
            jtItem.LastName     = item.LastName;
            jtItem.IsIndividual = item.IsIndividual;
            jtItem.IsActive     = item.IsActive;
            jtItem.RowVersion   = item.RowVersion;
            jtItem.Uid          = item.UID;
            jtItem.LastModified = item.LastModified;
            jtItem.URI          = item.URI.ToString();



            if (item.SellingDetails?.InvoiceDelivery != null)
            {
                jtItem.DocumentAction = (DocumentAction)item.SellingDetails.InvoiceDelivery;
            }
            SyncAddresses(connect, jtItem, item);
        }
 private static string MakeAlternateKey(Customer customer)
 {
     return(customer.IsIndividual ? customer.CompanyName : HandyContactFunctions.FormattedLastAndFirstName(customer.LastName, customer.FirstName));
 }