Email quick sale receipts and send them again from the sales list
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{{--
|
||||
Body of the email that carries a quick sale's PDF receipt. Always in
|
||||
Finnish, like the receipt.
|
||||
--}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="fi">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ $sale->isCredit() ? __('sales.receipt.credit_title') : __('sales.receipt.title') }} {{ $sale->id }}</title>
|
||||
</head>
|
||||
<body style="font-family: Arial, sans-serif; font-size: 15px; color: #111;">
|
||||
<p>{{ __('sales.receipt_mail.greeting') }}</p>
|
||||
<p>{{ __($sale->isCredit() ? 'sales.receipt_mail.credit_body' : 'sales.receipt_mail.body', ['number' => $sale->id, 'date' => \Carbon\CarbonImmutable::parse($sale->soldAt)->format('j.n.Y')]) }}</p>
|
||||
<p>{{ __('sales.receipt.thanks') }}</p>
|
||||
@if ($company !== null)
|
||||
<p>
|
||||
{{ $company->name }}
|
||||
@if ($company->phone !== null)<br>{{ $company->phone }}@endif
|
||||
@if ($company->email !== null)<br>{{ $company->email }}@endif
|
||||
</p>
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user