2016-10-31 07:19:46 +00:00
|
|
|
from django.conf.urls import include, url
|
|
|
|
|
|
|
|
from stock.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-11-13 23:38:33 +00:00
|
|
|
#Stock urls
|
2016-11-08 17:14:41 +00:00
|
|
|
url(r'^new/counter/(?P<counter_id>[0-9]+)$', StockCreateView.as_view(), name='new'),
|
2016-11-09 16:49:19 +00:00
|
|
|
url(r'^edit/(?P<stock_id>[0-9]+)$', StockEditView.as_view(), name='edit'),
|
|
|
|
url(r'^list$', StockListView.as_view(), name='list'),
|
2016-11-13 23:38:33 +00:00
|
|
|
|
|
|
|
# StockItem urls
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)$', StockItemList.as_view(), name='items_list'),
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/stockItem/newItem$', StockItemCreateView.as_view(), name='new_item'),
|
2016-11-16 16:17:17 +00:00
|
|
|
url(r'^stockItem/(?P<item_id>[0-9]+)/edit$', StockItemEditView.as_view(), name='edit_item'),
|
2017-01-03 13:50:49 +00:00
|
|
|
url(r'^(?P<stock_id>[0-9]+)/stockItem/takeItems$', StockTakeItemsBaseFormView.as_view(), name='take_items'),
|
2016-12-28 18:25:43 +00:00
|
|
|
|
|
|
|
# ShoppingList urls
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/list$', StockShoppingListView.as_view(), name='shoppinglist_list'),
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/create$', StockItemQuantityBaseFormView.as_view(), name='shoppinglist_create'),
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/(?P<shoppinglist_id>[0-9]+)/items$', StockShoppingListItemListView.as_view(),
|
|
|
|
name='shoppinglist_items'),
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/(?P<shoppinglist_id>[0-9]+)/delete$', StockShoppingListDeleteView.as_view(),
|
|
|
|
name='shoppinglist_delete'),
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/(?P<shoppinglist_id>[0-9]+)/setDone$', StockShopppingListSetDone.as_view(),
|
|
|
|
name='shoppinglist_set_done'),
|
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/(?P<shoppinglist_id>[0-9]+)/setTodo$', StockShopppingListSetTodo.as_view(),
|
|
|
|
name='shoppinglist_set_todo'),
|
2016-12-29 17:50:19 +00:00
|
|
|
url(r'^(?P<stock_id>[0-9]+)/shoppingList/(?P<shoppinglist_id>[0-9]+)/updateStock$', StockUpdateAfterShopppingBaseFormView.as_view(),
|
|
|
|
name='update_after_shopping'),
|
2016-10-31 07:19:46 +00:00
|
|
|
]
|