'$number', 'account'=>'$company.name']); } public static function emailCreditSubject() { return ctrans('texts.credit_subject', ['number'=>'$number', 'account'=>'$company.name']); } public static function emailInvoiceTemplate() { $invoice_message = '

'.self::transformText('invoice_message').'

$view_link
'; return $invoice_message; } public static function emailQuoteSubject() { return ctrans('texts.quote_subject', ['number'=>'$number', 'account'=>'$company.name']); } public static function emailQuoteTemplate() { $quote_message = '

'.self::transformText('quote_message').'

$view_link
'; return $quote_message; } public static function emailPaymentSubject() { return ctrans('texts.payment_subject'); } public static function emailPaymentTemplate() { $payment_message = '

'.self::transformText('payment_message').'

$view_link
'; return $payment_message; } public static function emailCreditTemplate() { $credit_message = '

'.self::transformText('credit_message').'

$view_link
'; return $credit_message; } public static function emailPaymentPartialTemplate() { $payment_message = '

'.self::transformText('payment_message').'

$view_link
'; return $payment_message; } public static function emailPaymentPartialSubject() { return ctrans('texts.payment_subject'); } public static function emailReminder1Subject() { return ctrans('texts.reminder_subject', ['invoice'=>'$invoice.number', 'account'=>'$company.name']); } public static function emailReminder1Template() { return ''; } public static function emailReminder2Subject() { return ctrans('texts.reminder_subject', ['invoice'=>'$invoice.number', 'account'=>'$company.name']); } public static function emailReminder2Template() { return ''; } public static function emailReminder3Subject() { return ctrans('texts.reminder_subject', ['invoice'=>'$invoice.number', 'account'=>'$company.name']); } public static function emailReminder3Template() { return ''; } public static function emailReminderEndlessSubject() { return ctrans('texts.reminder_subject', ['invoice'=>'$invoice.number', 'account'=>'$company.name']); } public static function emailReminderEndlessTemplate() { return ''; } public static function emailStatementSubject() { return ''; } public static function emailStatementTemplate() { return ''; } private static function transformText($string) { //preformat the string, removing trailing colons. return str_replace(':', '$', rtrim( ctrans('texts.'.$string), ":")); } }