ariesy 修复机动车发票查验报错

release
yefei 2 years ago
parent a265ec8cc9
commit 6ae0a42566
  1. 6
      dxhy-core/src/main/java/com/dxhy/core/service/singletable/impl/CoreSaveInvoiceInfoServiceImpl.java

@ -125,7 +125,11 @@ public class CoreSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl<TDxRecordI
if (taxRate.contains("%")) { if (taxRate.contains("%")) {
taxRate = taxRate.replace("%", ""); taxRate = taxRate.replace("%", "");
} }
invoiceStatistics.setTaxRate(new BigDecimal(taxRate)); if("免税".equals(taxRate)){
invoiceStatistics.setTaxRate(new BigDecimal("0"));
}else {
invoiceStatistics.setTaxRate(new BigDecimal(taxRate));
}
} }
String amount = queryInvoiceResult.getString("taxAmount"); String amount = queryInvoiceResult.getString("taxAmount");
if(StringUtils.isNotEmpty(amount)){ if(StringUtils.isNotEmpty(amount)){

Loading…
Cancel
Save