|
@@ -655,15 +655,19 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
BigDecimal netWeight=item.getNetWeight();
|
|
|
BigDecimal gramWeight=new BigDecimal(item.getGramWeight());
|
|
|
BigDecimal width=new BigDecimal(item.getWidth());
|
|
|
- BigDecimal meter=netWeight.multiply(gramWeight).multiply(width).divide(new BigDecimal("100000"));
|
|
|
- item.setMeter(meter);
|
|
|
+ if(gramWeight.intValue()==0||width.intValue()==0||netWeight.intValue()==0){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ BigDecimal meter=netWeight.multiply(gramWeight).multiply(width).divide(new BigDecimal("100000"));
|
|
|
+ item.setMeter(meter);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if(item!=null&&item.getMasterMetering().equals("KG")){
|
|
|
item.setTotalPrice(item.getNetWeight().multiply(item.getPrice()));
|
|
|
}else if(item!=null&&item.getMasterMetering().equals("M")){
|
|
|
if(item.getMeter()==null){
|
|
|
- throw new JeecgBootException("净重、门幅、克重之间有值为空,无法获取米数计算总价");
|
|
|
+ throw new JeecgBootException("净重、门幅、克重之间有值为空,无法计算米数");
|
|
|
}
|
|
|
item.setTotalPrice(item.getMeter().multiply(item.getPrice()));
|
|
|
}else if(item.getActualDeclaredQuantity()!=null){
|
|
@@ -884,7 +888,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
}else{
|
|
|
|
|
|
orderDataItem=syPackingListTailoringMapper.getOmOrPoItem("OM_MODetails", "MODetailsID='"+item.getOmpoIdItem()+"'","MODetailsID");
|
|
|
- System.out.println("orderDataItem\n"+orderDataItem);
|
|
|
Map<String,Object> orderDataItem2=purchaseWarehousingMapper.getOMMoDetails(item.getOmpoIdItem());
|
|
|
getcFree(mapItem,orderDataItem2);
|
|
|
getcFree(mapItem5,orderDataItem2);
|
|
@@ -896,7 +899,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
System.out.println("orderDataItem2\n"+orderDataItem2);
|
|
|
Map<String,Object> orderDataItem3 =syPackingListFabricMapper.getOM_MOMaterials(orderDataItem2);
|
|
|
System.out.println("orderDataItem3\n"+orderDataItem3);
|
|
|
- System.out.println("orderDataItem3\t"+orderDataItem3.size());
|
|
|
+ System.out.println("orderDataItem3.size\t"+orderDataItem3.size());
|
|
|
|
|
|
mapItem2.put("AUTOID_ALL",stringObjectMap.get("MOMaterialsID"));
|
|
|
}*/
|
|
@@ -1000,7 +1003,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
mapList5.add(map5);
|
|
|
map6.put("DETAILList",mapItems6);
|
|
|
mapList6.add(map6);
|
|
|
-
|
|
|
if(mapt.get("customerCode").equals("T020001")&&!mapt.get("account").equals("901")){
|
|
|
mapt.put("account","901");
|
|
|
}else if(mapt.get("customerCode").equals("0001")&&!mapt.get("account").equals("902")){
|