diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs index c2d9e2f2..d7ee75c1 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs @@ -115,7 +115,7 @@ namespace Tnb.ProductionMgr carry_name = b.carry_name, children = SqlFunc.Subqueryable() .LeftJoin((c, d) => c.material_id == d.id) - .Where((c, d) => a.member_carry_code == c.member_carry_code && c.is_all_feeding == 0) + .Where((c, d) => a.member_carry_code == c.member_carry_code && c.is_all_feeding == 0 && ids.Contains(c.material_receipt_id)) .ToList((c, d) => new CarryCodeDetailOutput() { unit_id = d.unit_id,