Commit 4a7121e0 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 41eb1724
...@@ -217,7 +217,7 @@ class BaiwangApiService extends PlatformAbstractService ...@@ -217,7 +217,7 @@ class BaiwangApiService extends PlatformAbstractService
} }
private function uuid() public function uuid()
{ {
$chars = md5(uniqid(mt_rand(), true)); $chars = md5(uniqid(mt_rand(), true));
$uuid = substr ( $chars, 0, 8 ) . '-' $uuid = substr ( $chars, 0, 8 ) . '-'
......
...@@ -139,7 +139,7 @@ class InvoiceService ...@@ -139,7 +139,7 @@ class InvoiceService
$invoiceNumber = 'I'; $invoiceNumber = 'I';
$invoiceNumber .= $invoiceParams['invoice_platform'] == 'rhawn' ? 'R' : 'B'; $invoiceNumber .= $invoiceParams['invoice_platform'] == 'rhawn' ? 'R' : 'B';
$invoiceNumber .= $invoiceParams['invoice_type'] == 'blue' ? 'B' : 'R'; $invoiceNumber .= $invoiceParams['invoice_type'] == 'blue' ? 'B' : 'R';
$invoiceNumber .= $invoiceParams['invoice_category'] . date('Ymd',time()); $invoiceNumber .= $invoiceParams['invoice_category'] . date('Ymd',time()).$this->apiService->uuid();
$platformInfo = $this->apiService->getPlatformInfo()['platform_params'][$invoiceParams['invoice_platform']]; $platformInfo = $this->apiService->getPlatformInfo()['platform_params'][$invoiceParams['invoice_platform']];
......
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