Commit 8752b2de authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 7ce082a3
......@@ -521,19 +521,22 @@ class InvoiceService
$platformName = $invoiceParams['invoice_platform'] == 'rhawn' ? '上海易恩化学技术有限公司' : '上海百舜生物科技有限公司';
$message = '尊敬的'.$customerInfo['cust_name'].','. $platformName . '给您开具了电子发票,请查收。';
$message .= "\r\n发票信息:\r\n";
$message .= "\r\n开票日期: ".date('Y-m-d H:i:s',$invoiceParams['invoice_real_date'])."\r\n";
$message .= "\r\n销方名称: ".$platformName."\r\n";
$message .= "\r\n购方名称: ".$customerInfo['cust_name']."\r\n";
$message .= "\r\n合计金额: ".bcmul($invoiceParams['invoice_money'],1,2)."\r\n";
$message .= "\r\n发票号码: ".$invoiceParams['invoice_real_number']."\r\n";
$message = '<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"></head><bodyclass="">';
$message .= "<a href=".$downloadUrl."电子发票下载地址</a>";
$message .= '尊敬的'.$customerInfo['cust_name'].','. $platformName . '给您开具了电子发票,请查收。';
$message .= "<br />发票信息:<br />";
$message .= "开票日期: ".date('Y-m-d H:i:s',$invoiceParams['invoice_real_date'])."<br/>";
$message .= "销方名称: ".$platformName."\r\n";
$message .= "购方名称: ".$customerInfo['cust_name']."<br/>";
$message .= "合计金额: ".bcmul($invoiceParams['invoice_money'],1,2)."\r\n";
$message .= "发票号码: ".$invoiceParams['invoice_real_number']."\r\n";
$html = file_get_contents(resource_path('views/emails/invoice.blade.php'));
$message .= "<a href='".$downloadUrl."'>电子发票下载地址</a>";
$message .= "</body></html>";
$this->mailService->sendMailToHtml($title, 'hangjun@rhawn.cn',$html);
//$html = file_get_contents(resource_path('views/emails/invoice.blade.php'));
$this->mailService->sendMailToHtml($title, 'hangjun@rhawn.cn',$message);
}
public function getInvoicePdfDownloadUrl()
......
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