|
@@ -112,7 +112,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
|
|
|
// 获取税率明细
|
|
|
Map<Long, Map<String, BigDecimal>> detailsRateMap = getDetailsRateMap(records, defaultRateMap);
|
|
|
-
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
//赋值合同到账金额、退税金额、采购金额
|
|
|
setContractArrivalAndRefundMoney(list);
|
|
|
|
|
@@ -307,6 +307,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setContractArrival(contractArrival);
|
|
|
+ p.setClaimList(cList);
|
|
|
}
|
|
|
/**
|
|
|
* 处理退税金额
|
|
@@ -322,6 +323,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setTaxReturnMoney(taxReturnMoney);
|
|
|
+ p.setTaxReturnList(rList);
|
|
|
}
|
|
|
/**
|
|
|
* 处理采购金额
|
|
@@ -338,7 +340,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setPurchaseAmount(purchaseAmount);
|
|
|
-
|
|
|
+ p.setPurchaseList(pList);
|
|
|
/**
|
|
|
* 处理支付款金额
|
|
|
*/
|
|
@@ -354,6 +356,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setPayForGoods(payAmount);
|
|
|
+ p.setPayList(payList);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
@@ -370,6 +373,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setOtherExpenses(otherExpenses);
|
|
|
+ p.setAccountRequestFundsDetailList(accountRequestFundsDetailVos);
|
|
|
}
|
|
|
} else {//取数据汇率
|
|
|
/**
|
|
@@ -390,6 +394,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setContractArrival(contractArrival);
|
|
|
+ p.setClaimList(cList);
|
|
|
}
|
|
|
/**
|
|
|
* 处理退税金额
|
|
@@ -405,6 +410,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setTaxReturnMoney(taxReturnMoney);
|
|
|
+ p.setTaxReturnList(rList);
|
|
|
}
|
|
|
/**
|
|
|
* 处理采购金额
|
|
@@ -421,7 +427,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setPurchaseAmount(purchaseAmount);
|
|
|
-
|
|
|
+ p.setPurchaseList(pList);
|
|
|
/**
|
|
|
* 处理支付款金额
|
|
|
*/
|
|
@@ -437,6 +443,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setPayForGoods(payAmount);
|
|
|
+ p.setPayList(payList);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
@@ -453,6 +460,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
p.setOtherExpenses(otherExpenses);
|
|
|
+ p.setAccountRequestFundsDetailList(accountRequestFundsDetailVos);
|
|
|
}
|
|
|
}
|
|
|
}
|