|
|
@@ -4794,7 +4794,7 @@ namespace Business.Replenishment
|
|
|
var nbrList = _nbrMaster.Select(x => x.Domain == param.factoryId.ToString() && nbrType.Contains(x.Type) && x.Status.ToUpper() != "C").ToList();
|
|
|
if (nbrList.Any())
|
|
|
{
|
|
|
- var nbrDtlList = _nbrDetail.Select(x => nbrList.Select(c => c.RecID).Contains(x.NbrRecID) && locationList.Contains(x.LocationFrom) && x.Status.ToUpper() != "C").ToList();
|
|
|
+ var nbrDtlList = _nbrDetail.Select(x => nbrList.Select(c => c.RecID).Contains(x.NbrRecID) && locationList.Contains(x.LocationFrom) && x.Status.ToUpper() != "C" && x.IsActive).ToList();
|
|
|
if (nbrDtlList.Any())
|
|
|
{
|
|
|
nbrDtlList.ForEach(x => {
|
|
|
@@ -4817,7 +4817,7 @@ namespace Business.Replenishment
|
|
|
if (wodNbrList.Any())
|
|
|
{
|
|
|
//WOD是退料
|
|
|
- var wodNbrDtlList = _nbrDetail.Select(x => wodNbrList.Select(c => c.RecID).Contains(x.NbrRecID) && locationList.Contains(x.LocationTo) && x.Status.ToUpper() != "C").ToList();
|
|
|
+ var wodNbrDtlList = _nbrDetail.Select(x => wodNbrList.Select(c => c.RecID).Contains(x.NbrRecID) && locationList.Contains(x.LocationTo) && x.Status.ToUpper() != "C" && x.IsActive).ToList();
|
|
|
if (wodNbrDtlList.Any())
|
|
|
{
|
|
|
wodNbrDtlList.ForEach(x => {
|