ariesy 修复免税税额为***的问题

release
yefei 2 years ago
parent 5a0d733cd3
commit 40cece48f3
  1. 8
      dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java

@ -449,8 +449,12 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl<SignRecord
} }
if (queryInvoiceResult.getString("totalTax") != null && StringUtils.isNoneBlank(queryInvoiceResult.getString("totalTax"))) { if (queryInvoiceResult.getString("totalTax") != null && StringUtils.isNoneBlank(queryInvoiceResult.getString("totalTax"))) {
BigDecimal taxAmount = new BigDecimal(queryInvoiceResult.getString("totalTax")); if(queryInvoiceResult.getString("totalTax").contains("*")){
invoice.setTaxAmount(taxAmount); invoice.setTaxAmount(new BigDecimal(0));
}else {
BigDecimal taxAmount = new BigDecimal(queryInvoiceResult.getString("totalTax"));
invoice.setTaxAmount(taxAmount);
}
} }
if (queryInvoiceResult.getString("amountTax") != null && StringUtils.isNoneBlank(queryInvoiceResult.getString("amountTax"))) { if (queryInvoiceResult.getString("amountTax") != null && StringUtils.isNoneBlank(queryInvoiceResult.getString("amountTax"))) {

Loading…
Cancel
Save