Commit fb76b794 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 9f439f13
...@@ -359,6 +359,8 @@ class InvoiceService ...@@ -359,6 +359,8 @@ class InvoiceService
$saveParams['invoice_category'] = $invoiceParams['invoice_category']; $saveParams['invoice_category'] = $invoiceParams['invoice_category'];
$saveParams['invoice_items'] = json_encode($invoiceParams['invoice_items'],JSON_UNESCAPED_UNICODE); $saveParams['invoice_items'] = json_encode($invoiceParams['invoice_items'],JSON_UNESCAPED_UNICODE);
$saveParams['invoice_customer'] = json_encode($invoiceParams['invoice_customer'],JSON_UNESCAPED_UNICODE); $saveParams['invoice_customer'] = json_encode($invoiceParams['invoice_customer'],JSON_UNESCAPED_UNICODE);
$saveParams['api_response'] = '';
}else{ }else{
$saveParams = current($invoiceInfo); $saveParams = current($invoiceInfo);
...@@ -389,8 +391,11 @@ class InvoiceService ...@@ -389,8 +391,11 @@ class InvoiceService
if(isset($invoiceParams['invoice_customer']) && !empty($invoiceParams['invoice_customer'])){ if(isset($invoiceParams['invoice_customer']) && !empty($invoiceParams['invoice_customer'])){
$saveParams['invoice_customer'] = $invoiceParams['invoice_customer']; $saveParams['invoice_customer'] = $invoiceParams['invoice_customer'];
} }
if(isset($invoiceParams['api_response']) && !empty($invoiceParams['api_response'])){
$saveParams['api_response'] = $invoiceParams['api_response'];
}
} }
$saveParams['api_response'] = '';
$result = $this->invoiceRecordRepository->saveInvoice($saveParams); $result = $this->invoiceRecordRepository->saveInvoice($saveParams);
......
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