Browse Source

更新

dev_DY_CC
周红军 12 months ago
parent
commit
47e2738d43
  1. 19
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Jobs/ThirdLocationJobs/ThirdLocationJobManager.cs
  2. 1
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Jobs/ThirdLocationJobAutoMapperProfile.cs

19
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Jobs/ThirdLocationJobs/ThirdLocationJobManager.cs

@ -50,14 +50,27 @@ public class ThirdLocationJobManager : SfsJobManagerBase<ThirdLocationJob, Third
bool isDone = false;
var jobDetail = entity.Details.FirstOrDefault(p => p.ItemCode == entity.Details[0].ItemCode);
if (jobDetail.RecommendQty == jobDetail.HandledQty + input.Details[0].HandledQty)
//if (jobDetail.RecommendQty == jobDetail.HandledQty + input.Details[0].HandledQty)
//{
// jobDetail.HandledQty += input.Details[0].HandledQty;
// isDone = true;
//}
//else
//{
// jobDetail.HandledQty = input.Details[0].HandledQty;
// isDone = false;
//}
if (jobDetail.RecommendQty == input.Details[0].HandledQty)
{
jobDetail.HandledQty += input.Details[0].HandledQty;
jobDetail.HandledQty += input.Details[0].HandledQty;
jobDetail.RecommendQty= jobDetail.RecommendQty- input.Details[0].HandledQty;
isDone = true;
}
else
{
jobDetail.HandledQty = input.Details[0].HandledQty;
jobDetail.HandledQty += input.Details[0].HandledQty;
jobDetail.RecommendQty = jobDetail.RecommendQty - input.Details[0].HandledQty;
isDone = false;
}

1
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Jobs/ThirdLocationJobAutoMapperProfile.cs

@ -45,6 +45,7 @@ public partial class StoreEventAutoMapperProfile : Profile
.ForMember(x => x.ToLocationCode, y => y.MapFrom(d => d.ToLocationCode))
.Ignore(x => x.ToLocationArea)
.Ignore(x => x.ProdLine)
.Ignore(x => x.WorkStation)
.Ignore(x => x.ToLocationGroup)
.Ignore(x => x.ToLocationErpCode)
;

Loading…
Cancel
Save