Add Date in Cashier's Dashboard and remove no need breadcrumb
This commit is contained in:
@@ -17,40 +17,24 @@
|
||||
//= require custom.js
|
||||
|
||||
/* Constant Varaibles */
|
||||
_ADD_ORDER_ = "/ ADD ORDER";
|
||||
_CASH_IN_ = "/ CASH IN";
|
||||
_CASH_OUT_ = "/ CASH OUT";
|
||||
_CASH_MGMT_ = "/ CASH MGMT";
|
||||
_CREDIT_PAYMENTS_ = "/ CREDIT PAYMENTS";
|
||||
_CUSTOMERS_ = "/ CUSTOMERS";
|
||||
_DASHBOARD_ = "/ DASHBOARD";
|
||||
_DISCOUNTS_ = "/ DISCOUNTS";
|
||||
_CASHIER_ = "/ CASHIER";
|
||||
_IN_DUTIES_ = "/ IN DUTIES";
|
||||
_JCB_ = "/ JCB PAYMENT";
|
||||
_MASTER_ = "/ MASTER PAYMENT";
|
||||
_MOVE_ROOM_ = "/ MOVE ROOM";
|
||||
_MOVE_TABLE_ = "/ MOVE TABLE";
|
||||
_MPU_ = "/ MPU PAYMENT";
|
||||
_ORDERS_ = "/ ORDERS";
|
||||
_OTHER_CHARGES_ = "/ OTHER CHARGES";
|
||||
_OTHER_PAYMENTS_ = "/ OTHER PAYMENTS";
|
||||
_PAYMENTS_ = "/ PAYMENTS";
|
||||
_OTHER_CHARGES_ = "/ CHARGES";
|
||||
_OTHER_PAYMENTS_ = "/ OTHER PAYMENT";
|
||||
_PAYMENTS_ = "/ PAYMENT";
|
||||
_PAYPAR_PAYMENT_ = "/ PAYPAR PAYMENT";
|
||||
_PENDING_ORDER_ = "/ PENDING ORDER";
|
||||
_PRODUCT_COMMISSIONS_= "/ PRODUCT COMMISSIONS";
|
||||
_COMMISSIONS_ = "/ COMMISSIONS";
|
||||
_REDEEM_PAYMENT_ = "/ REDEEM PAYMENT";
|
||||
_ROOM_INVOICES_ = "/ ROOM INVOICES";
|
||||
_ROOM_ = "/ ROOM";
|
||||
_SALE_EDIT_ = "/ SALE EDIT";
|
||||
_SECOND_DISPLAY_ = "/ CUSTOMER VIEW";
|
||||
_CLOSE_CASHIER_ = "/ CLOSE CASHIER";
|
||||
_SPLIT_BILL_ = "/ SPLIT BILL";
|
||||
_TABLE_INVOICE_ = "/ TABLE INVOICE";
|
||||
_UNION_ = "/ UNION PAYMENT";
|
||||
_VISA_ = "/ VISA PAYMENT";
|
||||
_VOUCHER_ = "/ VOUCHER";
|
||||
_TABLE_ = "/ TABLE";
|
||||
_SURVEY_ = "/ SURVEY";
|
||||
/* Constant Varaibles */
|
||||
|
||||
|
||||
@@ -493,7 +493,6 @@
|
||||
jQuery('.first_'+id).click();
|
||||
});
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_ADD_ORDER_);
|
||||
$(".tables").on('click', function () {
|
||||
$('.tables').css('background-color','');
|
||||
$('.tables').removeClass('purple')
|
||||
|
||||
@@ -56,9 +56,6 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_CASH_IN_);
|
||||
});
|
||||
var payment_method = "";
|
||||
$('.payment-type').on('click',function(){
|
||||
$('.payment-type').css("background-color","#7a62d3")
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<h1>CashMgmt#new</h1>
|
||||
<p>Find me in app/views/cash_mgmt/new.html.erb</p>
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_CASH_MGMT_);
|
||||
});
|
||||
|
||||
|
||||
@@ -25,9 +25,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_CASH_OUT_);
|
||||
});
|
||||
$('#cash_out').on('click',function(){
|
||||
var reference = $('#reference').val();
|
||||
var remark = $('#remark').val();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="block-header">
|
||||
<h2><%= t :dashboard %></h2>
|
||||
<!-- <h2><%= t :dashboard %></h2> -->
|
||||
<h2><%= t :date_time %> : <%= Time.zone.now.utc.getlocal.strftime("%Y-%m-%d %I:%M %p") %></h2>
|
||||
</div>
|
||||
<% if @print_settings.precision.to_i > 0
|
||||
precision = @print_settings.precision
|
||||
@@ -191,11 +192,6 @@
|
||||
</div>
|
||||
<button type="button" data-href="<%=origami_second_display_index_path%>" target="_blank" id="second_view" class="btn action-btn bg-blue waves-effect second_view hidden" style="height: 45px">Customer View</button>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_DASHBOARD_);
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(".cashier_view").on('click', function() {
|
||||
window.location.href = '/origami';
|
||||
|
||||
@@ -139,7 +139,6 @@
|
||||
<!-- Column One -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_CASHIER_);
|
||||
$(".tables").on('click', function(){
|
||||
var dining_id = $(this).attr("data-id");
|
||||
window.location.href = '/origami/table/' + dining_id;
|
||||
|
||||
@@ -543,7 +543,6 @@
|
||||
<script>
|
||||
var cashier_type = "cashier";
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_TABLE_);
|
||||
/* start check first bill or not*/
|
||||
var receipt_no = "";
|
||||
if(($("#receipt_no").html()!=undefined) && ($("#receipt_no").html()!="")){
|
||||
|
||||
@@ -166,7 +166,6 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_MOVE_ROOM_);
|
||||
$(".tables").on('click', function(){
|
||||
$('.tables').removeClass('selected-item');
|
||||
$(this).addClass('selected-item');
|
||||
|
||||
@@ -284,7 +284,6 @@ end
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_MOVE_TABLE_);
|
||||
$(".tables").on('click', function(){
|
||||
$('.tables').removeClass('selected-item');
|
||||
$(this).addClass('selected-item');
|
||||
|
||||
@@ -253,7 +253,6 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_ORDERS_);
|
||||
$(".tables").on('click', function(){
|
||||
var dining_id = $(this).attr("data-id");
|
||||
window.location.href = '/origami/table/' + dining_id;
|
||||
|
||||
@@ -39,9 +39,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_PENDING_ORDER_);
|
||||
});
|
||||
cashier_type = "quick_service"
|
||||
$(".sales").on('click',function(){
|
||||
var sale_id = $(this).attr("data-id");
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_PRODUCT_COMMISSIONS_);
|
||||
setHeaderBreadCrumb(_COMMISSIONS_);
|
||||
var selected_sale_item = 0;
|
||||
|
||||
$('.sale_item').on('click', function () {
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_ROOM_INVOICES_);
|
||||
$(".tables").on('click', function(){
|
||||
var dining_id = $(this).attr("data-id");
|
||||
window.location.href = '/origami/table/<%= @room.id %>/table_invoice/' + dining_id;
|
||||
|
||||
@@ -484,7 +484,6 @@
|
||||
<script>
|
||||
var cashier_type = "cashier";
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_ROOM_);
|
||||
// $(".tables").on('click', function(){
|
||||
// var customer_id=$(".customer-id").text();
|
||||
// show_customer_details(customer_id);
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
setHeaderBreadCrumb(_SECOND_DISPLAY_);
|
||||
$('#s_reload').on('click', function () {
|
||||
window.location.href = '/origami/second_display';
|
||||
});
|
||||
|
||||
@@ -58,9 +58,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_CLOSE_CASHIER_);
|
||||
});
|
||||
$('#close_cashier').on('click',function(){
|
||||
var amount = $('#closing_balance_amount').val();
|
||||
var shift_id = "<%= @shift.id rescue ""%>"
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_TABLE_INVOICE_);
|
||||
$(".tables").on('click', function(){
|
||||
var dining_id = $(this).attr("data-id");
|
||||
window.location.href = '/origami/table/<%= @table.id %>/table_invoice/' + dining_id;
|
||||
|
||||
@@ -212,7 +212,6 @@
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setHeaderBreadCrumb(_TABLE_INVOICE_);
|
||||
$(".tables").on('click', function(){
|
||||
var dining_id = $(this).attr("data-id");
|
||||
window.location.href = '/origami/table/<%= @table.id %>/table_invoice/' + dining_id;
|
||||
|
||||
@@ -19,7 +19,7 @@ class ActionController::Base
|
||||
render :json => [{ status: false, message: 'Invalid Access!'}]
|
||||
end
|
||||
else
|
||||
check for license file
|
||||
#check for license file
|
||||
if check_license
|
||||
current_license(ENV["SX_PROVISION_URL"])
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user