|
@@ -90,6 +90,11 @@ public class IssueElectronicInvoiceServiceImpl implements IssueElectronicInvoice
|
|
|
Map<Integer, PayInvoiceParam> map = new HashMap<>();
|
|
|
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);;
|
|
|
+ taxRate = taxRate.divide(BigDecimal.valueOf(100));
|
|
|
+ item.setTaxrate(String.valueOf(taxRate));
|
|
|
+ }
|
|
|
map.put(item.getFeetype(), item);
|
|
|
}
|
|
|
return map;
|