yibo 7 years ago
parent
commit
4f10ec1415
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      B3SheepButcherManage/BL/Bill/StatPayBL/StatPayBL.cs

+ 2
- 0
B3SheepButcherManage/BL/Bill/StatPayBL/StatPayBL.cs View File

@ -310,6 +310,8 @@ namespace BWP.B3SheepButcherManage.BL
var = Get过磅单已结算(dmo.ID, dmo.WeightBill_ID); var = Get过磅单已结算(dmo.ID, dmo.WeightBill_ID);
var = .Item1; var = .Item1;
var = Math.Round((decimal).Item2, 2); var = Math.Round((decimal).Item2, 2);
if (dmo.WeighBill_BuyNum == null || dmo.WeighBill_BuyWeigh1 == null)
DmoUtil.RefreshDependency(dmo, "WeightBill_ID");
if ( + > (dmo.WeighBill_BuyNum ?? 0)) if ( + > (dmo.WeighBill_BuyNum ?? 0))
{ {
throw new Exception("已结算头数:" + + " 本次结算头数:" + + "不能大于 过磅单:" + dmo.WeightBill_ID + " 总收购头数:" + dmo.WeighBill_BuyNum); throw new Exception("已结算头数:" + + " 本次结算头数:" + + "不能大于 过磅单:" + dmo.WeightBill_ID + " 总收购头数:" + dmo.WeighBill_BuyNum);


Loading…
Cancel
Save