fix:出库校验是否填写物流公司和预估运费
This commit is contained in:
@@ -228,7 +228,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
*/
|
||||
StIvtIostorinv mstDao = this.getById(whereJson.getLongValue("iostorinv_id"));
|
||||
|
||||
// 如果是发货出库则判断运费和物流公司不能为空
|
||||
/*// 如果是发货出库则判断运费和物流公司不能为空
|
||||
if (mstDao.getBill_type().equals(IOSEnum.OUT_TYPE.code("发货出库"))) {
|
||||
|
||||
if (ObjectUtil.isEmpty(mstDao.getTrans_code())) {
|
||||
@@ -239,7 +239,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
throw new BadRequestException("预估运费不能为空!");
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
/*
|
||||
* 查询生成和未分配完的明细, 条件:明细状态小于等于分配中、未分配数大于0
|
||||
@@ -327,7 +327,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
public void manualDiv(JSONObject whereJson) {
|
||||
StIvtIostorinv mstDao = this.getById(whereJson.getJSONObject("row").getString("iostorinv_id"));
|
||||
|
||||
// 如果是发货出库则判断运费和物流公司不能为空
|
||||
/*// 如果是发货出库则判断运费和物流公司不能为空
|
||||
if (mstDao.getBill_type().equals(IOSEnum.OUT_TYPE.code("发货出库"))) {
|
||||
|
||||
if (ObjectUtil.isEmpty(mstDao.getTrans_code())) {
|
||||
@@ -337,7 +337,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
if (ObjectUtil.isEmpty(mstDao.getEstimated_freight())) {
|
||||
throw new BadRequestException("预估运费不能为空!");
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
/*
|
||||
* 查询生成和未分配完的明细, 条件:明细状态小于等于分配中、未分配数大于0
|
||||
|
||||
@@ -1546,7 +1546,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
|
||||
// 如果是发货出库则判断运费和物流公司不能为空
|
||||
String bill_type = jo_mst.getString("bill_type");
|
||||
if (StrUtil.equals(bill_type, "1001")) {
|
||||
/*if (StrUtil.equals(bill_type, "1001")) {
|
||||
String trans_code = jo_mst.getString("trans_code");
|
||||
String estimated_freight = jo_mst.getString("estimated_freight");
|
||||
|
||||
@@ -1557,7 +1557,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
throw new BadRequestException("预估运费不能为空");
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
//查询生成和未分配完的明细
|
||||
JSONArray dtls = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||
@@ -1827,7 +1827,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
|
||||
// 如果是发货出库则判断运费和物流公司不能为空
|
||||
String bill_type = jo_mst.getString("bill_type");
|
||||
if (StrUtil.equals(bill_type, "1001")) {
|
||||
/*if (StrUtil.equals(bill_type, "1001")) {
|
||||
String trans_code = jo_mst.getString("trans_code");
|
||||
String estimated_freight = jo_mst.getString("estimated_freight");
|
||||
|
||||
@@ -1838,7 +1838,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
throw new BadRequestException("预估运费不能为空");
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
//查询生成和未分配完的明细
|
||||
JSONArray dtls = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||
@@ -2110,7 +2110,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
|
||||
// 如果是发货出库则判断运费和物流公司不能为空
|
||||
String bill_type = jo_mst.getString("bill_type");
|
||||
if (StrUtil.equals(bill_type, "1001")) {
|
||||
/*if (StrUtil.equals(bill_type, "1001")) {
|
||||
String trans_code = jo_mst.getString("trans_code");
|
||||
String estimated_freight = jo_mst.getString("estimated_freight");
|
||||
|
||||
@@ -2121,7 +2121,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
throw new BadRequestException("预估运费不能为空");
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
//查询生成和未分配完的明细
|
||||
JSONArray dtls = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||
@@ -4406,7 +4406,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
|
||||
// 如果是发货出库则判断运费和物流公司不能为空
|
||||
String bill_type = jo_mst.getString("bill_type");
|
||||
if (StrUtil.equals(bill_type, "1001")) {
|
||||
/*if (StrUtil.equals(bill_type, "1001")) {
|
||||
String trans_code = jo_mst.getString("trans_code");
|
||||
String estimated_freight = jo_mst.getString("estimated_freight");
|
||||
|
||||
@@ -4417,7 +4417,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
throw new BadRequestException("预估运费不能为空");
|
||||
}
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
//查询生成和未分配完的明细
|
||||
JSONObject dtl = WQL.getWO("QST_IVT_CHECKOUTBILL")
|
||||
|
||||
Reference in New Issue
Block a user