[UPD] Task 966 - calendar bells

This commit is contained in:
Pablo
2019-07-15 16:18:41 +02:00
parent 7dd7533a99
commit 241c74f317
3 changed files with 5 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ class BusHotelCalendar(models.TransientModel):
'price_room_services_set': vals['price_room_services_set'],
'amount_total': vals['pending_amount'] + vals['invoices_paid'],
'real_dates': vals['real_dates'],
'channel_type': vals['channel_type'],
},
'tooltip': {
'folio_name': vals['folio_name'],

View File

@@ -94,7 +94,9 @@ class HotelReservation(models.Model):
'state': reserv['state'],
'price_room_services_set': reserv['price_room_services_set'],
'amount_total': reserv['amount_total'],
'real_dates': [reserv['real_checkin'], reserv['real_checkout']]})
'real_dates': [reserv['real_checkin'], reserv['real_checkout']],
'channel_type': reserv['channel_type'],
})
json_reservation_tooltips.update({
reserv['id']: {
'folio_name': reserv['folio_name'],

View File

@@ -76,7 +76,7 @@ var PMSHotelCalendarController = PMSCalendarController.include({
}
else if (notif[1]['type'] === 'reservation') {
var reserv = notif[1]['reservation'];
if (reserv['external_id']) {
if (reserv['channel_type'] == 'web') {
if (notif[1]['action'] === 'create') {
this._play_sound(this.SOUNDS.BOOK_NEW);
} else if (notif[1]['action'] !== 'unlink' && reserv['state'] === 'cancelled') {