fix:出库校验是否填写物流公司和预估运费

This commit is contained in:
zhouz
2025-08-25 13:42:20 +08:00
parent 3e9551ddc3
commit 00163df4f8
2 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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")