Commit 7fa61d82 by 陈斌

update2

parent af5ba372
......@@ -158,7 +158,7 @@ public class OrderInvoiceAdapter {
// 税额 = 商品金额(不含税) * 税率 / (1+税率)
BigDecimal goodsTotalTax = actualPayAmount2yuan
.multiply(invoiceDetailRequest.getGoodsTaxRate())
.divide(new BigDecimal(1).add(invoiceDetailRequest.getGoodsTaxRate()))
.divide(new BigDecimal(1).add(invoiceDetailRequest.getGoodsTaxRate()),5,BigDecimal.ROUND_HALF_UP)
.setScale(2, BigDecimal.ROUND_HALF_UP);
invoiceDetailRequest.setGoodsTotalTax(goodsTotalTax);
// 商品金额(不含税) = 商品金额(含税) - 税额
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment