transaction sales

This commit is contained in:
Myat Zin Wai Maw
2020-02-04 17:47:06 +06:30
parent 70a0c21567
commit 978e7b7e07
11 changed files with 80 additions and 33 deletions

View File

@@ -162,7 +162,7 @@
</p>
</li>
<%food_court = Lookup.find_by_lookup_type_and_value("food_court", "1")%>
<% if food_court %>
<% if food_court && ShiftSale.current_open_shift(current_user)%>
<li>
<p class="waves-effect waves-block p-l-30 m-b-5 close_cashier">
<i class="material-icons font-7 logout_icon">close</i>

View File

@@ -21,4 +21,4 @@
<% end %>
</ol>
</div>
<% end %>
<% end %>

View File

@@ -1,4 +1,4 @@
<% breadcrumb_add t(:bookings), "", @food_court ? foodcourt_food_court_path : dashboard_path %>
<% breadcrumb_add t(:bookings), "", (@food_court && current_user.role=='cashier') ? foodcourt_food_court_path : dashboard_path %>
<style>
@media screen and (max-width: 785px) {
section.content{

View File

@@ -1,5 +1,4 @@
<% breadcrumb_add t('views.right_panel.detail.order'), "", @food_court ? foodcourt_food_court_path : dashboard_path %>
<% breadcrumb_add t('views.right_panel.detail.order'), "", (@food_court && current_user.role=='cashier') ? foodcourt_food_court_path : dashboard_path %>
<style>
@media screen and (max-width: 785px) {
section.content{

View File

@@ -1,5 +1,4 @@
<% breadcrumb_add t('sale'), "", @food_court ? transactions_bookings_path : dashboard_path %>
<% breadcrumb_add t('sale'), "", (@food_court && current_user.role=='cashier') ? foodcourt_food_court_path : dashboard_path %>
<style>
@media screen and (max-width: 785px) {
section.content{

View File

@@ -1,6 +1,4 @@
<% breadcrumb_add t('sale'), transactions_sales_path, transactions_sales_path, t('details') %>
<% if can? :menage, Inventory %>
<% end %>
<% breadcrumb_add t('sale'), transactions_sales_path, :back, t('details') %>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<!-- Column One -->