|
1 | 1 | from django.conf.urls import url |
| 2 | +from applications.visitor_hostel.api.views import AddToInventory, InventoryListView |
2 | 3 |
|
3 | 4 | from . import views |
4 | 5 |
|
|
9 | 10 | url(r'^$', views.visitorhostel, name='visitorhostel'), |
10 | 11 | url(r'^get-booking-requests/', views.get_booking_requests, name='get_booking_requests'), |
11 | 12 | url(r'^get-active-bookings/', views.get_active_bookings, name='get_active_bookings'), |
| 13 | + url(r'^get-inactive-bookings/', views.get_inactive_bookings, name='get_inactive_bookings'), |
| 14 | + url(r'^get-completed-bookings/', views.get_completed_bookings, name='get_completed_bookings'), |
12 | 15 | url(r'^get-booking-form/', views.get_booking_form, name='get_booking_form'), |
13 | 16 | url(r'^request-booking/' , views.request_booking , name ='request_booking'), |
14 | 17 | url(r'^confirm-booking/' , views.confirm_booking , name ='confirm_booking'), |
|
23 | 26 |
|
24 | 27 | url(r'^bill_between_date_range/', views.bill_between_dates, name = 'generate_records'), |
25 | 28 | url(r'^room-availability/', views.room_availabity, name = 'room_availabity'), |
| 29 | + url(r'^room_availabity_new/', views.room_availabity_new, name = 'room_availabity_new'), |
| 30 | + |
| 31 | + url(r'^check-partial-booking/', views.check_partial_booking, name='check_partial_booking'), |
| 32 | + |
| 33 | + |
26 | 34 | url(r'^add-to-inventory/', views.add_to_inventory, name = 'add_to_inventory'), |
27 | 35 | url(r'^update-inventory/', views.update_inventory, name = 'update_inventory'), |
28 | 36 | url(r'^edit-room-status/', views.edit_room_status, name = 'edit_room_status'), |
29 | 37 | url(r'^booking-details/', views.booking_details, name = 'booking_details'), |
30 | 38 | url(r'^forward-booking/', views.forward_booking, name = 'forward_booking'), |
| 39 | + url(r'^intenders/', views.get_intenders, name='get_intenders'), # |
| 40 | + url(r'^user-details/', views.get_user_details, name='get_user_details'), # |
| 41 | + url(r'^get-booking-details/(?P<booking_id>\d+)/$', views.get_booking_details, name='get_booking_details'), # |
| 42 | + url(r'^forward-booking-new/$', views.forward_booking_new, name='forward_booking_new'), |
| 43 | + |
| 44 | + url(r'^confirm-booking-new/$', views.confirm_booking_new, name='confirm_booking_new'), # |
| 45 | + |
| 46 | + url(r'^inventory/$', views.get_inventory_items, name='get_inventory_items'), |
| 47 | + url(r'^inventory/(?P<pk>\d+)/$', views.get_inventory_item, name='get_inventory_item'), |
| 48 | + url(r'^inventory-bills/$', views.get_inventory_bills, name='get_inventory_bills'), |
| 49 | + url(r'^inventory-bills/(?P<pk>\d+)/$', views.get_inventory_bill, name='get_inventory_bill'), |
| 50 | + |
| 51 | + url(r'^accounts-income/$', views.get_all_bills, name='get_all_bills'), |
| 52 | + url(r'^accounts-income/(?P<pk>\d+)/$', views.get_bills_id, name='get_bills_id'), |
| 53 | + |
| 54 | + # url(r'^confirm-booking-new/$', views.confirm_booking_new, name='confirm_booking_new'), # |
| 55 | + #api |
| 56 | + url('api/inventory_add/', AddToInventory.as_view(), name='add-to-inventory'), |
| 57 | + url('api/inventory_list/', InventoryListView.as_view(), name='inventory-list'), |
| 58 | + # completed bookings |
| 59 | + url(r'^completed-bookings/', views.completed_bookings, name='completed_bookings'), |
| 60 | + |
31 | 61 | ] |
| 62 | + |
0 commit comments