Commit ad9a39a9 authored by hangjun83's avatar hangjun83

财务开票模块更新]

parent 33ab0289
......@@ -34,6 +34,6 @@ class RhawnInvoiceRepositoryEloquent extends BaseRepository implements RhawnInvo
public function updateInvoiceById($id,$updateParams)
{
return $this->updateOrCreate(['id' => $id],$updateParams)->toArray();
return $this->updateOrCreate(['soi_id' => $id],$updateParams)->toArray();
}
}
......@@ -468,11 +468,11 @@ class InvoiceService
$updateResult = $this->rhawnInvoiceRepository->updateInvoiceById($updatedInvoiceResult['platform_invoice_id'],
[
'soi_api_status' => 1,
'soi_no' => $callBackParams['fphm'],
'soi_date' => strtotime($callBackParams['kprq']),
'soi_no' => $updatedInvoiceResult['invoice_number'],
'soi_date' => $updatedInvoiceResult['invoice_real_date'],
//'soi_total' => bcmul($callBackParams['jshj'],1,2),
'soi_tax' => bcmul($callBackParams['hjse'],1,2),
'soi_amount' => bcmul($callBackParams['hjje'],1,2)
'soi_tax' => bcmul($invoiceResponse['hjse'],1,2),
'soi_amount' => bcmul($invoiceResponse['hjje'],1,2)
]
);
}
......
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