Do not change PRE72H on Excel import for transit shipcalls

This commit is contained in:
Daniel Schick 2025-09-29 11:38:23 +02:00
parent e3b12ae531
commit d649c4ac16

View File

@ -1007,6 +1007,8 @@ namespace ENI2.Excel
STAT stat = statMessage.Elements[0] as STAT;
ScanMessage(stat, reader);
if (!messageCore.IsTransit) // let's not do this for transit messages
{
foreach (Message preMessage in messages)
{
if (preMessage.MessageNotificationClass == Message.NotificationClass.PRE72H)
@ -1019,6 +1021,7 @@ namespace ENI2.Excel
}
}
}
}
if (!stat.Flag.IsNullOrEmpty()) stat.Flag = stat.Flag.ToUpper();
if (!stat.PortOfRegistry.IsNullOrEmpty()) stat.PortOfRegistry = stat.PortOfRegistry.ToUpper();