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

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

@ -449,9 +449,13 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl<SignRecord
}
if (queryInvoiceResult.getString("totalTax") != null && StringUtils.isNoneBlank(queryInvoiceResult.getString("totalTax"))) {
if(queryInvoiceResult.getString("totalTax").contains("*")){
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"))) {
BigDecimal totalAmount = new BigDecimal(queryInvoiceResult.getString("amountTax"));

Loading…
Cancel
Save