fix: Quote wizard - correct total calculation and email sender

- Fix calculateQuote() to respect serviceInterests flags
- Only include GPS/Support costs when user has enabled them
- Update Step6Summary to conditionally render service sections
- Add sender display name (Arizona Computer Guru) to emails
- Add reply-to address (admin@azcomputerguru.com)
- Fixes phantom $380 support charge appearing in totals

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 20:42:40 -07:00
parent fa15b03180
commit c629890e32
4 changed files with 104 additions and 71 deletions

View File

@@ -29,6 +29,9 @@ define('GRAPH_TENANT_ID', 'ce61461e-81a0-4c84-bb4a-7b354a9a356d');
define('GRAPH_CLIENT_ID', '15b0fafb-ab51-4cc9-adc7-f6334c805c22');
define('GRAPH_CLIENT_SECRET', 'rRN8Q~FPfSL8O24iZthi_LVJTjGOCZG.DnxGHaSk');
define('GRAPH_SENDER_EMAIL', 'noreply@azcomputerguru.com');
define('GRAPH_SENDER_NAME', 'Arizona Computer Guru');
define('GRAPH_REPLY_TO_EMAIL', 'admin@azcomputerguru.com');
define('GRAPH_REPLY_TO_NAME', 'Arizona Computer Guru');
// --------------------------------------------------------------------------
// Admin / Auth

View File

@@ -124,9 +124,23 @@ function send_email(string $to_email, string $subject, string $body_html, ?strin
'contentType' => 'HTML',
'content' => $body_html,
],
'from' => [
'emailAddress' => [
'name' => defined('GRAPH_SENDER_NAME') ? GRAPH_SENDER_NAME : 'Arizona Computer Guru',
'address' => GRAPH_SENDER_EMAIL,
],
],
'toRecipients' => [
['emailAddress' => ['address' => $to_email]],
],
'replyTo' => [
[
'emailAddress' => [
'name' => defined('GRAPH_REPLY_TO_NAME') ? GRAPH_REPLY_TO_NAME : 'Arizona Computer Guru',
'address' => defined('GRAPH_REPLY_TO_EMAIL') ? GRAPH_REPLY_TO_EMAIL : GRAPH_SENDER_EMAIL,
],
],
],
],
'saveToSentItems' => 'true',
];