Browse Source

业务

master
yibo 7 years ago
parent
commit
b8777038ad
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs

+ 2
- 0
B3QingDaoWanFu/TypeIOCs/WeightBillTypeIoc.cs View File

@ -17,6 +17,8 @@ namespace BWP.B3QingDaoWanFu.TypeIOCs
{
if (dmo.PayTarget == null)
throw new Exception("付款对象不能为空");
if (dmo.BuyNum != dmo.FarmerDetails.Sum(x => x.Number ?? 0))
throw new Exception("收购头数与养殖户明细头数不相等");
}
}


Loading…
Cancel
Save