fix(email): use client/org name as From display, not Ladill product
Deploy Ladill POS / deploy (push) Has been cancelled
Deploy Ladill POS / deploy (push) Has been cancelled
Customer-facing outbound mail should appear from the business (organizer, clinic, company, location), not the Ladill product brand.
This commit is contained in:
@@ -22,9 +22,8 @@ class DigitalReceiptMail extends Mailable
|
||||
public function envelope(): Envelope
|
||||
{
|
||||
$location = $this->sale->location;
|
||||
$fromName = $location?->receipt_header
|
||||
?: $location?->name
|
||||
?: (string) config('mail.from.name', 'Ladill POS');
|
||||
// Receipt From is the store/location, never the Ladill POS product brand.
|
||||
$fromName = trim((string) ($location?->receipt_header ?: $location?->name ?: '')) ?: 'Receipt';
|
||||
|
||||
return new Envelope(
|
||||
from: new Address(
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 695 B |
Reference in New Issue
Block a user