feat: Enhance email functionality and PDF generation for Sales Orders
- Enabled SMTP debugging in PHPMailer for better error tracking. - Added a "Test send email" link in the Inventory Detail View for quick email testing. - Implemented automatic PDF generation and email sending upon Sales Order creation. - Created a new action for sending Sales Order emails with attached PDFs. - Added a new AJAX action for testing outgoing email server configurations. - Updated outgoing server settings to use new SMTP credentials. - Improved email templates for better user experience. - Added test scripts for validating PDF generation and email sending.
This commit is contained in:
@@ -8,6 +8,10 @@ vimport ('includes.runtime.EntryPoint');
|
||||
$roleid = $current_user->get('roleid');
|
||||
$userId = $current_user->get('id');
|
||||
|
||||
if($roleid == 'H37')
|
||||
die("Vous n'avez pas le droit d'accéder à cette page");
|
||||
|
||||
|
||||
if(isset($_POST["Export"])){
|
||||
$filename = "ETAT_DES_STOCKS".date('Ymd') . ".xls";
|
||||
header("Content-Type: application/vnd.ms-excel");
|
||||
|
||||
Reference in New Issue
Block a user