Merge branch 'adminbsb_material_ui' of bitbucket.org:code2lab/sxrestaurant into adminbsb_material_ui
This commit is contained in:
@@ -61,7 +61,7 @@ $(function(){
|
|||||||
+JSON.stringify(item_attributes)+"' data-toggle='modal' data-target='.sx_item_detailModal'>"
|
+JSON.stringify(item_attributes)+"' data-toggle='modal' data-target='.sx_item_detailModal'>"
|
||||||
|
|
||||||
+"<div class='card-block custom-card-block'>"
|
+"<div class='card-block custom-card-block'>"
|
||||||
+"<img id='logo' src='"+image_path+"'>"
|
+"<img id='logo' height='125px' src='"+image_path+"'>"
|
||||||
+"</div>"
|
+"</div>"
|
||||||
|
|
||||||
+'<div class="card-footer custom-card-footer">'
|
+'<div class="card-footer custom-card-footer">'
|
||||||
@@ -170,7 +170,7 @@ $(function(){
|
|||||||
+JSON.stringify(menu_items[field].item_sets)+"' data-toggle='modal' data-target='."+data_target+"'>"
|
+JSON.stringify(menu_items[field].item_sets)+"' data-toggle='modal' data-target='."+data_target+"'>"
|
||||||
|
|
||||||
+"<div class='card-block custom-card-block'>"
|
+"<div class='card-block custom-card-block'>"
|
||||||
+"<img id='logo' src='"+image_path+"'>"
|
+"<img id='logo' height='125px' src='"+image_path+"'>"
|
||||||
+"</div>"
|
+"</div>"
|
||||||
|
|
||||||
+'<div class="card-footer custom-card-footer">'
|
+'<div class="card-footer custom-card-footer">'
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
//= require bootstrap/js/popper.min
|
//= require bootstrap/js/popper.min
|
||||||
//= require bootstrap/js/bootstrap-material-design.min
|
//= require bootstrap/js/bootstrap-material-design.min
|
||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
//= require jquery-confirm
|
|
||||||
//= require turbolinks
|
//= require turbolinks
|
||||||
//= require cable
|
//= require cable
|
||||||
//= require settings/processing_items
|
//= require settings/processing_items
|
||||||
@@ -25,6 +24,7 @@
|
|||||||
//= require bootstrap-select/js/bootstrap-select
|
//= require bootstrap-select/js/bootstrap-select
|
||||||
//= require jquery-slimscroll/jquery.slimscroll.js
|
//= require jquery-slimscroll/jquery.slimscroll.js
|
||||||
//= require node-waves/waves.js
|
//= require node-waves/waves.js
|
||||||
|
//= require sweetalert/sweetalert.min.js
|
||||||
//= require autosize/autosize.js
|
//= require autosize/autosize.js
|
||||||
//= require jquery-countto/jquery.countTo.js
|
//= require jquery-countto/jquery.countTo.js
|
||||||
//= require raphael/raphael.min
|
//= require raphael/raphael.min
|
||||||
@@ -34,9 +34,9 @@
|
|||||||
//= require BSBMaterial/pages/index.js
|
//= require BSBMaterial/pages/index.js
|
||||||
//= require BSBMaterial/demo.js
|
//= require BSBMaterial/demo.js
|
||||||
|
|
||||||
|
|
||||||
$(document).on('turbolinks:load', function() {
|
$(document).on('turbolinks:load', function() {
|
||||||
// $(document).ready(function(){
|
|
||||||
//Datetimepicker plugin
|
|
||||||
$('.datetimepicker').bootstrapMaterialDatePicker({
|
$('.datetimepicker').bootstrapMaterialDatePicker({
|
||||||
format: 'DD-MM YYYY - HH:mm',
|
format: 'DD-MM YYYY - HH:mm',
|
||||||
clearButton: true,
|
clearButton: true,
|
||||||
@@ -55,14 +55,25 @@ $(document).on('turbolinks:load', function() {
|
|||||||
clearButton: true,
|
clearButton: true,
|
||||||
date: false
|
date: false
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
$('.datepicker').attr('ReadOnly','true');
|
|
||||||
$('.datepicker').css('cursor','pointer');*/
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function showConfirmMessage() {
|
||||||
|
swal({
|
||||||
|
title: "Information",
|
||||||
|
text: "You will not be able to recover this imaginary file!",
|
||||||
|
type: "warning",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: "#DD6B55",
|
||||||
|
confirmButtonText: "OK",
|
||||||
|
closeOnConfirm: true
|
||||||
|
}, function () {
|
||||||
|
swal("Deleted!", "Your imaginary file has been deleted.", "success");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
$('body').bootstrapMaterialDesign();
|
$('body').bootstrapMaterialDesign();
|
||||||
var height = ($(window).height() - ($('.legal').outerHeight() + $('.user-info').outerHeight() + $('.navbar').innerHeight()));
|
var height = ($(window).height() - ($('.legal').outerHeight() + $('.user-info').outerHeight() + $('.navbar').innerHeight()));
|
||||||
|
|
||||||
@@ -124,10 +135,60 @@ $(function(){
|
|||||||
'</div>\n',
|
'</div>\n',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.delete').click(function(){
|
||||||
|
var method = $(this).attr('data-method');
|
||||||
|
var url = $(this).attr('data-ref');
|
||||||
|
var html = $( this ).siblings( "#delete_text" ).html();
|
||||||
|
console.log(html);
|
||||||
|
swal({
|
||||||
|
title: "Confirmation",
|
||||||
|
text: html,
|
||||||
|
type: "warning",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: "#DD6B55",
|
||||||
|
html: true
|
||||||
|
}, function (isConfirm) {
|
||||||
|
if (isConfirm) {
|
||||||
|
$.ajax({
|
||||||
|
type: method,
|
||||||
|
url: url ,
|
||||||
|
success: function(data) {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
swal("Cancelled", "Your imaginary file is safe :)", "error");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.dddddddd').click(function(){
|
||||||
|
var currentForm = $(this).closest("form");
|
||||||
|
bootbox.confirm({
|
||||||
|
title: 'Confirmation',
|
||||||
|
message: $('#delete_text').html(),
|
||||||
|
buttons: {
|
||||||
|
'cancel': {
|
||||||
|
label: 'No',
|
||||||
|
className: 'btn green col-md-4 pull-left'
|
||||||
|
},
|
||||||
|
'confirm': {
|
||||||
|
label: 'Yes',
|
||||||
|
className: 'btn red col-md-4 pull-right'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
callback: function(result) {
|
||||||
|
if (result) {
|
||||||
|
currentForm.submit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("focus", "[data-behaviour~='datepicker']", function(e){
|
$(document).on("focus", "[data-behaviour~='datepicker']", function(e){
|
||||||
$(this).datepicker({"format": "yyyy-M-dd", "weekStart": 1, "autoclose": true});
|
$(this).datepicker({"format": "yyyy-M-dd", "weekStart": 1, "autoclose": true});
|
||||||
$('.dropdown-toggle').dropdown();
|
$('.dropdown-toggle').dropdown();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
@import "bootstrap/css/bootstrap-material-design.min";
|
@import "bootstrap/css/bootstrap-material-design.min";
|
||||||
@import "node-waves/waves";
|
@import "node-waves/waves";
|
||||||
@import "animate-css/animate";
|
@import "animate-css/animate";
|
||||||
|
@import "sweetalert/sweetalert.css";
|
||||||
@import "multi-select/css/multi-select";
|
@import "multi-select/css/multi-select";
|
||||||
@import "bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker";
|
@import "bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker";
|
||||||
@import "bootstrap-select/css/bootstrap-select";
|
@import "bootstrap-select/css/bootstrap-select";
|
||||||
@@ -213,6 +214,10 @@ select.form-control {
|
|||||||
// cursor:pointer;
|
// cursor:pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border-left{
|
||||||
|
border-left:1px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.del_cashier_number{
|
.del_cashier_number{
|
||||||
opacity:0.6,
|
opacity:0.6,
|
||||||
}
|
}
|
||||||
@@ -366,6 +371,8 @@ select.form-control {
|
|||||||
|
|
||||||
.bottom{
|
.bottom{
|
||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
|
margin-left:-10px ;
|
||||||
|
margin-right:-10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Discount */
|
/* Discount */
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ $(function() {
|
|||||||
var code = "";
|
var code = "";
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
var hi=getQRCode();
|
var hi=getQRCode();
|
||||||
alert(hi);
|
|
||||||
},100);
|
},100);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -231,39 +230,31 @@ $(document).on('click',".customer_tr",function(){
|
|||||||
})
|
})
|
||||||
|
|
||||||
function update_sale(customer_id,sale_id) {
|
function update_sale(customer_id,sale_id) {
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Confirm!',
|
title: "Confirmation",
|
||||||
content: 'Are You Sure to assign this customer!',
|
text: "Are You Sure to assign this customer!",
|
||||||
buttons: {
|
type: "success",
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: "green",
|
||||||
|
confirmButtonText: "Yes, delete it!",
|
||||||
|
closeOnConfirm: false
|
||||||
|
}, function () {
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "update_sale/" ,
|
||||||
|
data: {customer_id:customer_id,sale_id:sale_id},
|
||||||
|
dataType: "json",
|
||||||
|
success: function(data) {
|
||||||
|
if(data.status == true)
|
||||||
|
{
|
||||||
|
window.location.href = '/origami'
|
||||||
|
}else{
|
||||||
|
swal("Alert!", "Record not found!", "error");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
|
||||||
cancel: function () {
|
}
|
||||||
|
});
|
||||||
},
|
|
||||||
confirm: {
|
|
||||||
text: 'Confirm',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
keys: ['enter', 'shift'],
|
|
||||||
action: function(){
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "update_sale/" ,
|
|
||||||
data: {customer_id:customer_id,sale_id:sale_id},
|
|
||||||
dataType: "json",
|
|
||||||
success: function(data) {
|
|
||||||
if(data.status == true)
|
|
||||||
{
|
|
||||||
window.location.href = '/origami'
|
|
||||||
}else{
|
|
||||||
alert('Record not found!');
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,56 +57,32 @@ $(document).on('click',".assign_table",function(){
|
|||||||
if (status == "available") {
|
if (status == "available") {
|
||||||
assign_table(queue_id,table_id,url);
|
assign_table(queue_id,table_id,url);
|
||||||
} else {
|
} else {
|
||||||
$.confirm({
|
swal ( "Alert!" , "You cannot assign this table!" , "warning" );
|
||||||
title: 'Alert!',
|
|
||||||
content: 'You cannot assign this table',
|
|
||||||
buttons: {
|
|
||||||
|
|
||||||
confirm: {
|
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function assign_table(id,table_id,url) {
|
function assign_table(id,table_id,url) {
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Confirm!',
|
title: "Confirm!",
|
||||||
content: 'Are You Sure to assign this customer!',
|
text: "Are You Sure to assign this customer!",
|
||||||
buttons: {
|
}, function () {
|
||||||
|
$.ajax({
|
||||||
cancel: function () {
|
type: "POST",
|
||||||
|
url: url ,
|
||||||
},
|
data: {id:id,table_id:table_id},
|
||||||
confirm: {
|
dataType: "json",
|
||||||
text: 'Confirm',
|
success: function(data) {
|
||||||
btnClass: 'btn-green',
|
if(data.status == true)
|
||||||
keys: ['enter', 'shift'],
|
{
|
||||||
action: function(){
|
window.location.href = '<%=crm_dining_queues_path%>'
|
||||||
$.ajax({
|
}else{
|
||||||
type: "POST",
|
swal ( "Alert!" , "Record not found!" , "warning" );
|
||||||
url: url ,
|
location.reload();
|
||||||
data: {id:id,table_id:table_id},
|
|
||||||
dataType: "json",
|
|
||||||
success: function(data) {
|
|
||||||
if(data.status == true)
|
|
||||||
{
|
|
||||||
window.location.href = '<%=crm_dining_queues_path%>'
|
|
||||||
}else{
|
|
||||||
alert('Record not found!');
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -91,35 +91,24 @@ $('#cancel').click(function() {
|
|||||||
|
|
||||||
|
|
||||||
function cancel_queue(id,url) {
|
function cancel_queue(id,url) {
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Confirm!',
|
title: "Confirm!",
|
||||||
content: 'Are You Sure to cancel this Queue!',
|
text: "Are You Sure to cancel this Queue!",
|
||||||
buttons: {
|
}, function () {
|
||||||
cancel: function () {
|
$.ajax({
|
||||||
},
|
type: "POST",
|
||||||
confirm: {
|
url: url ,
|
||||||
text: 'Confirm',
|
data: {id:id},
|
||||||
btnClass: 'btn-green',
|
dataType: "json",
|
||||||
keys: ['enter', 'shift'],
|
success: function(data) {
|
||||||
action: function(){
|
if(data.status == true)
|
||||||
$.ajax({
|
{
|
||||||
type: "POST",
|
location.reload();
|
||||||
url: url ,
|
}
|
||||||
data: {id:id},
|
|
||||||
dataType: "json",
|
|
||||||
success: function(data) {
|
|
||||||
if(data.status == true)
|
|
||||||
{
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<!-- Search Bar -->
|
Search Bar -->
|
||||||
<!-- <div class="search-bar">
|
<!-- <div class="search-bar">
|
||||||
<div class="search-icon">
|
<div class="search-icon">
|
||||||
<i class="material-icons">search</i>
|
<i class="material-icons">search</i>
|
||||||
@@ -20,24 +20,27 @@
|
|||||||
<span class="navbar-brand-txt">SX Restaurant</span>
|
<span class="navbar-brand-txt">SX Restaurant</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-right">
|
<!-- Start Delete confirrm text !-->
|
||||||
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
||||||
<span>Admin</span>
|
|
||||||
<!-- <i class="material-icons">keyboard_arrow_down</i> -->
|
<div class="navbar-right">
|
||||||
|
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||||
|
<% if current_login_employee %>
|
||||||
|
<span><%= current_login_employee.name %></span>
|
||||||
|
<% end %>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<!-- For Translation
|
|
||||||
<li>
|
|
||||||
<div class="switch">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" id="localize">
|
|
||||||
မြန်မာ
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</li> -->
|
|
||||||
<li>
|
<li>
|
||||||
<%= link_to (t :logout),logout_path, method: :delete, data: {confirm: 'Are you sure?'} %>
|
<%if current_login_employee.role !="waiter" %>
|
||||||
<!-- <a href="<%= logout_path %>"><i class="material-icons">input</i>Sign Out</a> -->
|
<%= link_to (t :logout),logout_path, method: :delete, data: {confirm: 'Are you sure?'} %>
|
||||||
|
<%end%>
|
||||||
|
|
||||||
|
<p class="delete" style="" data-ref="<%=logout_path%>" data-method="delete">Logout</p>
|
||||||
|
<span class="hidden" id="delete_text">
|
||||||
|
<h6>Are you sure you want to Logout ?</h6>
|
||||||
|
<!-- <h6>This action can't be undo. </h6> -->
|
||||||
|
</span>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a href="javascript:void(0);" class="js-right-sidebar" data-close="true">
|
<a href="javascript:void(0);" class="js-right-sidebar" data-close="true">
|
||||||
@@ -48,3 +51,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<!-- #Top Bar
|
<!-- #Top Bar
|
||||||
|
|
||||||
|
<!-- <form action="<%=logout_path%>" method="DELETE">
|
||||||
|
<button type="text" class="delete" value="x" >DELETE</button>
|
||||||
|
</form> -->
|
||||||
|
<!-- <a href="<%= logout_path %>"><i class="material-icons">input</i>Sign Out</a>
|
||||||
@@ -34,7 +34,8 @@
|
|||||||
<a class="nav-link <%= @filter.to_s.length > 0? "active" : " "%>" data-toggle="tab" href="#search" role="tab">Searching .. <span class="badge badge-pill badge-default" id="completed_count"><%= @queue_completed_item.length %></span></a>
|
<a class="nav-link <%= @filter.to_s.length > 0? "active" : " "%>" data-toggle="tab" href="#search" role="tab">Searching .. <span class="badge badge-pill badge-default" id="completed_count"><%= @queue_completed_item.length %></span></a>
|
||||||
</li> -->
|
</li> -->
|
||||||
<li class="nav-item nav-completed">
|
<li class="nav-item nav-completed">
|
||||||
<a class="nav-link active" data-toggle="tab" href="#completed" role="tab">Processed <span class="label-count" id="completed_count"><%= @queue_completed_item.length %></span></a>
|
<a class="nav-link active" data-toggle="tab" href="#completed" role="tab">Processed
|
||||||
|
<span class="badge bg-blue-grey" id="completed_count"><%= @queue_completed_item.length %></span></a>
|
||||||
</li>
|
</li>
|
||||||
<% # For Tab Disable for Station is inactive
|
<% # For Tab Disable for Station is inactive
|
||||||
status=""
|
status=""
|
||||||
@@ -48,11 +49,11 @@
|
|||||||
<a class="nav-link" data-id="<%= qsi.id %>" data-toggle="tab" href="" role="tab" <%= status %>>
|
<a class="nav-link" data-id="<%= qsi.id %>" data-toggle="tab" href="" role="tab" <%= status %>>
|
||||||
<%= qsi.station_name %>
|
<%= qsi.station_name %>
|
||||||
<% if @filter.nil? %>
|
<% if @filter.nil? %>
|
||||||
<span class="label-count badge badge-pill badge-default oqs_count<%= i%> oqs_count" data-id="<%= qsi.id %>" id="completed_count">
|
<span class="badge bg-blue-grey oqs_count<%= i%> oqs_count" data-id="<%= qsi.id %>" id="completed_count">
|
||||||
<!-- <span class="badge badge-pill badge-default oqs_count<%= i%> oqs_count" data-id="<%= qsi.id %>"> --> <%= qsi.assigned_order_items.where("delivery_status=0 AND created_at >= '#{Time.now.beginning_of_day.utc}'").count %>
|
<!-- <span class="badge badge-pill badge-default oqs_count<%= i%> oqs_count" data-id="<%= qsi.id %>"> --> <%= qsi.assigned_order_items.where("delivery_status=0 AND created_at >= '#{Time.now.beginning_of_day.utc}'").count %>
|
||||||
</span>
|
</span>
|
||||||
<%else%>
|
<%else%>
|
||||||
<span class="label-count badge badge-pill badge-default" data-id="<%= qsi.id %>">
|
<span class="label-count badge bg-blue-grey" data-id="<%= qsi.id %>">
|
||||||
<% @count.each do |c|%>
|
<% @count.each do |c|%>
|
||||||
<% if qsi.id == c.station_id %>
|
<% if qsi.id == c.station_id %>
|
||||||
<%= c.total %>
|
<%= c.total %>
|
||||||
|
|||||||
@@ -1,103 +1,104 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
<div class="col-md-6">
|
||||||
<div class="row">
|
<h2>CREDIT PAYMENT</h2>
|
||||||
<div class="col-md-6">
|
|
||||||
<h2>CREDIT PAYMENT</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card" style="margin-top:10px;padding-top:20px;">
|
|
||||||
<div class="rebate-form">
|
|
||||||
<!-- <div class="row"> -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-5">
|
|
||||||
<label>You can pay up to </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
<input type="text" name="validamount" id="validamount" class="form-control" readonly="" value="<%=@can_credit %>" data-member-value="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<!-- </div> -->
|
|
||||||
<% if @creditcount != 0 %>
|
|
||||||
<!-- <div class="row"> -->
|
|
||||||
<div class=" row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-5">
|
|
||||||
<label>Recent Credit Amount </label>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
<input type="text" name="" class="form-control " readonly="" value="<%=@creditcount %>" data-member-value="">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<!-- </div> -->
|
|
||||||
<% end %>
|
|
||||||
<!-- <div class="row"> -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-5">
|
|
||||||
<label >Recent Credit Amount</label>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
|
||||||
<input type="text" name="valid_amount" id="valid_amount" class="form-control" value="" data-value="<%=@sale_id %>" data-member-value="">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<!-- </div> -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-5">
|
|
||||||
<label>Amount</label>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-7 col-md-7 col-sm-7">
|
|
||||||
<div id="amount" class="form-control">0.0</div>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="row">
|
||||||
</div>
|
<div class="col-lg-5 col-md-5 col-sm-3">
|
||||||
</div>
|
<div class="card" style="margin-top:10px;padding-top:20px;">
|
||||||
|
<div class="card-block">
|
||||||
|
<div class="rebate-form">
|
||||||
|
<!-- <div class="row"> -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-5">
|
||||||
|
<label>You can pay up to </label>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
<input type="text" name="validamount" id="validamount" class="form-control" readonly="" value="<%=@can_credit %>" data-member-value="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<!-- </div> -->
|
||||||
|
<% if @creditcount != 0 %>
|
||||||
|
<!-- <div class="row"> -->
|
||||||
|
<div class=" row">
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-5">
|
||||||
|
<label>Recent Credit Amount </label>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
<input type="text" name="" class="form-control " readonly="" value="<%=@creditcount %>" data-member-value="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<!-- </div> -->
|
||||||
|
<% end %>
|
||||||
|
<!-- <div class="row"> -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-5">
|
||||||
|
<label >Recent Credit Amount</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
<input type="text" name="valid_amount" id="valid_amount" class="form-control" value="" data-value="<%=@sale_id %>" data-member-value="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<!-- </div> -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-5">
|
||||||
|
<label>Amount</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-7 col-md-7 col-sm-7">
|
||||||
|
<div id="amount" class="form-control">0.0</div>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:75px;">
|
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:;">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row clearfix">
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class="col-md-4 cashier_number border-left" data-value="1" data-type="num">1</div>
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class="col-md-4 cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class="col-md-4 cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<div class="col-md-4 cashier_number border-left" data-value="4" data-type="num">4</div>
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
<div class="col-md-4 cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<div class="col-md-4 cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class="col-md-4 cashier_number border-left" data-value="7" data-type="num">7</div>
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class="col-md-4 cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<div class="col-md-4 cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<div class="col-md-4 cashier_number border-left" data-value="0" data-type="num">0</div>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
<div class="col-md-4 cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<div class="col-md-4 cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number green" data-type="nett" >Nett</div>
|
<div class="col-md-4 cashier_number green border-left" data-type="nett" >Nett</div>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<div class="col-md-4 cashier_number red border-left" data-type="del">Del</div>
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
<div class="col-md-4 cashier_number orange border-left" data-type="clr">Clr</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="1000" data-type="add">1000</div>
|
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="5000" data-type="add">5000</div>
|
<div class="cashier_number long left" data-value="5000" data-type="add">5000</div>
|
||||||
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="pay purple" id="credit_pay">Pay</div>
|
<div class="pay purple left" id="credit_pay">Pay</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -168,13 +169,18 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
alert("Payment success")
|
swal({
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
title: "Infomation!",
|
||||||
|
text: "Payment Success",
|
||||||
|
type: "success"
|
||||||
|
}, function () {
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
alert("Paid Amount is over!");
|
swal("Alert","Paid Amount is over!","error");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12">
|
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12">
|
||||||
|
|
||||||
<input type="text" name="filter" style="margin-right:10px" id="search" placeholder="Search" class="form-control input-sm col-md-12">
|
<input type="text" name="filter" style="margin-right:10px" id="search" placeholder="Search" class="form-control input-sm col-md-12">
|
||||||
<input type="hidden" name="type" id="type" value="">
|
<input type="hidden" name="type" id="type" value="<%= @dining_facility.type %>">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12">
|
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12">
|
||||||
@@ -403,47 +403,37 @@
|
|||||||
if(customer_name != ""){
|
if(customer_name != ""){
|
||||||
customer = '(' + customer_name + ')';
|
customer = '(' + customer_name + ')';
|
||||||
}
|
}
|
||||||
|
swal({
|
||||||
$.confirm({
|
title: "Confirmation !",
|
||||||
title: 'Confirm!',
|
text: 'Are You Sure to assign this customer' + customer + '!',
|
||||||
content: 'Are You Sure to assign this customer' + customer + '!',
|
showCancelButton: true,
|
||||||
buttons: {
|
confirmButtonColor: "green",
|
||||||
|
confirmButtonText: "Yes!",
|
||||||
cancel: function () {
|
cancelButtonClass: 'btn btn-danger',
|
||||||
|
closeOnConfirm: false,
|
||||||
},
|
}, function () {
|
||||||
confirm: {
|
$.ajax({
|
||||||
text: 'Confirm',
|
type: "POST",
|
||||||
btnClass: 'btn-green',
|
url: "update_sale" ,
|
||||||
keys: ['enter', 'shift'],
|
data: {customer_id:customer_id,sale_id:sale_id},
|
||||||
action: function(){
|
dataType: "json",
|
||||||
$.ajax({
|
success: function(data) {
|
||||||
type: "POST",
|
if(data.status == true)
|
||||||
url: "update_sale" ,
|
{
|
||||||
data: {customer_id:customer_id,sale_id:sale_id},
|
var id = $("#table_id").val()
|
||||||
dataType: "json",
|
var type = $("#type").val()
|
||||||
success: function(data) {
|
if (type=="Table") {
|
||||||
if(data.status == true)
|
window.location.href = '/origami/table/'+id
|
||||||
{
|
|
||||||
var id = $("#table_id").val()
|
|
||||||
var type = $("#type").val()
|
|
||||||
if (type=="Table") {
|
|
||||||
window.location.href = '/origami/table/'+id
|
|
||||||
}else{
|
|
||||||
window.location.href = '/origami/room/'+id
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
alert('Record not found!');
|
window.location.href = '/origami/room/'+id
|
||||||
location.reload();
|
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
swal("Alert!", "Record not found!", "error");
|
||||||
|
location.reload();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#back').on('click',function(){
|
$('#back').on('click',function(){
|
||||||
|
|||||||
@@ -174,7 +174,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row bottom">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="fluid cashier_number" data-value="30" data-type="add">30%</div>
|
<div class="fluid cashier_number" data-value="30" data-type="add">30%</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -378,25 +378,18 @@
|
|||||||
type: "POST",
|
type: "POST",
|
||||||
url: ajax_url,
|
url: ajax_url,
|
||||||
data: params,
|
data: params,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: result.status,
|
text: result.status,
|
||||||
buttons: {
|
}, function () {
|
||||||
confirm: {
|
if(result.table_type == "Table"){
|
||||||
text: 'Ok',
|
window.location.href = "/origami/table/" + result.table_id
|
||||||
btnClass: 'btn-green',
|
}
|
||||||
action: function(){
|
else {
|
||||||
if(result.table_type == "Table"){
|
window.location.href = "/origami/room/" + result.table_id
|
||||||
window.location.href = "/origami/table/" + result.table_id
|
}
|
||||||
}
|
});
|
||||||
else {
|
|
||||||
window.location.href = "/origami/room/" + result.table_id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -410,19 +403,8 @@
|
|||||||
// Selected Items
|
// Selected Items
|
||||||
var sale_items = get_selected_sale_items();
|
var sale_items = get_selected_sale_items();
|
||||||
if(sale_items.length == 0){
|
if(sale_items.length == 0){
|
||||||
$.confirm({
|
//swal("Infomation!", "You have no selected item!");
|
||||||
title: 'Infomation!',
|
swal ( "Oops" , "You have no selected item!" , "error" );
|
||||||
content: "You have no selected item!",
|
|
||||||
buttons: {
|
|
||||||
confirm: {
|
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(var i=0;i < sale_items.length;i++){
|
for(var i=0;i < sale_items.length;i++){
|
||||||
@@ -430,19 +412,7 @@
|
|||||||
discount_items.push(sale_items[i]);
|
discount_items.push(sale_items[i]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$.confirm({
|
swal ("Oops" , "You have no selected item!" , "error" );
|
||||||
title: 'Infomation!',
|
|
||||||
content: "You have selected no discount item!!",
|
|
||||||
buttons: {
|
|
||||||
confirm: {
|
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -452,24 +422,18 @@
|
|||||||
url: "/origami/" + sale_id + "/remove_discount_items",
|
url: "/origami/" + sale_id + "/remove_discount_items",
|
||||||
data: params,
|
data: params,
|
||||||
success: function(result){
|
success: function(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: result.status,
|
text: result.status,
|
||||||
buttons: {
|
type: "success",
|
||||||
confirm: {
|
}, function () {
|
||||||
text: 'Ok',
|
if(result.table_type == "Table"){
|
||||||
btnClass: 'btn-green',
|
window.location.href = "/origami/table/" + result.table_id
|
||||||
action: function(){
|
}
|
||||||
if(result.table_type == "Table"){
|
else {
|
||||||
window.location.href = "/origami/table/" + result.table_id
|
window.location.href = "/origami/room/" + result.table_id
|
||||||
}
|
}
|
||||||
else {
|
});
|
||||||
window.location.href = "/origami/room/" + result.table_id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -481,24 +445,18 @@
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
url: "/origami/" + sale_id + "/remove_all_discount",
|
url: "/origami/" + sale_id + "/remove_all_discount",
|
||||||
success: function(result){
|
success: function(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: result.status,
|
text: result.status,
|
||||||
buttons: {
|
type: "success",
|
||||||
confirm: {
|
}, function () {
|
||||||
text: 'Ok',
|
if(result.table_type == "Table"){
|
||||||
btnClass: 'btn-green',
|
window.location.href = "/origami/table/" + result.table_id
|
||||||
action: function(){
|
}
|
||||||
if(result.table_type == "Table"){
|
else {
|
||||||
window.location.href = "/origami/table/" + result.table_id
|
window.location.href = "/origami/room/" + result.table_id
|
||||||
}
|
}
|
||||||
else {
|
});
|
||||||
window.location.href = "/origami/room/" + result.table_id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -524,50 +482,28 @@
|
|||||||
url: ajax_url,
|
url: ajax_url,
|
||||||
data: params,
|
data: params,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
console.log(result)
|
if (result.status == "Success") {
|
||||||
if (result.status == "Success") {
|
type = 'success'
|
||||||
type = 'green'
|
btn_color = 'green'
|
||||||
btn_color = 'btn-green'
|
|
||||||
}else{
|
}else{
|
||||||
type = 'red'
|
type = 'error'
|
||||||
btn_color = 'btn-red'
|
btn_color = 'red'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
swal({
|
||||||
$.confirm({
|
title: "Infomation!",
|
||||||
title: result.title,
|
text: result.status,
|
||||||
content: result.status,
|
confirmButtonText: 'OK',
|
||||||
columnClass: 'small',
|
confirmButtonColor: btn_color,
|
||||||
type: type,
|
}, function () {
|
||||||
buttons: {
|
if(result.table_type == "Table"){
|
||||||
confirm: {
|
window.location.href = "/origami/table/" + result.table_id
|
||||||
text: 'Ok',
|
}
|
||||||
btnClass: btn_color,
|
else {
|
||||||
action: function(){
|
window.location.href = "/origami/room/" + result.table_id
|
||||||
if(result.table_type == "Table"){
|
}
|
||||||
window.location.href = "/origami/table/" + result.table_id
|
});
|
||||||
}
|
|
||||||
else {
|
|
||||||
window.location.href = "/origami/room/" + result.table_id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// $.alert({
|
|
||||||
// title: 'Alert!',
|
|
||||||
// content: 'Please Select Account',
|
|
||||||
// type: 'red',
|
|
||||||
// typeAnimated: true,
|
|
||||||
// btnClass: 'btn-danger',
|
|
||||||
// });
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
});//end member discount
|
});//end member discount
|
||||||
});
|
});
|
||||||
@@ -663,18 +599,12 @@ function calculate_overall_discount(type, amount){
|
|||||||
// For Percentage Pay
|
// For Percentage Pay
|
||||||
if(type == 1){
|
if(type == 1){
|
||||||
if(amount > 100 ){
|
if(amount > 100 ){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title:"Oops!",
|
||||||
content: "Percentage Value over 100!",
|
text:'Percentage Value over 100!',
|
||||||
buttons: {
|
type: "error",
|
||||||
confirm: {
|
confirmButtonText: 'OK',
|
||||||
text: 'Ok',
|
confirmButtonColor:"red"
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -740,19 +670,13 @@ function calculate_item_discount(type, amount, sale_items, account_types){
|
|||||||
// For Percentage Pay
|
// For Percentage Pay
|
||||||
if(type == 1){
|
if(type == 1){
|
||||||
if(amount > 100 ){
|
if(amount > 100 ){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title:"Oops!",
|
||||||
content: "Percentage Value over 100!",
|
text:'Percentage Value over 100!',
|
||||||
buttons: {
|
type: "error",
|
||||||
confirm: {
|
confirmButtonText: 'OK',
|
||||||
text: 'Ok',
|
confirmButtonColor:"red"
|
||||||
btnClass: 'btn-green',
|
});
|
||||||
action: function(){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// Check sale items exists
|
// Check sale items exists
|
||||||
|
|||||||
@@ -494,19 +494,7 @@
|
|||||||
// data: 'order_id='+ order_id,
|
// data: 'order_id='+ order_id,
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
if (!result.status) {
|
if (!result.status) {
|
||||||
$.confirm({
|
swal("Infomation!", result.error_message);
|
||||||
title: 'Infomation!',
|
|
||||||
content: result.error_message,
|
|
||||||
buttons: {
|
|
||||||
confirm: {
|
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function () {
|
|
||||||
window.location.href = '/origami';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
location.reload();
|
location.reload();
|
||||||
@@ -591,20 +579,17 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#void').on('click', function () {
|
$('#void').on('click', function () {
|
||||||
var sure = confirm("Are you sure want to Void");
|
swal({
|
||||||
if (sure == true) {
|
title: "Alert",
|
||||||
var sale_id = $('#sale_id').val();
|
text: "Are you sure want to Void?",
|
||||||
var ajax_url = "/origami/sale/" + sale_id + '/void';
|
type: "warning",
|
||||||
$.ajax({
|
showCancelButton: true,
|
||||||
type: 'POST',
|
confirmButtonColor: "#DD6B55",
|
||||||
url: ajax_url,
|
confirmButtonText: "Yes, void it!",
|
||||||
success: function () {
|
closeOnConfirm: false
|
||||||
window.location.href = '/origami/';
|
}, function () {
|
||||||
}
|
window.location.href = '/origami/';
|
||||||
})
|
});
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#add_order').on('click', function () {
|
$('#add_order').on('click', function () {
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
<h2>JCB</h2>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col-md-6">
|
</div>
|
||||||
<h2>JCB</h2>
|
<div class="row">
|
||||||
</div>
|
<div class="col-lg-5 col-md-5 col-sm-3">
|
||||||
</div>
|
|
||||||
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
||||||
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
||||||
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
||||||
<div class="card" style="margin-top:10px;padding-top:20px;">
|
<div class="card" style="padding:0px 20px;">
|
||||||
<div class="rebate-form">
|
<div class="rebate-form">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
@@ -46,47 +44,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:75px;">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class="col-md-4 cashier_number border-left" data-value="1" data-type="num">1</div>
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class="col-md-4 cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class="col-md-4 cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<div class="col-md-4 cashier_number border-left" data-value="4" data-type="num">4</div>
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
<div class="col-md-4 cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<div class="col-md-4 cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class="col-md-4 cashier_number border-left" data-value="7" data-type="num">7</div>
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class="col-md-4 cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<div class="col-md-4 cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<div class="col-md-4 cashier_number border-left" data-value="0" data-type="num">0</div>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
<div class="col-md-4 cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<div class="col-md-4 cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number green" data-type="nett" >Nett</div>
|
<div class="col-md-4 cashier_number green border-left" data-type="nett" >Nett</div>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<div class="col-md-4 cashier_number red border-left" data-type="del">Del</div>
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
<div class="col-md-4 cashier_number orange border-left" data-type="clr">Clr</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="1000" data-type="add">1000</div>
|
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="5000" data-type="add">5000</div>
|
<div class="cashier_number long left" data-value="5000" data-type="add">5000</div>
|
||||||
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="pay purple" id="jcb_pay">Pay</div>
|
<div class="pay purple left" id="jcb_pay">Pay</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -174,30 +172,17 @@ $('#jcb_pay').on('click',function(){
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Payment Successfully',
|
text: "Payment Successfully",
|
||||||
buttons: {
|
},function () {
|
||||||
confirm: {
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$.alert({
|
swal ( "Oops" , "Paid Amount is over!" , "error" );
|
||||||
title: 'Alert!',
|
|
||||||
content: "Paid Amount is over!",
|
|
||||||
type: 'red',
|
|
||||||
typeAnimated: true,
|
|
||||||
btnClass: 'btn-danger',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<h2>Master</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
<div class="col-lg-5 col-md-5 col-sm-3">
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h2>Master</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
||||||
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
||||||
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
||||||
<div class="card" style="margin-top:10px;padding-top:20px;">
|
<div class="card" style="padding:0px 20px;">
|
||||||
<div class="rebate-form">
|
<div class="rebate-form">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
@@ -46,47 +44,47 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:75px;">
|
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:;">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class=" cashier_number border-left" data-value="1" data-type="num">1</div>
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class=" cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class=" cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<div class=" cashier_number border-left" data-value="4" data-type="num">4</div>
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
<div class=" cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<div class=" cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class=" cashier_number border-left" data-value="7" data-type="num">7</div>
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class=" cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<div class=" cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<div class=" cashier_number border-left" data-value="0" data-type="num">0</div>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
<div class=" cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<div class=" cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number green" data-type="nett" >Nett</div>
|
<div class=" cashier_number green border-left" data-type="nett" >Nett</div>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<div class=" cashier_number red border-left" data-type="del">Del</div>
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
<div class=" cashier_number orange border-left" data-type="clr">Clr</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="1000" data-type="add">1000</div>
|
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="5000" data-type="add">5000</div>
|
<div class="cashier_number long left" data-value="5000" data-type="add">5000</div>
|
||||||
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="pay purple" id="master_pay">Pay</div>
|
<div class="pay purple left" id="master_pay">Pay</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -171,30 +169,17 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Payment Successfully',
|
text: "Payment Successfully",
|
||||||
buttons: {
|
},function () {
|
||||||
confirm: {
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
text: 'Ok',
|
});
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$.alert({
|
swal ( "Oops" , "Paid Amount is over!" , "error" );
|
||||||
title: 'Alert!',
|
|
||||||
content: "Paid Amount is over!",
|
|
||||||
type: 'red',
|
|
||||||
typeAnimated: true,
|
|
||||||
btnClass: 'btn-danger',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,103 +1,104 @@
|
|||||||
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
<h2>MPU</h2>
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<h2>MPU</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
|
||||||
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
|
||||||
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
|
||||||
<div class="card" style="margin-top:10px;padding-top:20px;">
|
|
||||||
<div class="rebate-form">
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">You can pay up to </label>
|
|
||||||
<input type="text" name="validamount" id="validamount" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%=@can_mpu %>" data-member-value="">
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
<% if @mpucount != 0 %>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">Recent MPU paid amount </label>
|
|
||||||
<input type="text" name="" id="" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%=@mpucount %>" data-member-value="">
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">Reference Number</label>
|
|
||||||
<input type="text" name="valid_amount" id="valid_amount" class="form-control col-lg-7 col-md-7 col-sm-7" value="" data-value="<%=@sale_id %>" data-member-value="">
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">Amount</label>
|
|
||||||
<div id="amount" class="form-control col-lg-7 col-md-7 col-sm-7">0.0</div>
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:75px;">
|
<div class="col-lg-5 col-md-5 col-sm-3">
|
||||||
|
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
||||||
<div class="row">
|
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
||||||
<div class="row bottom">
|
<div class="card" style="margin-top:10px;padding:20px;">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class="card-block">
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class="rebate-form">
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class="row">
|
||||||
</div>
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<div class="row bottom">
|
<label class="col-lg-4 col-md-4 col-sm-4">You can pay up to </label>
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<input type="text" name="validamount" id="validamount" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%=@can_mpu %>" data-member-value="">
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<% if @mpucount != 0 %>
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class="row">
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<label class="col-lg-4 col-md-4 col-sm-4">Recent MPU paid amount </label>
|
||||||
</div>
|
<input type="text" name="" id="" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%=@mpucount %>" data-member-value="">
|
||||||
<div class="row bottom">
|
</div>
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<hr>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<% end %>
|
||||||
</div>
|
<div class="row">
|
||||||
<div class="row bottom">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<div class=" cashier_number green" data-type="nett" >Nett</div>
|
<label class="col-lg-4 col-md-4 col-sm-4">Reference Number</label>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<input type="text" name="valid_amount" id="valid_amount" class="form-control col-lg-7 col-md-7 col-sm-7" value="" data-value="<%=@sale_id %>" data-member-value="">
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
</div>
|
||||||
</div>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="row">
|
||||||
<div class="row bottom">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<div class="cashier_number long" data-value="1000" data-type="add">1000</div>
|
<label class="col-lg-4 col-md-4 col-sm-4">Amount</label>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div id="amount" class="form-control col-lg-7 col-md-7 col-sm-7">0.0</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<hr>
|
||||||
<div class="cashier_number long" data-value="5000" data-type="add">5000</div>
|
</div>
|
||||||
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row bottom">
|
|
||||||
<div class="pay purple" id="mpu_pay">Pay</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:;">
|
||||||
|
|
||||||
<div class="col-lg-1 col-md-1 col-sm-1">
|
<div class="row">
|
||||||
<button type="button" class="btn btn-primary btn-block" onclick="window.location.href = '/origami/sale/<%= @sale_id %>/payment/others_payment';"> Back </button>
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="1" data-type="num">1</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="4" data-type="num">4</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="7" data-type="num">7</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="0" data-type="num">0</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
|
<div class="col-md-4 cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="col-md-4 cashier_number border-left green" data-type="nett" >Nett</div>
|
||||||
|
<div class="col-md-4 cashier_number red border-left" data-type="del">Del</div>
|
||||||
|
<div class="col-md-4 cashier_number orange border-left" data-type="clr">Clr</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
||||||
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="cashier_number long left" data-value="5000" data-type="add">5000</div>
|
||||||
|
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bottom">
|
||||||
|
<div class="pay purple left" id="mpu_pay">Pay</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-1 col-md-1 col-sm-1">
|
||||||
|
<button type="button" class="btn btn-primary btn-block" onclick="window.location.href = '/origami/sale/<%= @sale_id %>/payment/others_payment';"> Back </button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
if(localStorage.getItem("cash") == null || localStorage.getItem("cash") == 'null'){}
|
||||||
@@ -172,30 +173,18 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Payment Successfully',
|
text: "Payment Successfully",
|
||||||
buttons: {
|
}, function () {
|
||||||
confirm: {
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
text: 'Ok',
|
});
|
||||||
btnClass: 'btn-green',
|
}
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$.alert({
|
swal ( "Oops" , "Paid Amount is over!" , "error" );
|
||||||
title: 'Alert!',
|
|
||||||
content: "Paid Amount is over!",
|
|
||||||
type: 'red',
|
|
||||||
typeAnimated: true,
|
|
||||||
btnClass: 'btn-danger',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<!-- Column One -->
|
<!-- Column One -->
|
||||||
|
|
||||||
<!-- Column Two -->
|
<!-- Column Two -->
|
||||||
<div class="col-lg-5 col-md-5 col-sm-5">
|
<div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
|
||||||
<!-- Discount Amount -->
|
<!-- Discount Amount -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<div class="card-title">
|
<div class="card-title">
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
<div class="col-md-12">
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||||||
<div class="-group">
|
<div class="-group">
|
||||||
<input type="text" id="other-charges-amount" name="other-charges-amount" class="form-control" placeholder="Amount" />
|
<input type="text" id="other-charges-amount" name="other-charges-amount" class="form-control" placeholder="Amount" />
|
||||||
</div>
|
</div>
|
||||||
@@ -108,12 +108,12 @@
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-9">
|
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="col-md-3">
|
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
|
||||||
<div class="fluid cashier_number" data-value="3000" data-type="add">3000</div>
|
<div class="fluid cashier_number" data-value="3000" data-type="add">3000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3 cashier_number" data-value="1" data-type="num">1</div>
|
<div class="col-md-3 cashier_number" data-value="1" data-type="num">1</div>
|
||||||
<div class="col-md-3 left cashier_number" data-value="2" data-type="num">2</div>
|
<div class="col-md-3 left cashier_number" data-value="2" data-type="num">2</div>
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row bottom">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="fluid cashier_number" data-value="20000" data-type="add">20000</div>
|
<div class="fluid cashier_number" data-value="20000" data-type="add">20000</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -291,13 +291,17 @@
|
|||||||
url: ajax_url,
|
url: ajax_url,
|
||||||
data: params,
|
data: params,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
alert("Success!");
|
swal({
|
||||||
if(result.table_type == "Table"){
|
title: "Infomation!",
|
||||||
window.location.href = "/origami/table/" + result.table_id
|
text: "Success",
|
||||||
}
|
}, function () {
|
||||||
else {
|
if(result.table_type == "Table"){
|
||||||
window.location.href = "/origami/room/" + result.table_id
|
window.location.href = "/origami/table/" + result.table_id
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
window.location.href = "/origami/room/" + result.table_id
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -218,34 +218,34 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class="col-md-4 cashier_number border-left " data-value="1" data-type="num">1</div>
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class="col-md-4 cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class="col-md-4 cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<div class="col-md-4 cashier_number border-left " data-value="4" data-type="num">4</div>
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
<div class="col-md-4 cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<div class="col-md-4 cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class="col-md-4 cashier_number border-left " data-value="7" data-type="num">7</div>
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class="col-md-4 cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<div class="col-md-4 cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<div class="col-md-4 cashier_number border-left " data-value="0" data-type="num">0</div>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
<div class="col-md-4 cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<div class="col-md-4 cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number green" data-type="nett">Nett</div>
|
<div class="col-md-4 cashier_number border-left green" data-type="nett">Nett</div>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<div class="col-md-4 cashier_number border-left red" data-type="del">Del</div>
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
<div class="col-md-4 cashier_number border-left orange" data-type="clr">Clr</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
@@ -360,7 +360,7 @@
|
|||||||
$( "#loading_wrapper" ).show();
|
$( "#loading_wrapper" ).show();
|
||||||
|
|
||||||
if($('#balance').text() > 0){
|
if($('#balance').text() > 0){
|
||||||
alert(" Insufficient Amount!")
|
swal ( "Oops" , "Insufficient Amount!" , "error" );
|
||||||
$( "#loading_wrapper" ).hide();
|
$( "#loading_wrapper" ).hide();
|
||||||
}else{
|
}else{
|
||||||
var sale_id = $('#sale_id').text();
|
var sale_id = $('#sale_id').text();
|
||||||
@@ -389,33 +389,19 @@
|
|||||||
}
|
}
|
||||||
$( "#loading_wrapper" ).hide();
|
$( "#loading_wrapper" ).hide();
|
||||||
if($('#balance').text() < 0){
|
if($('#balance').text() < 0){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Changed amount ' + $('#balance').text() * (-1),
|
text: 'Changed amount ' + $('#balance').text() * (-1),
|
||||||
buttons: {
|
}, function () {
|
||||||
confirm: {
|
window.location.href = '/origami';
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$('#pay').text("Pay")
|
$('#pay').text("Pay");
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Thank you !',
|
text: 'Thank You !',
|
||||||
buttons: {
|
}, function () {
|
||||||
confirm: {
|
window.location.href = '/origami';
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -424,20 +410,20 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#void').on('click',function () {
|
$('#void').on('click',function () {
|
||||||
var sure = confirm("Are you sure want to Void");
|
swal({
|
||||||
if (sure == true) {
|
title: "Infomation!",
|
||||||
|
text: 'Are you sure want to Void !',
|
||||||
|
}, function () {
|
||||||
var sale_id = $('#sale_id').text();
|
var sale_id = $('#sale_id').text();
|
||||||
var ajax_url = "/origami/sale/" + sale_id + '/void';
|
var ajax_url = "/origami/sale/" + sale_id + '/void';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: ajax_url,
|
url: ajax_url,
|
||||||
success: function () {
|
success: function () {
|
||||||
window.location.href = '/origami/';
|
window.location.href = '/origami/';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
});
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -472,18 +458,11 @@
|
|||||||
$( "#loading_wrapper" ).hide();
|
$( "#loading_wrapper" ).hide();
|
||||||
|
|
||||||
if (cash > 0) {
|
if (cash > 0) {
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Thank you !',
|
text: 'Thank You !',
|
||||||
buttons: {
|
}, function () {
|
||||||
confirm: {
|
window.location.href = '/origami';
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
<div class="col-lg-5 col-md-5 col-sm-3">
|
||||||
<div class="card" style="margin-top:10px;padding-top:20px;">
|
<div class="card" style="padding:0px 20px;">
|
||||||
<div class="rebate-form">
|
<div class="rebate-form">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">You can redeem up to </label>
|
<label class="">You can redeem up to </label>
|
||||||
<input type="text" name="" id="redeemamt" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%= @redeem_prices %>" data-value="<%=@sale_id %>" data-member-value="<%= @membership_id %>">
|
<input type="text" name="" id="redeemamt" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%= @redeem_prices %>" data-value="<%=@sale_id %>" data-member-value="<%= @membership_id %>">
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@@ -13,7 +12,7 @@
|
|||||||
<% if @payparcount > 0 %>
|
<% if @payparcount > 0 %>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">Recent Redeem Amount </label>
|
<label class="">Recent Redeem Amount </label>
|
||||||
<input type="text" name="" id="" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%= @payparcount %>" data-value="<%=@sale_id %>" data-member-value="<%= @membership_id %>">
|
<input type="text" name="" id="" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%= @payparcount %>" data-value="<%=@sale_id %>" data-member-value="<%= @membership_id %>">
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@@ -21,14 +20,14 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4"> Rebate Balance </label>
|
<label class=""> Rebate Balance </label>
|
||||||
<input type="text" name="valid_amount" id="valid_amount" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%=@membership_rebate_balance%>" data-value="<%=@sale_id %>" data-member-value="<%= @membership_id %>">
|
<input type="text" name="valid_amount" id="valid_amount" class="form-control col-lg-7 col-md-7 col-sm-7" readonly="" value="<%=@membership_rebate_balance%>" data-value="<%=@sale_id %>" data-member-value="<%= @membership_id %>">
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
<label class="col-lg-4 col-md-4 col-sm-4">Redeem Amount</label>
|
<label class="">Redeem Amount</label>
|
||||||
<div id="used_amount" class="form-control col-lg-7 col-md-7 col-sm-7">0.0</div>
|
<div id="used_amount" class="form-control col-lg-7 col-md-7 col-sm-7">0.0</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@@ -41,47 +40,47 @@
|
|||||||
<p class="">You can rebate upto <span style="color:red;" id="food_prices"><%= @redeem_prices %></span></p> -->
|
<p class="">You can rebate upto <span style="color:red;" id="food_prices"><%= @redeem_prices %></span></p> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-7 col-sm-7">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-1 col-sm-1">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class="col-md-4 cashier_number border-left" data-value="1" data-type="num">1</div>
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class="col-md-4 cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class="col-md-4 cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<div class="col-md-4 cashier_number border-left" data-value="4" data-type="num">4</div>
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
<div class="col-md-4 cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<div class="col-md-4 cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class="col-md-4 cashier_number border-left" data-value="7" data-type="num">7</div>
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class="col-md-4 cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<div class="col-md-4 cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<div class="col-md-4 cashier_number border-left" data-value="0" data-type="num">0</div>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
<div class="col-md-4 cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<div class="col-md-4 cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number green" data-type="nett">Nett</div>
|
<div class="col-md-4 cashier_number green border-left" data-type="nett">Nett</div>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<div class="col-md-4 cashier_number red border-left" data-type="del">Del</div>
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
<div class="col-md-4 cashier_number orange border-left" data-type="clr">Clr</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="1000" data-type="add">1000</div>
|
<div class="cashier_number long border-left" data-value="1000" data-type="add">1000</div>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="5000" data-type="add">5000</div>
|
<div class="cashier_number long border-left" data-value="5000" data-type="add">5000</div>
|
||||||
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="pay purple" id="redeem">Pay</div>
|
<div class="pay purple left" id="redeem">Pay</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -154,10 +153,9 @@ $("#redeem").click(function(){
|
|||||||
membership_id = $("#valid_amount").attr('data-member-value');
|
membership_id = $("#valid_amount").attr('data-member-value');
|
||||||
redeem_amount = parseFloat($("#used_amount").text());
|
redeem_amount = parseFloat($("#used_amount").text());
|
||||||
if(redeem_amount<=0 ){
|
if(redeem_amount<=0 ){
|
||||||
alert("Please type valid amount");
|
swal ( "Oops" , "Please type valid amount!" , "warning" );
|
||||||
|
|
||||||
}else if(valid_amount< redeem_amount){
|
}else if(valid_amount< redeem_amount){
|
||||||
alert(" Insufficient Amount!")
|
swal ( "Oops" , "Insufficient Amount!" , "warning" );
|
||||||
}else{
|
}else{
|
||||||
if(redeem_amount <= "<%= @redeem_prices %>"){
|
if(redeem_amount <= "<%= @redeem_prices %>"){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -166,14 +164,20 @@ $("#redeem").click(function(){
|
|||||||
data: {redeem_amount:redeem_amount,membership_id:membership_id,sale_id:sale_id},
|
data: {redeem_amount:redeem_amount,membership_id:membership_id,sale_id:sale_id},
|
||||||
success: function(result){
|
success: function(result){
|
||||||
if(result.status == true){
|
if(result.status == true){
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment"
|
swal({
|
||||||
|
title: "Infomation!",
|
||||||
|
text: result.status,
|
||||||
|
}, function () {
|
||||||
|
window.location.href = '/origami/sale/'+ sale_id + "/payment"
|
||||||
|
});
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
alert(result.message);
|
swal ( "Information" , result.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
alert("Redeem Amount is over!");
|
swal ( "Oops" , "Redeem Amount is over!" , "warning" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -142,21 +142,12 @@
|
|||||||
url: ajax_url,
|
url: ajax_url,
|
||||||
data: 'sale_item_id=' + sale_item_id + "&update_qty=" + qty + "&update_price=" + price,
|
data: 'sale_item_id=' + sale_item_id + "&update_qty=" + qty + "&update_price=" + price,
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Alert!',
|
title: "Infomation!",
|
||||||
content: 'Qty and Price was successfully Updated',
|
text: "Qty and Price was successfully Updated",
|
||||||
buttons: {
|
}, function () {
|
||||||
|
location.reload();
|
||||||
confirm: {
|
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green btn-lg',
|
|
||||||
action: function () {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-5 col-md-5 col-sm-3">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h2>VISA</h2>
|
<h2>VISA</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-3">
|
||||||
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
<span class="hidden" id="membership_id"><%= @membership_id%></span>
|
||||||
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
<span class="hidden" id="member_discount"><%= @member_discount%></span>
|
||||||
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
<span class="hidden" id="sub-total"><%= @sub_total%></span>
|
||||||
<div class="card" style="margin-top:10px;padding-top:20px;">
|
<div class="card" style="padding:0px 20px;">
|
||||||
<div class="rebate-form">
|
<div class="rebate-form">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
<div class="form-group col-lg-12 col-md-12 col-sm-12">
|
||||||
@@ -45,47 +45,46 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6" style="margin-top:75px;">
|
<div class="col-lg-6 col-md-6 col-sm-6" style="">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="1" data-type="num">1</div>
|
<div class="col-md-4 cashier_number " data-value="1" data-type="num">1</div>
|
||||||
<div class=" cashier_number left" data-value="2" data-type="num">2</div>
|
<div class="col-md-4 cashier_number border-left" data-value="2" data-type="num">2</div>
|
||||||
<div class=" cashier_number left" data-value="3" data-type="num">3</div>
|
<div class="col-md-4 cashier_number border-left" data-value="3" data-type="num">3</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="4" data-type="num">4</div>
|
<div class="col-md-4 cashier_number border-left" data-value="4" data-type="num">4</div>
|
||||||
<div class=" cashier_number left" data-value="5" data-type="num">5</div>
|
<div class="col-md-4 cashier_number border-left" data-value="5" data-type="num">5</div>
|
||||||
<div class=" cashier_number left" data-value="6" data-type="num">6</div>
|
<div class="col-md-4 cashier_number border-left" data-value="6" data-type="num">6</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="7" data-type="num">7</div>
|
<div class="col-md-4 cashier_number border-left" data-value="7" data-type="num">7</div>
|
||||||
<div class=" cashier_number left" data-value="8" data-type="num">8</div>
|
<div class="col-md-4 cashier_number border-left" data-value="8" data-type="num">8</div>
|
||||||
<div class=" cashier_number left" data-value="9" data-type="num">9</div>
|
<div class="col-md-4 cashier_number border-left" data-value="9" data-type="num">9</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number " data-value="0" data-type="num">0</div>
|
<div class="col-md-4 cashier_number border-left" data-value="0" data-type="num">0</div>
|
||||||
<div class=" cashier_number left" data-value="." data-type="num">.</div>
|
<div class="col-md-4 cashier_number border-left" data-value="." data-type="num">.</div>
|
||||||
<div class=" cashier_number left" data-value="00" data-type="num">00</div>
|
<div class="col-md-4 cashier_number border-left" data-value="00" data-type="num">00</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class=" cashier_number green" data-type="nett" >Nett</div>
|
<div class="col-md-4 cashier_number green border-left" data-type="nett" >Nett</div>
|
||||||
<div class=" cashier_number red left" data-type="del">Del</div>
|
<div class="col-md-4 cashier_number red border-left" data-type="del">Del</div>
|
||||||
<div class=" cashier_number orange left" data-type="clr">Clr</div>
|
<div class="col-md-4 cashier_number orange border-left" data-type="clr">Clr</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-1 col-sm-1">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="1000" data-type="add">1000</div>
|
<div class="cashier_number long left" data-value="1000" data-type="add">1000</div>
|
||||||
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
<div class="cashier_number long left" data-value="3000" data-type="add">3000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="cashier_number long" data-value="5000" data-type="add">5000</div>
|
<div class="cashier_number long left" data-value="5000" data-type="add">5000</div>
|
||||||
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
<div class="cashier_number long left" data-value="10000" data-type="add">10000</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row bottom">
|
<div class="row bottom">
|
||||||
<div class="pay purple" id="visa_pay">Pay</div>
|
<div class="pay purple left" id="visa_pay">Pay</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -170,30 +169,17 @@
|
|||||||
data: "amount="+ amount + "&sale_id="+ sale_id,
|
data: "amount="+ amount + "&sale_id="+ sale_id,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
$.confirm({
|
swal({
|
||||||
title: 'Infomation!',
|
title: "Infomation!",
|
||||||
content: 'Payment Successfully',
|
text: "Payment Successfully",
|
||||||
buttons: {
|
}, function () {
|
||||||
confirm: {
|
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||||
text: 'Ok',
|
|
||||||
btnClass: 'btn-green',
|
|
||||||
action: function(){
|
|
||||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
$.alert({
|
swal ( "Oops" , "Paid Amount is over!" , "error" );
|
||||||
title: 'Alert!',
|
|
||||||
content: "Paid Amount is over!",
|
|
||||||
type: 'red',
|
|
||||||
typeAnimated: true,
|
|
||||||
btnClass: 'btn-danger',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<div class="m-b-10 clearfix">
|
<div class="m-b-10 clearfix">
|
||||||
<%= link_to t("views.btn.new"),new_print_setting_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
|
<%= link_to t("views.btn.new"),new_print_setting_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
|
||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card table-responsive">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -27,9 +27,9 @@
|
|||||||
<th>Page width</th>
|
<th>Page width</th>
|
||||||
<th>Page height</th>
|
<th>Page height</th>
|
||||||
<th>Print copies</th>
|
<th>Print copies</th>
|
||||||
<th>Precision</th>
|
<!-- <th>Precision</th> -->
|
||||||
<th>Delimiter</th>
|
<!-- <th>Delimiter</th> -->
|
||||||
<th>Heading_space</th>
|
<!-- <th>Heading space</th> -->
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -46,9 +46,9 @@
|
|||||||
<td><%= print_setting.page_width %></td>
|
<td><%= print_setting.page_width %></td>
|
||||||
<td><%= print_setting.page_height %></td>
|
<td><%= print_setting.page_height %></td>
|
||||||
<td><%= print_setting.print_copies %></td>
|
<td><%= print_setting.print_copies %></td>
|
||||||
<td><%= print_setting.precision %></td>
|
<!-- <td><%= print_setting.precision %></td> -->
|
||||||
<td><%= print_setting.delimiter %></td>
|
<!-- <td><%= print_setting.delimiter %></td> -->
|
||||||
<td><%= print_setting.heading_space %></td>
|
<!-- <td><%= print_setting.heading_space %></td> -->
|
||||||
<td>
|
<td>
|
||||||
<%= link_to t("views.btn.show"), print_setting,:class => 'btn btn-primary btn-sm waves-effect' %>
|
<%= link_to t("views.btn.show"), print_setting,:class => 'btn btn-primary btn-sm waves-effect' %>
|
||||||
<%= link_to t("views.btn.edit"), edit_print_setting_path(print_setting),:class => 'btn btn-info btn-sm waves-effect' %></td>
|
<%= link_to t("views.btn.edit"), edit_print_setting_path(print_setting),:class => 'btn btn-info btn-sm waves-effect' %></td>
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
<th>Active</th>
|
<th>Active</th>
|
||||||
<th>Login?</th>
|
<th>Login?</th>
|
||||||
<th>Auto print</th>
|
<th>Auto print</th>
|
||||||
<th>Printer name</th>
|
<!-- <th>Printer name</th> -->
|
||||||
<th>Show tax</th>
|
<th>Show tax</th>
|
||||||
<th>Show cashier</th>
|
<th>Show cashier</th>
|
||||||
<th>Show guest info</th>
|
<!-- <th>Show guest info</th> -->
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -35,12 +35,12 @@
|
|||||||
<td><%= settings_cashier_terminal.is_active %></td>
|
<td><%= settings_cashier_terminal.is_active %></td>
|
||||||
<td><%= settings_cashier_terminal.is_currently_login %></td>
|
<td><%= settings_cashier_terminal.is_currently_login %></td>
|
||||||
<td><%= settings_cashier_terminal.auto_print_receipt %></td>
|
<td><%= settings_cashier_terminal.auto_print_receipt %></td>
|
||||||
<td><%= settings_cashier_terminal.printer_name %></td>
|
<!-- <td><%= settings_cashier_terminal.printer_name %></td> -->
|
||||||
<td><%= settings_cashier_terminal.show_tax %></td>
|
<td><%= settings_cashier_terminal.show_tax %></td>
|
||||||
<td><%= settings_cashier_terminal.show_cashier %></td>
|
<td><%= settings_cashier_terminal.show_cashier %></td>
|
||||||
<td><%= settings_cashier_terminal.show_guest_info %></td>
|
<!-- <td><%= settings_cashier_terminal.show_guest_info %></td> -->
|
||||||
<td><%= link_to t("views.btn.edit"), edit_settings_cashier_terminal_path(settings_cashier_terminal),:class => 'btn btn-info btn-lg waves-effect' %>
|
<td><%= link_to t("views.btn.edit"), edit_settings_cashier_terminal_path(settings_cashier_terminal),:class => 'btn btn-info btn-sm waves-effect' %>
|
||||||
<%= link_to t("views.btn.delete"), settings_cashier_terminal_path(settings_cashier_terminal), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-lg waves-effect' %></td>
|
<%= link_to t("views.btn.delete"), settings_cashier_terminal_path(settings_cashier_terminal), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -1,12 +1,3 @@
|
|||||||
<!-- <div class="page-header">
|
|
||||||
<ul class="breadcrumb">
|
|
||||||
<li><a href="<%= %>">Home</a></li>
|
|
||||||
<li>Menu Item Attributes</li>
|
|
||||||
<span style="float: right">
|
|
||||||
<%= link_to t("views.btn.new"),new_settings_menu_item_attribute_path,:class => 'btn btn-primary btn-sm' %>
|
|
||||||
</span>
|
|
||||||
</ul>
|
|
||||||
</div> -->
|
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
|
<li class="breadcrumb-item"><a href="<%= dashboard_path %>">Home</a></li>
|
||||||
@@ -54,7 +45,15 @@
|
|||||||
<td><%= settings_menu_item_attribute.value %></td>
|
<td><%= settings_menu_item_attribute.value %></td>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to t("views.btn.edit"), edit_settings_menu_item_attribute_path(settings_menu_item_attribute),:class => 'btn btn-primary btn-sm waves-effect' %>
|
<%= link_to t("views.btn.edit"), edit_settings_menu_item_attribute_path(settings_menu_item_attribute),:class => 'btn btn-primary btn-sm waves-effect' %>
|
||||||
<%= link_to t("views.btn.delete"), settings_menu_item_attribute_path(settings_menu_item_attribute), method: :delete, data: { confirm: 'Are you sure?' },:class => 'btn btn-danger btn-sm waves-effect' %>
|
|
||||||
|
<button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%=settings_menu_item_attribute_path(settings_menu_item_attribute)%>" data-method="delete">
|
||||||
|
<%= t("views.btn.delete") %>
|
||||||
|
</button>
|
||||||
|
<!-- Start Delete confirrm text !-->
|
||||||
|
<span class="hidden" id="delete_text">
|
||||||
|
<h6>Are you sure you want to delete this row ?</h6>
|
||||||
|
<h6>This action can't be undo. </h6>
|
||||||
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -25,9 +25,9 @@
|
|||||||
<th>Is active</th>
|
<th>Is active</th>
|
||||||
<th>Auto Print</th>
|
<th>Auto Print</th>
|
||||||
<th>Print copy</th>
|
<th>Print copy</th>
|
||||||
<th>Cut per item</th>
|
<!-- <th>Cut per item</th> -->
|
||||||
<th>Alternate name</th>
|
<th>Alternate name</th>
|
||||||
<th>Created by</th>
|
<!-- <th>Created by</th> -->
|
||||||
<th> Created At</th>
|
<th> Created At</th>
|
||||||
<th>Updated At</th>
|
<th>Updated At</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
@@ -43,13 +43,12 @@
|
|||||||
<td><%= settings_order_queue_station.auto_print %></td>
|
<td><%= settings_order_queue_station.auto_print %></td>
|
||||||
<td><%= settings_order_queue_station.print_copy %></td>
|
<td><%= settings_order_queue_station.print_copy %></td>
|
||||||
|
|
||||||
<td><%= settings_order_queue_station.cut_per_item %></td>
|
<!-- <td><%= settings_order_queue_station.cut_per_item %></td> -->
|
||||||
<td><%= settings_order_queue_station.use_alternate_name %></td>
|
<td><%= settings_order_queue_station.use_alternate_name %></td>
|
||||||
<td><%= settings_order_queue_station.created_by %></td>
|
<!-- <td><%= settings_order_queue_station.created_by %></td> -->
|
||||||
<td><%= settings_order_queue_station.created_at.strftime("%m-%d-%Y") %></td>
|
<td><%= settings_order_queue_station.created_at.strftime("%m-%d-%Y") %></td>
|
||||||
<td><%= settings_order_queue_station.updated_at.strftime("%m-%d-%Y") %></td>
|
<td><%= settings_order_queue_station.updated_at.strftime("%m-%d-%Y") %></td>
|
||||||
<td><%= link_to 'Assign Processing Items', new_settings_order_queue_station_processing_item_path(settings_order_queue_station),:class => ' btn-success btn-sm waves-effect' %></td>
|
<td><%= link_to 'Assign Processing Items', new_settings_order_queue_station_processing_item_path(settings_order_queue_station),:class => ' btn-success btn-sm waves-effect' %><%= link_to t("views.btn.edit"), edit_settings_order_queue_station_path(settings_order_queue_station),:class => 'btn btn-info btn-sm waves-effect' %></td>
|
||||||
<td><%= link_to t("views.btn.edit"), edit_settings_order_queue_station_path(settings_order_queue_station),:class => 'btn btn-info btn-lg waves-effect' %></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user