bug
This commit is contained in:
@@ -417,8 +417,17 @@ namespace Tnb.ProductionMgr
|
|||||||
// throw new Exception("该物料不是生产bom投入物料,不能签收");
|
// throw new Exception("该物料不是生产bom投入物料,不能签收");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
PrdMaterialReceiptD? detail = await db.Queryable<PrdMaterialReceiptD>()
|
PrdMaterialReceiptD? detail = null;
|
||||||
.Where(x => x.member_carry_code == input.carry_code && x.is_all_feeding == 0).FirstAsync();
|
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)
|
||||||
|
{
|
||||||
|
detail = await db.Queryable<PrdMaterialReceiptD>().Where(x => x.carry_id == carry.id && x.is_all_feeding == 0).FirstAsync();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
detail = await db.Queryable<PrdMaterialReceiptD>().Where(x => x.member_carry_code == input.carry_code && x.is_all_feeding == 0).FirstAsync();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (prdMaterialReceiptH == null)
|
if (prdMaterialReceiptH == null)
|
||||||
{
|
{
|
||||||
prdMaterialReceiptH = await db.Queryable<PrdMaterialReceiptH>()
|
prdMaterialReceiptH = await db.Queryable<PrdMaterialReceiptH>()
|
||||||
|
|||||||
Reference in New Issue
Block a user