Commit 55c0f299 authored by hangjun83's avatar hangjun83

财务开票模块更新

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