Commit 5049334d authored by hangjun83's avatar hangjun83

财务开票模块更新

parent c66c6e55
......@@ -486,7 +486,15 @@ class InvoiceService
}else{
$updateInvoice['invoice_status'] = 2;
$updatedInvoiceResult = $this->invoiceRecordRepository->saveInvoice($updateInvoice);
$this->apiService->removePlatformDataEntries('invoice_callBack_'.$invoiceResponse['ddlsh'].'_applyInvoice');
if($updatedInvoiceResult) {
$updateResult = $this->rhawnInvoiceRepository->updateInvoiceById($updatedInvoiceResult['platform_invoice_id'], [
'soi_api_status' => 2,
'soi_no' => mb_substr($callBackParams['ycyy'],0,250,'utf-8')
]);
if ($updateResult) {
$this->apiService->removePlatformDataEntries('invoice_callBack_' . $invoiceResponse['ddlsh'] . '_applyInvoice');
}
}
}
}
}catch(\Throwable $exception){
......
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