|
@@ -91,9 +91,9 @@ public class IssueElectronicInvoiceServiceImpl implements IssueElectronicInvoice
|
|
|
List<PayInvoiceParam> payInvoiceParams = payInvoiceParamService.findList(null, siteId, customerId);
|
|
|
for (PayInvoiceParam item : payInvoiceParams) {
|
|
|
if (item.getTaxrate() != null) {
|
|
|
- BigDecimal taxRate = BigDecimal.valueOf(Long.parseLong(item.getTaxrate())).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+ BigDecimal taxRate = new BigDecimal(item.getTaxrate()).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
;
|
|
|
- taxRate = taxRate.divide(BigDecimal.valueOf(100));
|
|
|
+ taxRate = taxRate.divide(BigDecimal.valueOf(100),2,BigDecimal.ROUND_HALF_UP);
|
|
|
item.setTaxrate(String.valueOf(taxRate));
|
|
|
}
|
|
|
map.put(item.getFeetype(), item);
|