|
|
|
@ -11971,11 +11971,19 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
carrierProductId = a.carrierProductId,
|
|
|
|
|
carrierProductSequenceId = a.carrierProductSequenceId,
|
|
|
|
|
ETD = b.departureDateTime.Value,
|
|
|
|
|
ATD = b.arrivalDateTime.Value,
|
|
|
|
|
ETD = b.departureDateTime,
|
|
|
|
|
ATD = b.arrivalDateTime,
|
|
|
|
|
vesselOperatorCarrierCode = b.vesselOperatorCarrierCode
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (b.departureDateTime.HasValue && b.arrivalDateTime.HasValue)
|
|
|
|
|
{
|
|
|
|
|
TimeSpan ts = b.arrivalDateTime.Value.Subtract(b.departureDateTime.Value);
|
|
|
|
|
var timeDiff = ts.TotalHours;
|
|
|
|
|
|
|
|
|
|
info.days = (int)Math.Ceiling(timeDiff / 24.0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(b.facilities != null)
|
|
|
|
|
{
|
|
|
|
|
info.orignCityName = b.facilities.collectionOrigin?.cityName;
|
|
|
|
@ -11993,9 +12001,6 @@ namespace Myshipping.Application
|
|
|
|
|
info.deliveryLocationType = b.facilities.deliveryDestination?.locationType;
|
|
|
|
|
info.deliveryUNLocationCode = b.facilities.deliveryDestination?.UNLocationCode;
|
|
|
|
|
info.deliveryUNRegionCode = b.facilities.deliveryDestination?.UNRegionCode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
info.vesselIMONumber = b.firstDepartureVessel?.vesselIMONumber;
|
|
|
|
|