Commit 33ab0289 authored by hangjun83's avatar hangjun83

财务开票模块更新]

parent d721c227
...@@ -452,11 +452,11 @@ class InvoiceService ...@@ -452,11 +452,11 @@ class InvoiceService
//更新对应的发票数据,并反写回相应的平台发票 //更新对应的发票数据,并反写回相应的平台发票
try{ try{
$updateInvoice = []; $updateInvoice = [];
$updateInvoice['inovice_number'] = $invoiceResponse['ddlsh']; $updateInvoice['invoice_number'] = $invoiceResponse['ddlsh'];
if($callBackParams['status'] == 1){ if($callBackParams['status'] == 1 && $invoiceResponse['status'] == 2){
$updateInvoice['invoice_status'] = 1; $updateInvoice['invoice_status'] = 1;
$updateInvoice['invoice_real_number'] = $invoiceResponse['qdfphm']; $updateInvoice['invoice_real_number'] = $invoiceResponse['qdfphm'];
$updateInvoice['invoice_real_date'] = $invoiceResponse['kprq']; $updateInvoice['invoice_real_date'] = strtotime($invoiceResponse['kprq']);
$updateInvoice['invoice_pdf_url'] = $invoiceResponse['pdf']; $updateInvoice['invoice_pdf_url'] = $invoiceResponse['pdf'];
$updatedInvoiceResult = $this->invoiceRecordRepository->saveInvoice($updateInvoice); $updatedInvoiceResult = $this->invoiceRecordRepository->saveInvoice($updateInvoice);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment