Beispiel #1
0
 public static bool AreSkuAndItemIdMismatched(this ShopifyVariant input)
 {
     if (!input.IsSynced())
     {
         return(false);
     }
     else
     {
         return(input.ShopifySku.StandardizedSku() != input.MatchedStockItem().ItemId.StandardizedSku());
     }
 }
Beispiel #2
0
        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);
        }