23 · Tax, receipts & notifications

Sales tax settings (tenant), receipt templates/send channels, and email/SMS plumbing. Distinct from HR payroll tax under DocHub 21.

Sales tax ≠ payroll tax Receipts → email/SMS/print

Sales tax (tenant commerce)

SurfacePath / API
Admin UI/admin/taxes · Taxes.jsx
APItaxSettings.routes.js — settings, rates CRUD, /calculate
Servicestax.service.js · taxSettings.service.js

POS cart carries taxRateBps / taxCents into finalize → invoice. Reports include accounting/taxes.

HR tax is separate Employer EIN, W4, payroll tax rates live under /admin/hr/business-tax-info and /admin/hr/tax-rates on the HR DB — see DocHub 21.

Receipts

flowchart LR
  INV[Invoice / sale]
  TPL[Receipt templates]
  GEN[Generate / preview]
  CH[Channels]
  INV --> GEN
  TPL --> GEN
  GEN --> CH
  CH --> E[Email]
  CH --> S[SMS]
  CH --> P[Print / Bridge]
  CH --> V[View token URL]
          
API areaExamples
/api/receiptsview/:token, templates/current, preview, email, SMS, send
receipt.routes (templates/generate)CRUD templates, PDF, print, email
UI/admin/receipt-templates · branding often ties logos

Services: receiptGeneration, receiptRenderer. Bridge can carry print jobs.

Email & SMS

PieceRole
/api/emailSettings, status, test, send templates, invoice email, logs — see DocHub 29
/admin/mail-settingsUI for mail config
/admin/tools/mailerDev mailer tester
/api/admin/email-templatesTemplate admin (tickets etc.)
email.service.js · mailer.jsSend pipeline
sms.jsSMS helper used by receipts/notifications
Ticket notificationsticketNotification.service on ticket events
Password resetAuth flows use mailer
Ops dependency Live email/SMS quality depends on env SMTP/provider credentials — not just code paths existing.

File anchors

ConcernPath
TaxtaxSettings.routes.js · Taxes.jsx
Receiptsreceipts.routes.js · receipt.routes.js · ReceiptTemplates.jsx
Emailemail.routes.js · MailSettings · mailer services
SMSbackend/services/sms.js
OAO21 tax · 22 receipts · 23 email-sms HTML