from django.urls import path, include
from .views import commercial_offer, get_last_price_by_good_name, save_commercial_offer, commercial_offer_list, commercial_offer_detail, commercial_offer_delete,load_commercial_offer,move_commercial_offer_to_project, export_commercial_offer_to_excel, load_commercial_offer_by_id, copy_commercial_offer_by_id, get_data_from_template_file_commercial_offer

from utils.utils import _get_all_goods_name_with_unit_of_measurement_for_web

urlpatterns = [
    # path('add_new_commercial_offer/', commercial_offer, name='commercial_offer'), 
    path('', commercial_offer_list, name='commercial_offer_list'), 
    path('add-new-commercial-offer/', commercial_offer, name='commercial_offer'),
    path('commercial-offer-detail/<uuid:id>/', commercial_offer_detail, name='commercial_offer_detail'),
    
    path('delete-commercial-offer/', commercial_offer_delete, name='commercial_offer_delete'),
    path('move-commercial-offer-to-project/', move_commercial_offer_to_project, name='move_commercial_offer_to_project'),
    path('export-commercial-offer-to-excel/', export_commercial_offer_to_excel, name='export_commercial_offer_to_excel'),



    path('get-all-goods-name-with-unit-of-measurement-for-web/', _get_all_goods_name_with_unit_of_measurement_for_web, name='_get_all_goods_name_with_unit_of_measurement_for_web'),
    path('get-last-price-by-good-name/', get_last_price_by_good_name, name='get_last_price_by_good_name'),
    path('save-commercial-offer/', save_commercial_offer, name='save_commercial_offer'),
    path('load-commercial-offer/', load_commercial_offer, name='load_commercial_offer'),
    path('load-commercial-offer-by-id/', load_commercial_offer_by_id, name='load_commercial_offer_by_id'),
    path('copy-commercial-offer-by-id/', copy_commercial_offer_by_id, name='copy_commercial_offer_by_id'),
    path('get-data-from-template-file-commercial_offer/', get_data_from_template_file_commercial_offer, name='get_data_from_template_file_commercial_offer'),
]
