mirror of
https://gitee.com/victor123/jjjerp-java.git
synced 2025-12-07 04:15:35 +08:00
修复售后单
This commit is contained in:
parent
97c8db8adb
commit
6b4854d1f5
@ -1275,8 +1275,13 @@ public class BillHeadServiceImpl extends BaseServiceImpl<BillHeadMapper, BillHea
|
|||||||
//检查单据属性
|
//检查单据属性
|
||||||
private void checkHead(BillHead head) {
|
private void checkHead(BillHead head) {
|
||||||
//售后类型(0无售后 10退货退款 20换货 30仅退款 40补发 50 维修 60 其他)
|
//售后类型(0无售后 10退货退款 20换货 30仅退款 40补发 50 维修 60 其他)
|
||||||
if(BillTypeEnum.SHSQD.getValue().equals(head.getBillType()) && head.getRefundType() == 30){
|
if(BillTypeEnum.SHSQD.getValue().equals(head.getBillType())){
|
||||||
head.setDepotId(0L);
|
if(head.getRefundType() == null){
|
||||||
|
throw new RuntimeException("售后类型不能为空");
|
||||||
|
}
|
||||||
|
if(head.getRefundType() == 30){
|
||||||
|
head.setDepotId(0L);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(head.getDepotId() == null){
|
if(head.getDepotId() == null){
|
||||||
throw new BusinessException("仓库不能为空");
|
throw new BusinessException("仓库不能为空");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user