Update some things for recurring transactions.

This commit is contained in:
James Cole
2018-06-28 06:31:31 +02:00
parent d378e7e897
commit 57cf7f6f0d
5 changed files with 36 additions and 13 deletions

View File

@@ -65,7 +65,13 @@ class ReportNewJournalsMail extends Mailable
*/
public function build(): self
{
$subject = $this->journals->count() === 1
? 'Firefly III has created a new transaction'
: sprintf(
'Firefly III has created new %d transactions', $this->journals->count()
);
return $this->view('emails.report-new-journals-html')->text('emails.report-new-journals-text')
->subject('Firefly III has created new transactions');
->subject($subject);
}
}