|
@@ -982,6 +982,9 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
if (tranSettlementReport.getGrainPrice()!=null){
|
|
if (tranSettlementReport.getGrainPrice()!=null){
|
|
tranSettlementReport.setDeductionAmount(String.valueOf(tranSettlementReport.getCargoDamage()*tranSettlementReport.getGrainPrice()));
|
|
tranSettlementReport.setDeductionAmount(String.valueOf(tranSettlementReport.getCargoDamage()*tranSettlementReport.getGrainPrice()));
|
|
}
|
|
}
|
|
|
|
+ else{
|
|
|
|
+ tranSettlementReport.setDeductionAmount("0");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//0<损耗<=结算重量的1‰时
|
|
//0<损耗<=结算重量的1‰时
|
|
else if(tranSettlementReport.getLossWeight()>0&&tranSettlementReport.getLossWeight()<=tranSettlementReport.getSettlementWeight()*0.001){
|
|
else if(tranSettlementReport.getLossWeight()>0&&tranSettlementReport.getLossWeight()<=tranSettlementReport.getSettlementWeight()*0.001){
|
|
@@ -3821,6 +3824,9 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
if (tranSettlementReport.getGrainPrice()!=null){
|
|
if (tranSettlementReport.getGrainPrice()!=null){
|
|
tranSettlementReport.setDeductionAmount(String.valueOf(tranSettlementReport.getCargoDamage()*tranSettlementReport.getGrainPrice()));
|
|
tranSettlementReport.setDeductionAmount(String.valueOf(tranSettlementReport.getCargoDamage()*tranSettlementReport.getGrainPrice()));
|
|
}
|
|
}
|
|
|
|
+ else{
|
|
|
|
+ tranSettlementReport.setDeductionAmount("0");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//0<损耗<=结算重量的1‰时
|
|
//0<损耗<=结算重量的1‰时
|
|
else if(tranSettlementReport.getLossWeight()>0&&tranSettlementReport.getLossWeight()<=tranSettlementReport.getSettlementWeight()*0.001){
|
|
else if(tranSettlementReport.getLossWeight()>0&&tranSettlementReport.getLossWeight()<=tranSettlementReport.getSettlementWeight()*0.001){
|