defaults für POBA/POBD beim Excel import
This commit is contained in:
parent
652644bcb0
commit
177835440c
@ -331,6 +331,9 @@ namespace ENI2.Excel
|
||||
if (((poba.TotalPersonsOnBoardUponArrival ?? 0) == 0) && poba.IsNew)
|
||||
return false;
|
||||
|
||||
if (!poba.TotalPassengersOnBoardUponArrival.HasValue) poba.TotalPassengersOnBoardUponArrival = 0;
|
||||
if (!poba.TotalStowawaysOnBoardUponArrival.HasValue) poba.TotalStowawaysOnBoardUponArrival = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -352,6 +355,9 @@ namespace ENI2.Excel
|
||||
if (((pobd.TotalPersonsOnBoardUponDeparture ?? 0) == 0) && pobd.IsNew)
|
||||
return false;
|
||||
|
||||
if (!pobd.TotalPassengersOnBoardUponDeparture.HasValue) pobd.TotalPassengersOnBoardUponDeparture = 0;
|
||||
if (!pobd.TotalStowawaysOnBoardUponDeparture.HasValue) pobd.TotalStowawaysOnBoardUponDeparture = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user