Browse Source

Cambios para que no aparezca el nombre de Jorge (proveedor) en las invitaciones

main
Celestino Rey 3 years ago
parent
commit
e33c456cfc
2 changed files with 10 additions and 4 deletions
  1. +8
    -4
      EasyAppointments/easy-folder/application/libraries/Ics_file.php
  2. +2
    -0
      EasyAppointments/easy-folder/application/views/emails/appointment_details.php

+ 8
- 4
EasyAppointments/easy-folder/application/libraries/Ics_file.php View File

@ -86,7 +86,8 @@ class Ics_file {
}
$description = [
'',
/* quito todo esto para que no aparezca el nombre del proveedor
* '',
lang('provider'),
'',
lang('name') . ': ' . $provider['first_name'] . ' ' . $provider['last_name'],
@ -96,7 +97,8 @@ class Ics_file {
lang('city') . ': ' . $provider['city'],
lang('zip_code') . ': ' . $provider['zip_code'],
'',
lang('customer'),
*/
lang('customer'),
'',
lang('name') . ': ' . $customer['first_name'] . ' ' . $customer['last_name'],
lang('email') . ': ' . $customer['email'],
@ -144,7 +146,9 @@ class Ics_file {
$alarm->setAction('EMAIL');
$alarm->addAttendee($attendee);
$event->addAlarm($alarm);
/*
* quito esto para que no se incluya el nombre del proveedor
*
$attendee = new Attendee(new Formatter());
if (isset($provider['email']) && ! empty($provider['email']))
@ -158,7 +162,7 @@ class Ics_file {
->setParticipationStatus('ACCEPTED')
->setRsvp('FALSE');
$event->addAttendee($attendee);
*/
// Set the organizer.
$organizer = new Organizer(new Formatter());


+ 2
- 0
EasyAppointments/easy-folder/application/views/emails/appointment_details.php View File

@ -20,10 +20,12 @@
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('service') ?></td>
<td style="padding: 3px;"><?= $appointment_service ?></td>
</tr>
<!-- No queremos que aparezca el nombre
<tr>
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('provider') ?></td>
<td style="padding: 3px;"><?= $appointment_provider ?></td>
</tr>
-->
<tr>
<td class="label" style="padding: 3px;font-weight: bold;"><?= lang('start') ?></td>
<td style="padding: 3px;"><?= $appointment_start_date ?></td>


Loading…
Cancel
Save