diff --git a/UniApiGroup/Controller/OdbcApiWmsController.cs b/UniApiGroup/Controller/OdbcApiWmsController.cs index 4c96ff5..9052f99 100644 --- a/UniApiGroup/Controller/OdbcApiWmsController.cs +++ b/UniApiGroup/Controller/OdbcApiWmsController.cs @@ -375,7 +375,7 @@ string _recvQty = "SELECT RecQty, AsnBillNum, PoLine, PartCode, PoBillNum,Batc if (_first != null && _fs!=null) { - _first.Extend1 = (_fs.RecQty.Value + qadData.xxwms_rc_qty_total).ToString(); + _first.Extend1 = (_fs.RecQty!=null?_fs.RecQty.Value:0 + qadData.xxwms_rc_qty_total).ToString(); wdb.TB_ASN_DETAIL.AddOrUpdate(_first); } }