|
|
@ -120,10 +120,12 @@ public class CoreSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl<TDxRecordI |
|
|
|
// invoiceStatistics.setTaxRate(queryInvoiceResult.getBigDecimal("taxRate"));
|
|
|
|
// invoiceStatistics.setTaxRate(queryInvoiceResult.getBigDecimal("taxRate"));
|
|
|
|
// invoiceStatistics.setTaxAmount(queryInvoiceResult.getBigDecimal("taxAmount"));
|
|
|
|
// invoiceStatistics.setTaxAmount(queryInvoiceResult.getBigDecimal("taxAmount"));
|
|
|
|
String taxRate = queryInvoiceResult.getString("taxRate"); |
|
|
|
String taxRate = queryInvoiceResult.getString("taxRate"); |
|
|
|
if (taxRate.contains("%")) { |
|
|
|
if(taxRate != null) { |
|
|
|
taxRate = taxRate.replace("%", ""); |
|
|
|
if (taxRate.contains("%")) { |
|
|
|
|
|
|
|
taxRate = taxRate.replace("%", ""); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
invoiceStatistics.setTaxRate(new BigDecimal(taxRate)); |
|
|
|
} |
|
|
|
} |
|
|
|
invoiceStatistics.setTaxRate(new BigDecimal(taxRate)); |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
invoiceStatistics.setTaxAmount(queryInvoiceResult.getBigDecimal("taxAmount")); |
|
|
|
invoiceStatistics.setTaxAmount(queryInvoiceResult.getBigDecimal("taxAmount")); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|