Commit 46cc3397 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 318f10ec
......@@ -72,6 +72,9 @@ class InvoiceJobCommand extends Command
'invoice_platform' => 'rhawn',
]);
break;
case 'testEmail' :
$service->testEmail('IRB220230306XYNKM');
break;
case 'apiCallBack' :
$service->apiCallBack([
'invoice_platform' => 'rhawn',
......
......@@ -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)
{
$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