Beispiel #1
0
        private void PushFulfillmentToShopifyAux(AcumaticaSoShipment salesOrderShipment)
        {
            try
            {
                CorrectFulfillmentWithUnknownRef(salesOrderShipment.AcumaticaShipmentNbr);

                var syncReadiness = _fulfillmentStatusService.Validate(salesOrderShipment);

                if (syncReadiness.Success)
                {
                    PushFulfillmentToShopify(salesOrderShipment.AcumaticaShipmentNbr);
                }
            }
            catch (Exception ex)
            {
                _pushLogger.Error(ex);
                _logService.Log($"Encounter error syncing {salesOrderShipment.LogDescriptor()}");
                _syncOrderRepository
                .IncreaseOrderErrorCount(salesOrderShipment.AcumaticaSalesOrder.ShopifyOrder.ShopifyOrderId);
                throw;
            }
        }
Beispiel #2
0
 public static string FillingUnknownShopifyFulfillmentRef(
     AcumaticaSoShipment shipmentRef, ShopifyFulfillment fulfillment)
 {
     return($"Filling unknown Shopify Fulfillment reference from {shipmentRef.LogDescriptor()} with {fulfillment.LogDescriptor()}");
 }
Beispiel #3
0
 public static string ShopifyFulfillmentWithUnknownRefTooManyMatches(AcumaticaSoShipment shipmentRef)
 {
     return($"{shipmentRef.LogDescriptor()} has a unknown Shopify Fulfillment reference and too many matches");
 }
Beispiel #4
0
 public static string ShopifyFulfillmentWithUnknownRefNoMatches(AcumaticaSoShipment shipmentRef)
 {
     return($"{shipmentRef.LogDescriptor()} has a unknown Shopify Fulfillment reference and no matches could be found");
 }
Beispiel #5
0
 public static string CreateShopifyFulfillment(AcumaticaSoShipment shipmentRef)
 {
     return($"Creating Shopify Fulfillment for {shipmentRef.LogDescriptor()}");
 }
Beispiel #6
0
 public static string DetectedNewCompleteAcumaticaSoShipment(AcumaticaSoShipment shipment)
 {
     return($"Detected new {shipment.LogDescriptor()} (Complete)");
 }