| | |
| | | } |
| | | else |
| | | { |
| | | //判断条码库存 返回库存数量 仓库 仓位 |
| | | //判断条码库存(没在获取库存,根据发货通知单获取了原单的仓库仓位) 返回库存数量 仓库 仓位 |
| | | DAL.ClsKF_PonderationBillMain_Temp_View Tempdal = new DAL.ClsKF_PonderationBillMain_Temp_View(); |
| | | if (Tempdal.CheckQtyByBarCode(HBillID, HBillType, sBarCode, ref HWhID, ref HSPID, sRelQty, ref sRelQty)) |
| | | { |
| | |
| | | } |
| | | //销售出库、销售退库模块扫码流程 飞龙专用 |
| | | if ((HBillType == "1205" || HBillType == "1247") && oSystemParameter.omodel.WMS_CampanyName == "飞龙") //系统参数 客户定制化名称 空白为通用 |
| | | { |
| | | ////将物料条码信息写入出入库条码临时表 |
| | | //if (set_SavePonderationBillMain_Temp_FeiLong(sBarCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HRedBlueFlag, SourceFlag, HSourceBillNo, HSourceBillType, HOWNERID, HExpressNumber, ref sHSourceBillNo, ref sHSourceBillType, ref sHSupID, ref sHSupName, ref sHDeptID, ref sHDeptName, ref sHBarType, ref sErrMsg)) |
| | | //{ |
| | | // oBar.HBarType = sHBarType; |
| | | // oBar.HSourceBillType = sHSourceBillType; |
| | | // oBar.HSourceBillNo = sHSourceBillNo; |
| | | // oBar.HSupID = sHSupID; |
| | | // oBar.HSupName = sHSupName; |
| | | // oBar.HDeptID = sHDeptID; |
| | | // oBar.HDeptName = sHDeptName; |
| | | //} |
| | | //else |
| | | //{ |
| | | // sErrMsg = "!" + sErrMsg; |
| | | return null; |
| | | //} |
| | | //return oBar; |
| | | { |
| | | return null; |
| | | } |
| | | //生产入库 多源单模式 |
| | | else if (HBillType == "1202" && oSystemParameter.omodel.Kf_ProductInBill_MulSourceBill == "Y") |
| | | { |
| | | //oBar = get_CheckTypeByBarCode_MulSourceBill(sBarCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HRedBlueFlag, SourceFlag, HSourceBillNo, HSourceBillType, HOWNERID, HExpressNumber, oSystemParameter.omodel, ref sErrMsg); |
| | | //if (oBar == null) |
| | | //{ |
| | | return null; |
| | | //} |
| | | //else |
| | | //{ |
| | | // return oBar; |
| | | //} |
| | | { |
| | | return null; |
| | | } |
| | | else |
| | | { |