|
@@ -113,7 +113,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
entity.setDistributionPoint(detailsItem.getDistributionPoint());
|
|
|
entity.setPurOrSubOrder(detailsItem.getPurOrSubOrder());
|
|
|
entity.setFactoryUnitPrice(detailsItem.getFactoryUnitPrice());
|
|
|
- if(entity.getMasterMetering().equals("KG")){
|
|
|
+ if(entity!=null&&entity.getMasterMetering().equals("KG")){
|
|
|
entity.setTotalPrice(entity.getNetWeight().subtract(entity.getPrice()));
|
|
|
}else{
|
|
|
entity.setTotalPrice(entity.getActualDeclaredQuantity().subtract(entity.getPrice()));
|
|
@@ -150,7 +150,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
|
|
|
s1.setExcessQuantity(entity.getInventoryQuantity().subtract(s1.getSurplusQuantity()));
|
|
|
syShippingDetailsItemMapper.updateById(s1);*/
|
|
|
- if(entity.getMasterMetering().equals("KG")){
|
|
|
+ if(entity!=null&&entity.getMasterMetering().equals("KG")){
|
|
|
entity.setTotalPrice(entity.getNetWeight().subtract(entity.getPrice()));
|
|
|
}else{
|
|
|
entity.setTotalPrice(entity.getActualDeclaredQuantity().subtract(entity.getPrice()));
|