public static bool AreSkuAndItemIdMismatched(this ShopifyVariant input) { if (!input.IsSynced()) { return(false); } else { return(input.ShopifySku.StandardizedSku() != input.MatchedStockItem().ItemId.StandardizedSku()); } }
public static bool AreTaxesMismatched(this ShopifyVariant input, MonsterSetting settings) { if (!input.IsSynced()) { return(false); } if (input.ShopifyIsTaxable && input.MatchedStockItem().AcumaticaTaxCategory == settings.AcumaticaTaxableCategory) { return(false); } if (!input.ShopifyIsTaxable && input.MatchedStockItem().AcumaticaTaxCategory == settings.AcumaticaTaxExemptCategory) { return(false); } return(true); }