|
|
|
@ -563,16 +563,20 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
|
} else { |
|
|
|
|
if (StringUtils.isNoneBlank(detail.get("sl").toString())) { |
|
|
|
|
taxRate = detail.get("sl").toString(); |
|
|
|
|
if (!"0".equals(taxRate)) { |
|
|
|
|
taxRate = taxRate.substring(0, taxRate.length() - 1); |
|
|
|
|
} |
|
|
|
|
taxRate = taxRate.replace("%", ""); |
|
|
|
|
// if (!"0".equals(taxRate)) {
|
|
|
|
|
// taxRate = taxRate.substring(0, taxRate.length() - 1);
|
|
|
|
|
// }
|
|
|
|
|
//按照小数处理
|
|
|
|
|
if(StringUtils.isNotBlank(isInteger)){ |
|
|
|
|
BigDecimal bigDecimal = new BigDecimal(taxRate); |
|
|
|
|
taxRate = bigDecimal.divide(new BigDecimal("100")).toPlainString(); |
|
|
|
|
} |
|
|
|
|
if ("11".equals(invoiceType)) { |
|
|
|
|
taxRate = "0"; |
|
|
|
|
} |
|
|
|
|
log.info("明细-发票税率为:{}", taxRate); |
|
|
|
|
snDetailMap.put("taxRate", taxRateDetail); |
|
|
|
|
snDetailMap.put("taxRate", taxRate); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|