Commit d721c227 authored by hangjun83's avatar hangjun83

财务开票模块更新]

parent d78260af
......@@ -442,23 +442,22 @@ class InvoiceService
SimpleLogs::writeLog($callBackParams, __CLASS__.':'.__FUNCTION__.' 无法找到发票流水号:'.$callBackParams['ddlsh'].'的数据', 'error');
return false;
}
$invoiceInfo = current($invoiceInfo);
//查询发票信息
$invoiceResponse = $this->queryInvoiceInfo([
'invoice_platform' => $invoiceInfo['invoice_platform'],
'invoice_number' => $callBackParams['ddlsh']
]);
var_dump($invoiceResponse);
exit;
//更新对应的发票数据,并反写回相应的平台发票
try{
$updateInvoice = [];
$updateInvoice['inovice_number'] = $callBackParams['ddlsh'];
$updateInvoice['inovice_number'] = $invoiceResponse['ddlsh'];
if($callBackParams['status'] == 1){
$updateInvoice['invoice_status'] = 1;
$updateInvoice['invoice_real_number'] = $callBackParams['fphm'];
$updateInvoice['invoice_real_date'] = $callBackParams['kprq'];
$updateInvoice['invoice_pdf_url'] = $callBackParams['pdf'];
$updateInvoice['invoice_real_number'] = $invoiceResponse['qdfphm'];
$updateInvoice['invoice_real_date'] = $invoiceResponse['kprq'];
$updateInvoice['invoice_pdf_url'] = $invoiceResponse['pdf'];
$updatedInvoiceResult = $this->invoiceRecordRepository->saveInvoice($updateInvoice);
if($updatedInvoiceResult){
......
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