优化销售发票保存接口中的发票类型相关代码

This commit is contained in:
mzr 2025-04-14 08:57:43 +08:00
parent 069cd10a1e
commit 301b09bec9
1 changed files with 7 additions and 4 deletions

View File

@ -138,7 +138,10 @@ public class saveCommitAction extends AbstractNCCRestResource {
// 销售发票审核结束
ISaleInvoiceToTaxInvService invoiceService = NCLocator.getInstance()
.lookup(ISaleInvoiceToTaxInvService.class);
invoiceService.issueTaxInvoice(saleInvoiceVO, "1");
// 数电票(增值税专用发票)=31,数电票(普通发票)=32,数电纸质发票(机动车销售统一发票)=36,数电纸质发票(增值税专用发票)=33,数电纸质发票(普通发票)=34,
// 增值税电子普通发票=1,增值税电子专用发票=2,增值税普通发票=3,增值税专用发票=4,增值税电子普通发票成品油=8,成品油普通发票(卷式)=9,
// 成品油普通发票=10,成品油专用发票=11,增值税普通发票(卷式)=12,增值税专用发票(机动车)=99
invoiceService.issueTaxInvoice(saleInvoiceVO, fplxStr);
JSONObject desc = r.getDesc();
if (desc != null) {
@ -193,11 +196,11 @@ public class saveCommitAction extends AbstractNCCRestResource {
// 2025-2-8付业要求修改根据发票类型Q自定义档案对照发票类型
String ctrantypeidStr = "32-02";// 默认普通发票
if (fplxStr != null && fplxStr.equals("31")) {
ctrantypeidStr = "32-01";
ctrantypeidStr = "32-01";// 数电票(增值税专用发票)
} else if (fplxStr != null && fplxStr.equals("32")) {
ctrantypeidStr = "32-02";
ctrantypeidStr = "32-02";// 数电票(普通发票)
} else if (fplxStr != null && fplxStr.equals("36")) {
ctrantypeidStr = "32-Cxx-03";
ctrantypeidStr = "32-Cxx-03";// 机动车销售发票
}
billhead.put("ctrantypeid", ctrantypeidStr);// 发票类型
// billhead.put("ctrantypeid", "32-02");//发票类型