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:
2026-11-26 16:00:15 +02:00
co-authored by Claude Sonnet 5.5
parent 3faa4cfbc6
commit d160854b79
29 changed files with 679 additions and 34 deletions
+20
View File
@@ -34,6 +34,9 @@ return [
'choose_customer' => 'Choose customer :name',
'change_customer' => 'Remove customer',
'save' => 'Record sale',
'receipt_email' => 'Email the receipt',
'receipt_email_hint' => 'Optional. The PDF receipt is sent to this address after the sale. The address is not added to the customer register.',
'receipt_queued' => 'The receipt is being sent to :email.',
'saved' => 'Sale #:number recorded: :total, :method.',
'hours_booked' => ':hours h were recorded as your hours.',
'hours_not_booked' => 'The hours (:hours h) could not be recorded, because the day\'s hours have already been approved or the day would exceed 24 h. Enter them in the week view or ask management to cancel the approval.',
@@ -101,6 +104,22 @@ return [
'company_missing' => 'Company details are missing: the admin fills them in under Company details.',
],
'credited' => 'Credit #:credit was recorded for sale #:number.',
'receipt_mail' => [
'subject' => 'Receipt :number – :company',
'credit_subject' => 'Credit receipt :number – :company',
'greeting' => 'Hello,',
'body' => 'attached is the receipt for your purchase on :date (receipt no. :number).',
'credit_body' => 'attached is the credit receipt of :date (receipt no. :number).',
'status_pending' => 'Receipt being sent',
'status_sent' => 'Receipt sent',
'status_failed' => 'Sending the receipt failed',
'send' => 'Email receipt',
'send_named' => 'Email receipt #:number',
'send_title' => 'Email the receipt?',
'send_text' => 'Receipt #:number is sent as a PDF attachment to the address below. You can correct the address before sending.',
'send_confirm' => 'Send',
'resent' => 'Receipt #:number is being sent to :email.',
],
'cash_day' => [
'title' => 'Cash day',
'open' => 'The cash day is open.',
@@ -129,6 +148,7 @@ return [
'reopened_message' => 'Cash day :day reopened.',
],
'errors' => [
'receipt_email' => 'Enter a valid email address, e.g. [email protected].',
'empty' => 'Enter a quantity for at least one product.',
'quantity' => 'Enter the quantity as a whole number 0–999.',
'product' => 'The product is no longer on sale. Refresh the page.',