Edit Dashboard's photo and Add Bread Crumb Name
This commit is contained in:
@@ -16,6 +16,43 @@
|
|||||||
//= require BSBMaterial/demo.js
|
//= require BSBMaterial/demo.js
|
||||||
//= require custom.js
|
//= 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";
|
||||||
|
_PAYPAR_PAYMENT_ = "/ PAYPAR PAYMENT";
|
||||||
|
_PENDING_ORDER_ = "/ PENDING ORDER";
|
||||||
|
_PRODUCT_COMMISSIONS_= "/ PRODUCT 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 */
|
||||||
|
|
||||||
$(document).on('turbolinks:load', function() {
|
$(document).on('turbolinks:load', function() {
|
||||||
|
|
||||||
@@ -357,3 +394,7 @@ function resCBPay(resMsg,card_sale_trans_id,cmd_type,payment_type,bnk_bill_amoun
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//end CB ECR integration
|
//end CB ECR integration
|
||||||
|
|
||||||
|
function setHeaderBreadCrumb(params){
|
||||||
|
$("#others_payment").html(params);
|
||||||
|
}
|
||||||
@@ -92,5 +92,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.style_image{
|
.style_image{
|
||||||
height : 107px;
|
height : 138px;
|
||||||
|
padding : 20px 0 20px 0;
|
||||||
|
width : 70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.style_icon{
|
||||||
|
font-size: 111px;
|
||||||
|
padding : 20px 0 20px 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ class Origami::JcbController < BaseOrigamiController
|
|||||||
@jcbcount = 0
|
@jcbcount = 0
|
||||||
others = 0
|
others = 0
|
||||||
|
|
||||||
@payment_method_setting_nav = PaymentMethodSetting.all
|
|
||||||
@shop = Shop::ShopDetail
|
@shop = Shop::ShopDetail
|
||||||
if @shop.is_rounding_adj
|
if @shop.is_rounding_adj
|
||||||
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ class Origami::MasterController < BaseOrigamiController
|
|||||||
@mastercount = 0
|
@mastercount = 0
|
||||||
others = 0
|
others = 0
|
||||||
|
|
||||||
@payment_method_setting_nav = PaymentMethodSetting.all
|
|
||||||
@shop = Shop::ShopDetail
|
@shop = Shop::ShopDetail
|
||||||
if @shop.is_rounding_adj
|
if @shop.is_rounding_adj
|
||||||
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ class Origami::MpuController < BaseOrigamiController
|
|||||||
@mpucount = 0
|
@mpucount = 0
|
||||||
others = 0
|
others = 0
|
||||||
|
|
||||||
@payment_method_setting_nav = PaymentMethodSetting.all
|
|
||||||
@shop = Shop::ShopDetail
|
@shop = Shop::ShopDetail
|
||||||
if @shop.is_rounding_adj
|
if @shop.is_rounding_adj
|
||||||
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ class Origami::RedeemPaymentsController < BaseOrigamiController
|
|||||||
@membership_rebate_balance=0
|
@membership_rebate_balance=0
|
||||||
sale_data = Sale.find_by_sale_id(@sale_id)
|
sale_data = Sale.find_by_sale_id(@sale_id)
|
||||||
|
|
||||||
@payment_method_setting_nav = PaymentMethodSetting.all
|
|
||||||
@shop = Shop::ShopDetail
|
@shop = Shop::ShopDetail
|
||||||
# if @shop.is_rounding_adj
|
# if @shop.is_rounding_adj
|
||||||
# new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
# new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ class Origami::SurveysController < BaseOrigamiController
|
|||||||
@id = params[:id]
|
@id = params[:id]
|
||||||
@cashier_type = params[:type]
|
@cashier_type = params[:type]
|
||||||
|
|
||||||
|
|
||||||
if(@id[0,3] == "SAL")
|
if(@id[0,3] == "SAL")
|
||||||
@sale = Sale.find(@id)
|
@sale = Sale.find(@id)
|
||||||
@receipt_no = @sale.receipt_no
|
@receipt_no = @sale.receipt_no
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ class Origami::UnionpayController < BaseOrigamiController
|
|||||||
@unionpaycount = 0
|
@unionpaycount = 0
|
||||||
others = 0
|
others = 0
|
||||||
|
|
||||||
@payment_method_setting_nav = PaymentMethodSetting.all
|
|
||||||
@shop = Shop::ShopDetail
|
@shop = Shop::ShopDetail
|
||||||
if @shop.is_rounding_adj
|
if @shop.is_rounding_adj
|
||||||
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ class Origami::VisaController < BaseOrigamiController
|
|||||||
@visacount = 0
|
@visacount = 0
|
||||||
others = 0
|
others = 0
|
||||||
|
|
||||||
@payment_method_setting_nav = PaymentMethodSetting.all
|
|
||||||
@shop = Shop::ShopDetail
|
@shop = Shop::ShopDetail
|
||||||
if @shop.is_rounding_adj
|
if @shop.is_rounding_adj
|
||||||
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||||
|
|||||||
@@ -27,12 +27,10 @@
|
|||||||
<img src="<%= asset_path('SX-Logo-small.png') %>" width="40" height="40" alt="Logo" />
|
<img src="<%= asset_path('SX-Logo-small.png') %>" width="40" height="40" alt="Logo" />
|
||||||
<span class="navbar-brand-txt">SX Restaurant</span>
|
<span class="navbar-brand-txt">SX Restaurant</span>
|
||||||
</a>
|
</a>
|
||||||
<% if @payment_method_setting_nav.present? %>
|
|
||||||
<span class="navbar-brand m-0">/
|
|
||||||
<span id="otherPayment"></span> Payment
|
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
|
<span class="navbar-brand m-0">/
|
||||||
|
<span id="others_payment"></span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- Start Shop Info -->
|
<!-- Start Shop Info -->
|
||||||
<div class="navbar-right">
|
<div class="navbar-right">
|
||||||
@@ -83,11 +81,6 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
if((document.getElementById("otherPayment")!=undefined) && (document.getElementById("otherPayment")!=null) && (document.getElementById("otherPayment")!="")){
|
|
||||||
var otherPayment = location.href.split('/')[location.href.split('/').length -1 ];
|
|
||||||
document.getElementById("otherPayment").innerHTML = otherPayment;
|
|
||||||
}
|
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$('.delete').click(function(){
|
$('.delete').click(function(){
|
||||||
var method = $(this).attr('data-method');
|
var method = $(this).attr('data-method');
|
||||||
|
|||||||
@@ -166,7 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="login_dashboard p-card">
|
<div class="login_dashboard p-card">
|
||||||
<i class="material-icons" style="font-size: 100px;">person</i>
|
<i class="material-icons style_icon">person</i>
|
||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -189,7 +189,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="login_dashboard p-card">
|
<div class="login_dashboard p-card">
|
||||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
<i class="material-icons style_icon">person</i>
|
||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="login_dashboard p-card">
|
<div class="login_dashboard p-card">
|
||||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
<i class="material-icons style_icon">person</i>
|
||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -237,7 +237,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="login_dashboard p-card">
|
<div class="login_dashboard p-card">
|
||||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
<i class="material-icons style_icon">person</i>
|
||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="login_dashboard p-card">
|
<div class="login_dashboard p-card">
|
||||||
<i class="material-icons md-48" style="font-size: 100px;">person</i>
|
<i class="material-icons style_icon">person</i>
|
||||||
<div class="p-name"><b><%= employee.name%></b>
|
<div class="p-name"><b><%= employee.name%></b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -488,6 +488,7 @@
|
|||||||
jQuery('.first_'+id).click();
|
jQuery('.first_'+id).click();
|
||||||
});
|
});
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_ADD_ORDER_);
|
||||||
$(".tables").on('click', function () {
|
$(".tables").on('click', function () {
|
||||||
$('.tables').css('background-color','');
|
$('.tables').css('background-color','');
|
||||||
$('.tables').removeClass('purple')
|
$('.tables').removeClass('purple')
|
||||||
|
|||||||
@@ -56,6 +56,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_CASH_IN_);
|
||||||
|
});
|
||||||
var payment_method = "";
|
var payment_method = "";
|
||||||
$('.payment-type').on('click',function(){
|
$('.payment-type').on('click',function(){
|
||||||
$('.payment-type').css("background-color","#7a62d3")
|
$('.payment-type').css("background-color","#7a62d3")
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
<h1>CashMgmt#new</h1>
|
<h1>CashMgmt#new</h1>
|
||||||
<p>Find me in app/views/cash_mgmt/new.html.erb</p>
|
<p>Find me in app/views/cash_mgmt/new.html.erb</p>
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_CASH_MGMT_);
|
||||||
|
});
|
||||||
|
|||||||
@@ -25,7 +25,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_CASH_OUT_);
|
||||||
|
});
|
||||||
$('#cash_out').on('click',function(){
|
$('#cash_out').on('click',function(){
|
||||||
var reference = $('#reference').val();
|
var reference = $('#reference').val();
|
||||||
var remark = $('#remark').val();
|
var remark = $('#remark').val();
|
||||||
|
|||||||
@@ -118,6 +118,7 @@
|
|||||||
<span id="cashier_type" class="hidden"><%=@cashier_type%></span>
|
<span id="cashier_type" class="hidden"><%=@cashier_type%></span>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_CREDIT_PAYMENTS_);
|
||||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||||
else {
|
else {
|
||||||
$('#validamount').attr("value",parseFloat("<%= @can_credit %>") - parseFloat(localStorage.getItem("cash")));
|
$('#validamount').attr("value",parseFloat("<%= @can_credit %>") - parseFloat(localStorage.getItem("cash")));
|
||||||
|
|||||||
@@ -288,6 +288,10 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_CUSTOMERS_);
|
||||||
|
|
||||||
|
});
|
||||||
// Read Card Reader
|
// Read Card Reader
|
||||||
$("#member_acc_no").on('click', function(e){
|
$("#member_acc_no").on('click', function(e){
|
||||||
var cardNo = "";
|
var cardNo = "";
|
||||||
|
|||||||
@@ -191,6 +191,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_DASHBOARD_);
|
||||||
|
});
|
||||||
|
|
||||||
$(".cashier_view").on('click', function() {
|
$(".cashier_view").on('click', function() {
|
||||||
window.location.href = '/origami';
|
window.location.href = '/origami';
|
||||||
|
|||||||
@@ -235,6 +235,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_DISCOUNTS_);
|
||||||
|
|
||||||
$('#back').on('click',function(){
|
$('#back').on('click',function(){
|
||||||
var id = $("#table_id").text();
|
var id = $("#table_id").text();
|
||||||
|
|||||||
@@ -139,6 +139,7 @@
|
|||||||
<!-- Column One -->
|
<!-- Column One -->
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_CASHIER_);
|
||||||
$(".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;
|
||||||
|
|||||||
@@ -543,6 +543,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "cashier";
|
var cashier_type = "cashier";
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_TABLE_);
|
||||||
/* start check first bill or not*/
|
/* start check first bill or not*/
|
||||||
var receipt_no = "";
|
var receipt_no = "";
|
||||||
if(($("#receipt_no").html()!=undefined) && ($("#receipt_no").html()!="")){
|
if(($("#receipt_no").html()!=undefined) && ($("#receipt_no").html()!="")){
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_IN_DUTIES_);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
$(document).on('click', ".induty_tr", function () {
|
$(document).on('click', ".induty_tr", function () {
|
||||||
|
|
||||||
$(this).closest('tr').find('.checkbox_check').prop("checked", true);
|
$(this).closest('tr').find('.checkbox_check').prop("checked", true);
|
||||||
|
|||||||
@@ -121,6 +121,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_JCB_);
|
||||||
var sale_id = "<%= @sale_id %>";
|
var sale_id = "<%= @sale_id %>";
|
||||||
var bank_integration = "<%= @bank_integration %>";
|
var bank_integration = "<%= @bank_integration %>";
|
||||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||||
|
|||||||
@@ -122,6 +122,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_MASTER_);
|
||||||
var sale_id = "<%= @sale_id %>";
|
var sale_id = "<%= @sale_id %>";
|
||||||
var bank_integration = "<%= @bank_integration %>";
|
var bank_integration = "<%= @bank_integration %>";
|
||||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||||
|
|||||||
@@ -166,6 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_MOVE_ROOM_);
|
||||||
$(".tables").on('click', function(){
|
$(".tables").on('click', function(){
|
||||||
$('.tables').removeClass('selected-item');
|
$('.tables').removeClass('selected-item');
|
||||||
$(this).addClass('selected-item');
|
$(this).addClass('selected-item');
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ end
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_MOVE_TABLE_);
|
||||||
$(".tables").on('click', function(){
|
$(".tables").on('click', function(){
|
||||||
$('.tables').removeClass('selected-item');
|
$('.tables').removeClass('selected-item');
|
||||||
$(this).addClass('selected-item');
|
$(this).addClass('selected-item');
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_MPU_);
|
||||||
var sale_id = "<%= @sale_id %>";
|
var sale_id = "<%= @sale_id %>";
|
||||||
var bank_integration = "<%= @bank_integration %>";
|
var bank_integration = "<%= @bank_integration %>";
|
||||||
|
|
||||||
|
|||||||
@@ -253,6 +253,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_ORDERS_);
|
||||||
$(".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;
|
||||||
|
|||||||
@@ -211,6 +211,7 @@
|
|||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_OTHER_CHARGES_);
|
||||||
$(".cashier_number").on('click', function(event){
|
$(".cashier_number").on('click', function(event){
|
||||||
if(event.handled !== true) {
|
if(event.handled !== true) {
|
||||||
var original_value=0;
|
var original_value=0;
|
||||||
|
|||||||
@@ -27,6 +27,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
|
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_OTHER_PAYMENTS_);
|
||||||
|
});
|
||||||
/* start check first bill or not*/
|
/* start check first bill or not*/
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
var receipt_no = "";
|
var receipt_no = "";
|
||||||
|
|||||||
@@ -461,6 +461,7 @@ var cashier_type = "<%= @cashier_type %>";
|
|||||||
var customer_id = "<%= @customer.id %>";
|
var customer_id = "<%= @customer.id %>";
|
||||||
var customer_name = "<%= @customer.name %>";
|
var customer_name = "<%= @customer.name %>";
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_PAYMENTS_);
|
||||||
//start customer modal popup
|
//start customer modal popup
|
||||||
if((customer_id!=undefined) && (customer_id!=null) && (customer_id!="")){
|
if((customer_id!=undefined) && (customer_id!=null) && (customer_id!="")){
|
||||||
if((customer_id == 'CUS-000000000001') && (customer_name == 'WALK-IN')){
|
if((customer_id == 'CUS-000000000001') && (customer_name == 'WALK-IN')){
|
||||||
|
|||||||
@@ -14,3 +14,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_PAYPAR_PAYMENT_);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -39,6 +39,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_PENDING_ORDER_);
|
||||||
|
});
|
||||||
cashier_type = "quick_service"
|
cashier_type = "quick_service"
|
||||||
$(".sales").on('click',function(){
|
$(".sales").on('click',function(){
|
||||||
var sale_id = $(this).attr("data-id");
|
var sale_id = $(this).attr("data-id");
|
||||||
|
|||||||
@@ -121,6 +121,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_PRODUCT_COMMISSIONS_);
|
||||||
var selected_sale_item = 0;
|
var selected_sale_item = 0;
|
||||||
|
|
||||||
$('.sale_item').on('click', function () {
|
$('.sale_item').on('click', function () {
|
||||||
|
|||||||
@@ -109,6 +109,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_REDEEM_PAYMENT_);
|
||||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||||
else {
|
else {
|
||||||
$('#redeemamt').attr("value",parseFloat("<%= @redeem_prices %>") - parseFloat(localStorage.getItem("cash")));
|
$('#redeemamt').attr("value",parseFloat("<%= @redeem_prices %>") - parseFloat(localStorage.getItem("cash")));
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_ROOM_INVOICES_);
|
||||||
$(".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/<%= @room.id %>/table_invoice/' + dining_id;
|
window.location.href = '/origami/table/<%= @room.id %>/table_invoice/' + dining_id;
|
||||||
|
|||||||
@@ -484,6 +484,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "cashier";
|
var cashier_type = "cashier";
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_ROOM_);
|
||||||
// $(".tables").on('click', function(){
|
// $(".tables").on('click', function(){
|
||||||
// var customer_id=$(".customer-id").text();
|
// var customer_id=$(".customer-id").text();
|
||||||
// show_customer_details(customer_id);
|
// show_customer_details(customer_id);
|
||||||
|
|||||||
@@ -189,6 +189,8 @@
|
|||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
// Bill Request
|
// Bill Request
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
setHeaderBreadCrumb(_SALE_EDIT_);
|
||||||
$('.editModal').on('click', function () {
|
$('.editModal').on('click', function () {
|
||||||
$("#action").attr('data-type', $(this).attr('data-type'));
|
$("#action").attr('data-type', $(this).attr('data-type'));
|
||||||
$("#action").attr('data-id', $(this).attr('data-id'));
|
$("#action").attr('data-id', $(this).attr('data-id'));
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
setHeaderBreadCrumb(_SECOND_DISPLAY_);
|
||||||
$('#s_reload').on('click', function () {
|
$('#s_reload').on('click', function () {
|
||||||
window.location.href = '/origami/second_display';
|
window.location.href = '/origami/second_display';
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -58,6 +58,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_CLOSE_CASHIER_);
|
||||||
|
});
|
||||||
$('#close_cashier').on('click',function(){
|
$('#close_cashier').on('click',function(){
|
||||||
var amount = $('#closing_balance_amount').val();
|
var amount = $('#closing_balance_amount').val();
|
||||||
var shift_id = "<%= @shift.id rescue ""%>"
|
var shift_id = "<%= @shift.id rescue ""%>"
|
||||||
|
|||||||
@@ -332,6 +332,7 @@
|
|||||||
var split_sale_id = "";
|
var split_sale_id = "";
|
||||||
var split_receipt_no = "";
|
var split_receipt_no = "";
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_SPLIT_BILL_);
|
||||||
$('#back').on('click',function(){
|
$('#back').on('click',function(){
|
||||||
backToOrigami();
|
backToOrigami();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -196,6 +196,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_SURVEY_);
|
||||||
//click add button for new row
|
//click add button for new row
|
||||||
$('#addForeigner').on('click',function(){
|
$('#addForeigner').on('click',function(){
|
||||||
$('#newTemplate').removeClass('hidden');
|
$('#newTemplate').removeClass('hidden');
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_TABLE_INVOICE_);
|
||||||
$(".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/<%= @table.id %>/table_invoice/' + dining_id;
|
window.location.href = '/origami/table/<%= @table.id %>/table_invoice/' + dining_id;
|
||||||
|
|||||||
@@ -212,6 +212,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
setHeaderBreadCrumb(_TABLE_INVOICE_);
|
||||||
$(".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/<%= @table.id %>/table_invoice/' + dining_id;
|
window.location.href = '/origami/table/<%= @table.id %>/table_invoice/' + dining_id;
|
||||||
|
|||||||
@@ -123,6 +123,7 @@
|
|||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_UNION_);
|
||||||
var sale_id = "<%= @sale_id %>";
|
var sale_id = "<%= @sale_id %>";
|
||||||
var bank_integration = "<%= @bank_integration %>";
|
var bank_integration = "<%= @bank_integration %>";
|
||||||
|
|
||||||
|
|||||||
@@ -122,6 +122,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var cashier_type = "<%= @cashier_type %>";
|
var cashier_type = "<%= @cashier_type %>";
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_VISA_);
|
||||||
var sale_id = "<%= @sale_id %>";
|
var sale_id = "<%= @sale_id %>";
|
||||||
var bank_integration = "<%= @bank_integration %>";
|
var bank_integration = "<%= @bank_integration %>";
|
||||||
|
|
||||||
|
|||||||
@@ -98,6 +98,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
setHeaderBreadCrumb(_VOUCHER_);
|
||||||
|
|
||||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||||
else {
|
else {
|
||||||
$('#validamount').attr("value",parseFloat("<%= @can_voucher %>") - parseFloat(localStorage.getItem("cash")));
|
$('#validamount').attr("value",parseFloat("<%= @can_voucher %>") - parseFloat(localStorage.getItem("cash")));
|
||||||
|
|||||||
Reference in New Issue
Block a user