Browse Source

fix: 修复剩余数量为负数;

test-20240527
龚宝雄 7 months ago
parent
commit
a48efe625d
  1. 2
      nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillServiceImpl.java

2
nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillServiceImpl.java

@ -201,12 +201,12 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas
bill.setId(IdUtil.getStringId()); bill.setId(IdUtil.getStringId());
bill.setCode(IdUtil.getStringId()); bill.setCode(IdUtil.getStringId());
bill.setTjkwbm(bill.getKwbm()); bill.setTjkwbm(bill.getKwbm());
bill.setSysl(bill.getSl());
bill.setCzsl(BigDecimal.ZERO); bill.setCzsl(BigDecimal.ZERO);
bill.setKcsl(BigDecimal.ZERO); bill.setKcsl(BigDecimal.ZERO);
if (bill.getSl().compareTo(BigDecimal.ZERO) < 0) { if (bill.getSl().compareTo(BigDecimal.ZERO) < 0) {
bill.setSl(bill.getSl().abs()); bill.setSl(bill.getSl().abs());
} }
bill.setSysl(bill.getSl());
if (bill.getDjly() == null) { if (bill.getDjly() == null) {
bill.setDjly("1"); bill.setDjly("1");
} else { } else {

Loading…
Cancel
Save