adding shift sale summary
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
// padding-top: 4.5rem;
|
// padding-top: 4.5rem;
|
||||||
// }
|
// }
|
||||||
.card-columns {
|
.card-columns {
|
||||||
font-size: 18px !important;}
|
font-size: 18px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.others-payment{
|
.others-payment{
|
||||||
line-height:100px;
|
line-height:100px;
|
||||||
@@ -53,7 +54,8 @@
|
|||||||
|
|
||||||
.payment{
|
.payment{
|
||||||
height:70px;line-height:70px;
|
height:70px;line-height:70px;
|
||||||
align:center;color:white;
|
align:center;
|
||||||
|
color:white;
|
||||||
font-size:16px;
|
font-size:16px;
|
||||||
margin-top:5px;
|
margin-top:5px;
|
||||||
}
|
}
|
||||||
@@ -161,15 +163,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.green{
|
.green{
|
||||||
background-color: #009900
|
background-color: #009900;
|
||||||
}
|
}
|
||||||
|
|
||||||
.orange{
|
.orange{
|
||||||
background-color: #FF8C00
|
background-color: #FF8C00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue{
|
.blue{
|
||||||
background-color: blue
|
background-color: blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* End Colors */
|
/* End Colors */
|
||||||
|
|||||||
@@ -48,4 +48,9 @@ class Origami::ShiftsController < BaseOrigamiController
|
|||||||
def edit
|
def edit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sale_summary
|
||||||
|
@shift = ShiftSale.current_open_shift(current_user.id)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -105,9 +105,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2">
|
<div class="col-lg-2 col-md-2 col-sm-2">
|
||||||
<button id="refreshbutton" type="button" class="btn btn-block" style="border-radius:5px;color:#fff;background-color:red;"> Refresh off </button>
|
<button id="refreshbutton" type="button" class="btn btn-block" style="border-radius:5px;color:#fff;background-color:red;"> Refresh off </button>
|
||||||
<button id="cash_in" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Cash In </button>
|
<button id="cash_in" type="button" class="btn btn-block btn-primary"> Cash In </button>
|
||||||
<button id="cash_out" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Cash Out </button>
|
<button id="cash_out" type="button" class="btn btn-block btn-primary"> Cash Out </button>
|
||||||
<button id="close_cashier" type="button" class="btn btn-block btn-primary" style="border-radius:5px;color:#fff;"> Close Cashier </button>
|
<button id="sale_summary" type="button" class="btn btn-block btn-primary">Sale Sammary</button>
|
||||||
|
<button id="close_cashier" type="button" class="btn btn-block btn-primary"> Close Cashier </button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Column One -->
|
<!-- Column One -->
|
||||||
@@ -116,20 +117,28 @@ $(document).ready(function(){
|
|||||||
$(".tables").on('click', function(){
|
$(".tables").on('click', function(){
|
||||||
var dining_id = $(this).attr("data-id");
|
var dining_id = $(this).attr("data-id");
|
||||||
window.location.href = '/origami/table/' + dining_id;
|
window.location.href = '/origami/table/' + dining_id;
|
||||||
})
|
});
|
||||||
|
|
||||||
$(".sales").on('click',function(){
|
$(".sales").on('click',function(){
|
||||||
var sale_id = $(this).attr("data-id");
|
var sale_id = $(this).attr("data-id");
|
||||||
window.location.href = '/origami/sale/' + sale_id;
|
window.location.href = '/origami/sale/' + sale_id;
|
||||||
})
|
});
|
||||||
|
|
||||||
$(".rooms").on('click', function(){
|
$(".rooms").on('click', function(){
|
||||||
var dining_id = $(this).attr("data-id");
|
var dining_id = $(this).attr("data-id");
|
||||||
window.location.href = '/origami/room/' + dining_id;
|
window.location.href = '/origami/room/' + dining_id;
|
||||||
})
|
});
|
||||||
|
|
||||||
$(".orders").on('click',function(){
|
$(".orders").on('click',function(){
|
||||||
var order_id = $(this).attr("data-id");
|
var order_id = $(this).attr("data-id");
|
||||||
window.location.href = '/origami/order/' + order_id;
|
window.location.href = '/origami/order/' + order_id;
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#sale_summary').on('click',function(){
|
||||||
|
window.location.href = '/origami/shift/sale_summary';
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var timer;
|
var timer;
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ Rails.application.routes.draw do
|
|||||||
resources :shifts, only: [:index, :new, :create, :edit]
|
resources :shifts, only: [:index, :new, :create, :edit]
|
||||||
post 'close_shift' => 'shifts#update_shift'
|
post 'close_shift' => 'shifts#update_shift'
|
||||||
get 'shift/close' => 'shifts#show'
|
get 'shift/close' => 'shifts#show'
|
||||||
|
get 'shift/sale_summary' => 'shifts#sale_summary'
|
||||||
#shift - index (open/close shift landing page)
|
#shift - index (open/close shift landing page)
|
||||||
#shift - show (sales summary display)
|
#shift - show (sales summary display)
|
||||||
#shift - new (open shift)
|
#shift - new (open shift)
|
||||||
|
|||||||
Reference in New Issue
Block a user