Fix passkey login tracking, add email opt-out UI guards, and add Quick/Full quote mode toggle
- PasskeyController: set LastLoginDate on passkey sign-in so Company Health and audit pages show accurate last-login times (was always showing 'Never') - Jobs/Index status modal: disable 'Notify customer' email toggle and show warning when customer has notifications turned off; CustomerNotifyByEmail added to JobListDto + JobProfile mapping + data-customer-notify attribute - Quotes/Create: disable 'Send quote via email' checkbox with 'Notifications off' badge when selected customer has email opt-out; ViewBag.CustomerEmailOptOutIds added alongside existing CustomerTaxExemptIds pattern - Quotes/Create: Quick Quote / Full Quote segmented toggle at top of form; hides non-essential fields (dates, notes, tags, oven, discount, photos) in Quick mode; selection persisted in localStorage - InvoicesController Send action: improved error logging and user-facing warning when PDF generation or email dispatch fails after status is saved - item-wizard.js: guard item restoration with try/catch; ensure writeHiddenFields always runs on form submit via capture-phase listener - Help docs and AI knowledge base updated for all new features Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2642,6 +2642,11 @@ public class QuotesController : Controller
|
||||
.Where(c => c.IsTaxExempt)
|
||||
.Select(c => c.Id)
|
||||
.ToHashSet();
|
||||
// Map used by JS to disable the email checkbox when the customer has notifications turned off
|
||||
ViewBag.CustomerEmailOptOutIds = customers
|
||||
.Where(c => !c.NotifyByEmail)
|
||||
.Select(c => c.Id)
|
||||
.ToHashSet();
|
||||
// Stored separately so views can restore the company default when switching away from an exempt customer
|
||||
// (ViewBag.CompanyTaxPercent is set by the calling action if it has access to operatingCosts)
|
||||
if (ViewBag.CompanyTaxPercent == null && customers.Any())
|
||||
|
||||
Reference in New Issue
Block a user