mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for payment mailer
This commit is contained in:
parent
c279cf013e
commit
c78feb80e8
@ -75,6 +75,10 @@ class SendRemindersCron extends Command
|
||||
|
||||
}
|
||||
|
||||
private function webHookExpiredQuotes()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private function executeWebhooks()
|
||||
{
|
||||
|
@ -132,9 +132,9 @@ class PaymentEmailEngine extends BaseEmailEngine
|
||||
$data['$client_balance'] = ['value' => Number::formatMoney($this->client->balance, $this->client), 'label' => ctrans('texts.account_balance')];
|
||||
$data['$paid_to_date'] = ['value' => Number::formatMoney($this->client->paid_to_date, $this->client), 'label' => ctrans('texts.paid_to_date')];
|
||||
|
||||
$data['$contact.full_name'] = ['value' => $this->contact->present()->name(), 'label' => ctrans('texts.name')];
|
||||
$data['$contact.email'] = ['value' => $this->contact->email, 'label' => ctrans('texts.email')];
|
||||
$data['$contact.phone'] = ['value' => $this->contact->phone, 'label' => ctrans('texts.phone')];
|
||||
$data['$contact.full_name'] = ['value' => isset($this->contact) ? $this->contact->present()->name() : '', 'label' => ctrans('texts.name')];
|
||||
$data['$contact.email'] = ['value' => isset($this->contact) ? $this->contact->email : '', 'label' => ctrans('texts.email')];
|
||||
$data['$contact.phone'] = ['value' => isset($this->contact) ? $this->contact->phone: '', 'label' => ctrans('texts.phone')];
|
||||
|
||||
$data['$contact.name'] = ['value' => isset($this->contact) ? $this->contact->present()->name() : 'no contact name on record', 'label' => ctrans('texts.contact_name')];
|
||||
$data['$contact.first_name'] = ['value' => isset($this->contact) ? $this->contact->first_name : '', 'label' => ctrans('texts.first_name')];
|
||||
|
@ -44,6 +44,7 @@ class SubscriptionTransformer extends EntityTransformer
|
||||
'assigned_user_id' => $this->encodePrimaryKey($subscription->assigned_user_id),
|
||||
'company_id' => $this->encodePrimaryKey($subscription->company_id),
|
||||
'price' => (float) $subscription->price,
|
||||
'promo_price' => (float) $subscription->promo_price,
|
||||
'frequency_id' => (string)$subscription->frequency_id,
|
||||
'auto_bill' => (string)$subscription->auto_bill,
|
||||
'promo_code' => (string)$subscription->promo_code,
|
||||
|
Loading…
Reference in New Issue
Block a user