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:
BACHIR SOULDI
2026-02-17 15:59:31 +01:00
parent 2794e62571
commit 2a647b138a
46 changed files with 25100 additions and 1296 deletions

View File

@@ -327,12 +327,15 @@
<span style="font-size: 10pt" class="module-name textOverflowEllipsis">Questionnaire</span>
</a>
</li>
<li style=" padding: 2.5% 2% !important;">
{if !hideStock($roleid)}
<li style=" padding: 2.5% 2% !important;">
<a style=" color:#ffffff; " href="?module=EtatStockReporting&view=EtatStockReporting">
<!--<span class="fa fa-cog module-icon"></span>-->
<span style="font-size: 10pt" class="module-name textOverflowEllipsis">Stock</span>
</a>
</li>
{/if}
{/if}
{if $roleid == 'H8'}
<li style=" padding: 2.5% 2% !important;">
@@ -348,15 +351,17 @@
</a>
</li>
{/if}
{if $roleid == 'H12' || $roleid == 'H11' || $roleid == 'H4' || $roleid == 'H34' || $roleid == 'H36' || $roleid == 'H38' || $roleid == 'H42' || $roleid == 'H44'}
<li style=" padding: 2.5% 2% !important;">
{*if $roleid == 'H34' || $roleid == 'H36' || $roleid == 'H38' || $roleid == 'H42' || $roleid == 'H44' *}
{if $roleid == 'H12' || $roleid == 'H11' || $roleid == 'H4' }
<li style=" padding: 2.5% 2% !important;">
<a style=" color:#ffffff; " href="?module=EtatStockReporting&view=EtatStockReporting">
<!--<span class="fa fa-cog module-icon"></span>-->
<span style="font-size: 10pt" class="module-name textOverflowEllipsis">Stock</span>
</a>
</li>
{/if}
{if $roleid != 'H12' && $roleid != 'H11' && $roleid != 'H4' && $roleid != 'H34' && $roleid != 'H36' && $roleid != 'H38' && $roleid != 'H42' && $roleid != 'H44' }
{*&& $roleid != 'H34' && $roleid != 'H36' && $roleid != 'H38' && $roleid != 'H42' && $roleid != 'H44' *}
{if $roleid != 'H12' && $roleid != 'H11' && $roleid != 'H4' }
<li style=" padding: 2.5% 2% !important;">
<a style=" color:#ffffff; " href="?module=ExportData&view=ExportData">
<span style="font-size: 10pt" class="module-name textOverflowEllipsis">Export Data</span>