This commit is contained in:
linfso 2024-08-20 18:02:56 +08:00
parent b10ec2389e
commit 6603d6857b

View File

@ -110,7 +110,7 @@ public class EmisSettleInvoiceChRecordServiceImpl implements IEmisSettleInvoiceC
EmisSettleInvoiceRecord newApply = new EmisSettleInvoiceRecord();
newApply.setId(oldApply.getId());
newApply.setInvoiceStatus("1");
newApply.setInvoiceStatusDesc("开票中");
// newApply.setInvoiceStatusDesc("开票中");
// 操作人
newApply.setOpManCode(SecurityUtils.getLoginUser().getUser().getEmpCode());
@ -126,7 +126,14 @@ public class EmisSettleInvoiceChRecordServiceImpl implements IEmisSettleInvoiceC
// 渠道待发送
newApply.setOpenChStatus("0");
emisSettleInvoiceRecordMapper.updateEmisSettleInvoiceRecord(newApply);
if(emisSettleInvoiceChRecord.getParams().containsKey("isManual")){
// 设定为已开票
newApply.setInvoiceStatus("2");
newApply.setOpenChStatus("2");
emisSettleInvoiceRecordMapper.updateEmisSettleInvoiceRecord(newApply);
}else {
emisSettleInvoiceRecordMapper.updateEmisSettleInvoiceRecord(newApply);
}
return 1;
}