Commit cd0cb1bf authored by 李驰骋's avatar 李驰骋

销售出库字段调整

parent 378062c2
...@@ -60,9 +60,10 @@ public class CopthService { ...@@ -60,9 +60,10 @@ public class CopthService {
copth.setTh003(StringUtils.leftPad(i+"",4, "0")); copth.setTh003(StringUtils.leftPad(i+"",4, "0"));
copth.setTh004(s.getMaterialNo()); copth.setTh004(s.getMaterialNo());
copth.setTh005(s.getMaterialName()); copth.setTh005(s.getMaterialName());
copth.setTh006(s.getUnit());
copth.setTh007(s.getWarehouse()); copth.setTh007(s.getWarehouse());
copth.setTh008(s.getOutQuantity()); copth.setTh008(s.getOutQuantity());
copth.setTh009(s.getUnit());
copth.setTh006(copto.getTo009());
copth.setTh014(copto.getTo004()); copth.setTh014(copto.getTo004());
copth.setTh015(copto.getTo005()); copth.setTh015(copto.getTo005());
copth.setTh016(copto.getTo006()); copth.setTh016(copto.getTo006());
......
...@@ -44,10 +44,10 @@ public class CoptoService { ...@@ -44,10 +44,10 @@ public class CoptoService {
list.forEach(s->{ list.forEach(s->{
StockSaleOutDto.StockSaleOutDetail saleOutDetail = new StockSaleOutDto.StockSaleOutDetail(); StockSaleOutDto.StockSaleOutDetail saleOutDetail = new StockSaleOutDto.StockSaleOutDetail();
if(copthQuantityMap.containsKey(StrUtil.trim(s.getTo007()))){ if(copthQuantityMap.containsKey(StrUtil.trim(s.getTo007()))){
BigDecimal tempQuantity = NumberUtil.max(s.getTo017().subtract(copthQuantityMap.get(StrUtil.trim(s.getTo007()))), BigDecimal.ZERO); BigDecimal tempQuantity = NumberUtil.max(s.getTo024().subtract(copthQuantityMap.get(StrUtil.trim(s.getTo007()))), BigDecimal.ZERO);
saleOutDetail.setDeliverQuantity(tempQuantity); saleOutDetail.setDeliverQuantity(tempQuantity);
}else{ }else{
saleOutDetail.setDeliverQuantity(s.getTo017()); saleOutDetail.setDeliverQuantity(s.getTo024());
} }
saleOutDetail.setPlanOutDate(s.getUdf01()); saleOutDetail.setPlanOutDate(s.getUdf01());
saleOutDetail.setMaterialName(StrUtil.trim(s.getTo008())); saleOutDetail.setMaterialName(StrUtil.trim(s.getTo008()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment