Commit 55c0f299 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent fb5eef32
......@@ -672,10 +672,20 @@ class InvoiceService
public function resetApplyInvoice($params)
{
$values = $this->apiService->getPlatformDataEntries('invoice_apply_'.$params,'data_values');
$response = $this->apiService->applyElecInvoice($values);
if($response){
return true;
try{
$invoice = $this->invoiceRecordRepository->getInvoiceRecordByNumber($params);
if($invoice){
//设置发票平台
$this->apiService->setInvoicePlatform($invoice['invoice_platform']);
$values = $this->apiService->getPlatformDataEntries('invoice_apply_'.$params,'data_values');
$response = $this->apiService->applyElecInvoice($values);
if($response){
return true;
}
}
}catch(\Throwable $exception){
var_dump($exception->getMessage());
}
}
......
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