|
|
|
@ -2605,10 +2605,12 @@ namespace Myshipping.Application
|
|
|
|
|
foreach (var oldCtn in existsCtnList)
|
|
|
|
|
{
|
|
|
|
|
var newCtn = checkCtnDto.CtnInputs.First(c => c.Id == oldCtn.Id);
|
|
|
|
|
if (oldCtn.SEALNO != newCtn.SEALNO
|
|
|
|
|
|| oldCtn.PKGS != newCtn.PKGS
|
|
|
|
|
|| oldCtn.KGS != newCtn.KGS
|
|
|
|
|
|| oldCtn.CBM != newCtn.CBM)
|
|
|
|
|
if (
|
|
|
|
|
(!string.IsNullOrWhiteSpace(oldCtn.SEALNO) && string.IsNullOrWhiteSpace(newCtn.SEALNO))
|
|
|
|
|
|| (oldCtn.PKGS != 0 && newCtn.PKGS == 0)
|
|
|
|
|
|| (oldCtn.KGS != 0 && newCtn.KGS == 0)
|
|
|
|
|
|| (oldCtn.CBM != 0 && newCtn.CBM == 0)
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|