diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index 3c25523f..440478e5 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -810,7 +810,7 @@ namespace Myshipping.Application
CreatedUserId = UserManager.UserId,
CreatedUserName = UserManager.Name
});
- if (!string.IsNullOrEmpty(entity.MBLNO)&& !string.IsNullOrEmpty(entity.YARDID))
+ if (!string.IsNullOrEmpty(entity.MBLNO) && !string.IsNullOrEmpty(entity.YARDID))
{
await UpdateMblno(entity);
}
@@ -839,7 +839,16 @@ namespace Myshipping.Application
}
entity.VERSION = Guid.NewGuid().ToString();
+ if (entity.CARRIERID != mlist.CARRIERID || entity.VOYNO != mlist.VOYNO || entity.VESSEL != mlist.VESSEL)
+ {
+ var vess = await _vesselInfo.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID && x.CARRIERID == entity.CARRIERID &&
+ x.Vessel == entity.VESSEL && x.Voyno == entity.VOYNO).FirstAsync();
+
+
+ }
+
+
await _rep.AsUpdateable(entity).IgnoreColumns(it => new
{
it.ParentId,
@@ -7555,7 +7564,7 @@ namespace Myshipping.Application
///
///
///
- private async Task AutoYardData(long bookId)
+ private async Task AutoYardData(long bookId)
{
var order = _rep.AsQueryable().Filter(null, true).First(x => x.Id == bookId);