|
|
|
@ -10,6 +10,7 @@ import com.dxhy.common.datasource.config.DynamicContextHolder; |
|
|
|
|
import com.dxhy.common.enums.FplxEnum; |
|
|
|
|
import com.dxhy.common.enums.SNFplxEnum; |
|
|
|
|
import com.dxhy.common.util.InvoiceUtil; |
|
|
|
|
import com.dxhy.common.util.StringHelper; |
|
|
|
|
import com.dxhy.common.vo.UserInfo; |
|
|
|
|
import com.dxhy.erp.dao.*; |
|
|
|
|
import com.dxhy.erp.entity.*; |
|
|
|
@ -450,7 +451,8 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
|
jsonObject.put("tonnage", invoiceData.get("dw")); |
|
|
|
|
jsonObject.put("limitPeople", invoiceData.get("xcrs")); |
|
|
|
|
String taxRate = ""; |
|
|
|
|
if ("免税".equals(invoiceData.get("sl"))) { |
|
|
|
|
if (invoiceData.get("sl")==null||StringUtils.isBlank(invoiceData.get("sl").toString())|| |
|
|
|
|
"免税".equals(invoiceData.get("sl").toString())|| "不征税".equals(invoiceData.get("sl").toString()) || "***".equals(invoiceData.get("sl").toString())) { |
|
|
|
|
taxRate = "0"; |
|
|
|
|
jsonObject.put("taxRate", taxRate); |
|
|
|
|
} else { |
|
|
|
@ -718,8 +720,14 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter { |
|
|
|
|
log.info("uuid={}", uuid); |
|
|
|
|
reimburse.setSelectId(uuid); |
|
|
|
|
|
|
|
|
|
reimburse.setTaxRate(invoice.getTaxRate()); |
|
|
|
|
reimburse.setTaxCode(getTaxCode(invoice.getTaxRate())); |
|
|
|
|
if (StringHelper.isNotBlank(invoice.getTaxRate())){ |
|
|
|
|
reimburse.setTaxRate(invoice.getTaxRate()); |
|
|
|
|
reimburse.setTaxCode(getTaxCode(invoice.getTaxRate())); |
|
|
|
|
}else { |
|
|
|
|
reimburse.setTaxRate("0%"); |
|
|
|
|
reimburse.setTaxCode(getTaxCode(reimburse.getTaxRate())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
reimburse.setIsDeduction(invoice.getIsDeductible()); |
|
|
|
|
|
|
|
|
|
if (StringUtils.isNoneBlank(reimburse.getInvoiceCode())) { |
|
|
|
|