Commit 46cc3397 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 318f10ec
...@@ -72,6 +72,9 @@ class InvoiceJobCommand extends Command ...@@ -72,6 +72,9 @@ class InvoiceJobCommand extends Command
'invoice_platform' => 'rhawn', 'invoice_platform' => 'rhawn',
]); ]);
break; break;
case 'testEmail' :
$service->testEmail('IRB220230306XYNKM');
break;
case 'apiCallBack' : case 'apiCallBack' :
$service->apiCallBack([ $service->apiCallBack([
'invoice_platform' => 'rhawn', 'invoice_platform' => 'rhawn',
......
...@@ -502,6 +502,16 @@ class InvoiceService ...@@ -502,6 +502,16 @@ class InvoiceService
} }
} }
public function testEmail($params)
{
$updatedInvoiceResult = $this->invoiceRecordRepository->getInvoiceRecordByNumber($params);
$this->apiService->pushQueue([
'params' => $updatedInvoiceResult,
'consumer' => __CLASS__,
'method' => 'sendInvoiceEmail'
],'invoiceEmailPush');
}
public function sendInvoiceEmail($invoiceParams) public function sendInvoiceEmail($invoiceParams)
{ {
$sended = $this->apiService->getPlatformDataEntries('invoice_sended_mail_list','data_values'); $sended = $this->apiService->getPlatformDataEntries('invoice_sended_mail_list','data_values');
......
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