Commit 39c4396a authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 14551fc9
...@@ -465,18 +465,17 @@ class InvoiceService ...@@ -465,18 +465,17 @@ class InvoiceService
if($updatedInvoiceResult){ if($updatedInvoiceResult){
//对平台的发票信息进行更新 //对平台的发票信息进行更新
$updateResult = null; $updateResult = null;
$updateParams = [
'soi_api_status' => 1,
'soi_no' => $updatedInvoiceResult['invoice_real_number'],
'soi_date' => $updatedInvoiceResult['invoice_real_date'],
//'soi_total' => bcmul($callBackParams['jshj'],1,2),
'soi_tax' => bcmul($invoiceResponse['hjse'],1,2),
'soi_amount' => bcmul($invoiceResponse['hjje'],1,2)
];
switch($updatedInvoiceResult['invoice_platform']){ switch($updatedInvoiceResult['invoice_platform']){
case 'rhawn' : case 'rhawn' :
$updateResult = $this->rhawnInvoiceRepository->updateInvoiceById($updatedInvoiceResult['platform_invoice_id'], $updateResult = $this->rhawnInvoiceRepository->updateInvoiceById($updatedInvoiceResult['platform_invoice_id'], $updateParams);
[
'soi_api_status' => 1,
'soi_no' => $updatedInvoiceResult['invoice_real_number'],
'soi_date' => $updatedInvoiceResult['invoice_real_date'],
//'soi_total' => bcmul($callBackParams['jshj'],1,2),
'soi_tax' => bcmul($invoiceResponse['hjse'],1,2),
'soi_amount' => bcmul($invoiceResponse['hjje'],1,2)
]
);
} }
if($updateResult){ if($updateResult){
//获取发票地址 //获取发票地址
......
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