|
@@ -962,6 +962,7 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
if (tranSettlementReport!=null) {
|
|
if (tranSettlementReport!=null) {
|
|
tranSettlementReport.setUnloadingWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setUnloadingWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setUnloadingImg(warehouseInOutInfo.getAddressUrl());
|
|
tranSettlementReport.setUnloadingImg(warehouseInOutInfo.getAddressUrl());
|
|
|
|
+// tranSettlementReport.setServiceCharge(20d);
|
|
//损耗
|
|
//损耗
|
|
tranSettlementReport.setLossWeight(tranSettlementReport.getLoadingWeight() - tranSettlementReport.getUnloadingWeight());
|
|
tranSettlementReport.setLossWeight(tranSettlementReport.getLoadingWeight() - tranSettlementReport.getUnloadingWeight());
|
|
//汽运类型
|
|
//汽运类型
|
|
@@ -977,11 +978,21 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setDeductionAmount("0");
|
|
tranSettlementReport.setDeductionAmount("0");
|
|
//应付=单价x结算重量-扣款
|
|
//应付=单价x结算重量-扣款
|
|
tranSettlementReport.setAmountIngPayable(tranSettlementReport.getTransportPrice() * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(tranSettlementReport.getTransportPrice() * tranSettlementReport.getSettlementWeight());
|
|
|
|
+ //实付金额
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranSettlementReport.getTransportPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
} else {
|
|
} else {
|
|
tranSettlementReport.setDeductionAmount(String.format("%.2f", (Float.valueOf(tranSettlementReport.getLoadingWeight() - tranSettlementReport.getUnloadingWeight()) - (tranSettlementReport.getLoadingWeight() / 1000)) * Float.valueOf(tranSettlementReport.getTransportPrice())));
|
|
tranSettlementReport.setDeductionAmount(String.format("%.2f", (Float.valueOf(tranSettlementReport.getLoadingWeight() - tranSettlementReport.getUnloadingWeight()) - (tranSettlementReport.getLoadingWeight() / 1000)) * Float.valueOf(tranSettlementReport.getTransportPrice())));
|
|
//应付=单价x结算重量-扣款
|
|
//应付=单价x结算重量-扣款
|
|
tranSettlementReport.setAmountIngPayable(tranSettlementReport.getTransportPrice() * tranSettlementReport.getSettlementWeight() - Float.valueOf(tranSettlementReport.getDeductionAmount()));
|
|
tranSettlementReport.setAmountIngPayable(tranSettlementReport.getTransportPrice() * tranSettlementReport.getSettlementWeight() - Float.valueOf(tranSettlementReport.getDeductionAmount()));
|
|
|
|
+ //实付金额
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranSettlementReport.getTransportPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
}
|
|
}
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tranSettlementReportService.updateById(tranSettlementReport);
|
|
tranSettlementReportService.updateById(tranSettlementReport);
|
|
@@ -1489,10 +1500,23 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setContractNo(warehouseInOutInfo.getContractNo());
|
|
tranSettlementReport.setContractNo(warehouseInOutInfo.getContractNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
|
+ tranSettlementReport.setServiceCharge(20d);
|
|
//运输单价不为空
|
|
//运输单价不为空
|
|
if (tranProcessInfo.getTranPrice()!=null){
|
|
if (tranProcessInfo.getTranPrice()!=null){
|
|
//应付
|
|
//应付
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
//未付
|
|
//未付
|
|
tranSettlementReport.setAmountNotPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountNotPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setTransportPrice(Float.valueOf(tranProcessInfo.getTranPrice()));
|
|
tranSettlementReport.setTransportPrice(Float.valueOf(tranProcessInfo.getTranPrice()));
|
|
@@ -1652,8 +1676,21 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setContractNo(warehouseInOutInfo.getContractNo());
|
|
tranSettlementReport.setContractNo(warehouseInOutInfo.getContractNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
|
+ tranSettlementReport.setServiceCharge(20d);
|
|
//运输单价不为空
|
|
//运输单价不为空
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
//应付
|
|
//应付
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
//未付
|
|
//未付
|
|
@@ -2160,8 +2197,21 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setContractNo(warehouseInOutInfo.getContractNo());
|
|
tranSettlementReport.setContractNo(warehouseInOutInfo.getContractNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
|
+ tranSettlementReport.setServiceCharge(20d);
|
|
//运输单价不为空
|
|
//运输单价不为空
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
//应付
|
|
//应付
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
//未付
|
|
//未付
|
|
@@ -3590,6 +3640,18 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
//应付=单价x结算重量-扣款
|
|
//应付=单价x结算重量-扣款
|
|
tranSettlementReport.setAmountIngPayable(tranSettlementReport.getTransportPrice() * tranSettlementReport.getSettlementWeight() - Float.valueOf(tranSettlementReport.getDeductionAmount()));
|
|
tranSettlementReport.setAmountIngPayable(tranSettlementReport.getTransportPrice() * tranSettlementReport.getSettlementWeight() - Float.valueOf(tranSettlementReport.getDeductionAmount()));
|
|
}
|
|
}
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranSettlementReport.getTransportPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranSettlementReport.getTransportPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -4207,8 +4269,21 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setTranCarNo(warehouseInOutInfo.getTranCarNo());
|
|
tranSettlementReport.setTranCarNo(warehouseInOutInfo.getTranCarNo());
|
|
tranSettlementReport.setStartAddress(warehouseInOutInfo.getWarehouseName());
|
|
tranSettlementReport.setStartAddress(warehouseInOutInfo.getWarehouseName());
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
|
+ tranSettlementReport.setServiceCharge(20d);
|
|
//运输单价不为空
|
|
//运输单价不为空
|
|
if (tranProcessInfo.getTranPrice()!=null){
|
|
if (tranProcessInfo.getTranPrice()!=null){
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
//应付
|
|
//应付
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(tranProcessInfo.getTranPrice()) * tranSettlementReport.getSettlementWeight());
|
|
//未付
|
|
//未付
|
|
@@ -4385,8 +4460,21 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setCarNo(warehouseInOutInfo.getCarNo());
|
|
tranSettlementReport.setStartAddress(warehouseInOutInfo.getWarehouseName());
|
|
tranSettlementReport.setStartAddress(warehouseInOutInfo.getWarehouseName());
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
|
+ tranSettlementReport.setServiceCharge(20d);
|
|
//运输单价不为空
|
|
//运输单价不为空
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
//应付
|
|
//应付
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
//未付
|
|
//未付
|
|
@@ -4962,8 +5050,21 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
tranSettlementReport.setTranCarNo(warehouseInOutInfo.getTranCarNo());
|
|
tranSettlementReport.setTranCarNo(warehouseInOutInfo.getTranCarNo());
|
|
tranSettlementReport.setStartAddress(warehouseInOutInfo.getWarehouseName());
|
|
tranSettlementReport.setStartAddress(warehouseInOutInfo.getWarehouseName());
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
tranSettlementReport.setSettlementWeight(Float.valueOf(String.valueOf(warehouseInOutInfo.getNetWeight())));
|
|
|
|
+ tranSettlementReport.setServiceCharge(20d);
|
|
//运输单价不为空
|
|
//运输单价不为空
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
if (warehouseInOutInfo.getFreight()!=null){
|
|
|
|
+ //实付金额
|
|
|
|
+ if(tranSettlementReport.getDeductionAmount() != null){
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - Double.valueOf(tranSettlementReport.getDeductionAmount()) - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }else{
|
|
|
|
+ tranSettlementReport.setAmountActuallyPaid(Double.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight()
|
|
|
|
+ - tranSettlementReport.getServiceCharge());
|
|
|
|
+ }
|
|
|
|
+ //税点
|
|
|
|
+ tranSettlementReport.setTaxPoint(tranSettlementReport.getAmountActuallyPaid()/0.946*0.054);
|
|
|
|
+ //合计应付
|
|
|
|
+ tranSettlementReport.setTotalPayable(tranSettlementReport.getAmountActuallyPaid()+tranSettlementReport.getTaxPoint());
|
|
//应付
|
|
//应付
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
tranSettlementReport.setAmountIngPayable(Float.valueOf(warehouseInOutInfo.getFreight()) * tranSettlementReport.getSettlementWeight());
|
|
//未付
|
|
//未付
|