update addorder and mem_action for additional para
This commit is contained in:
@@ -888,6 +888,8 @@ $(function() {
|
|||||||
|
|
||||||
id = $(this).attr('id');
|
id = $(this).attr('id');
|
||||||
value = $(this).val();
|
value = $(this).val();
|
||||||
|
|
||||||
|
if ($.isNumeric(value)) {
|
||||||
$('.change_qty').attr('value',value);
|
$('.change_qty').attr('value',value);
|
||||||
if (id=="count") {
|
if (id=="count") {
|
||||||
price = $("#unit_price").text();
|
price = $("#unit_price").text();
|
||||||
@@ -908,6 +910,10 @@ $(function() {
|
|||||||
}
|
}
|
||||||
$("#set_total_price").text(total_price);
|
$("#set_total_price").text(total_price);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
$('#'+id).val(1);
|
||||||
|
swal("Opps","Please enter number for qty","warning");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* $("input").keypress(function(){
|
/* $("input").keypress(function(){
|
||||||
|
|||||||
@@ -72,6 +72,6 @@ class Settings::MembershipActionsController < ApplicationController
|
|||||||
|
|
||||||
# Never trust parameters from the scary internet, only allow the white list through.
|
# Never trust parameters from the scary internet, only allow the white list through.
|
||||||
def settings_membership_action_params
|
def settings_membership_action_params
|
||||||
params.require(:membership_action).permit(:membership_type, :is_active, :gateway_communication_type, :gateway_url, :auth_token, :merchant_account_id, :created_by, :additional_parameter)
|
params.require(:membership_action).permit(:membership_type, :is_active, :gateway_communication_type, :gateway_url, :auth_token, :merchant_account_id, :created_by)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -71,6 +71,6 @@ class Settings::ShopsController < ApplicationController
|
|||||||
|
|
||||||
# Never trust parameters from the scary internet, only allow the white list through.
|
# Never trust parameters from the scary internet, only allow the white list through.
|
||||||
def shop_params
|
def shop_params
|
||||||
params.require(:shop).permit(:name,:address,:city,:township,:state,:country,:phone_no,:reservation_no,:license,:activated_at,:license_data,:base_currency,:cloud_token,:cloud_url,:owner_token,:id_prefix,:is_rounding_adj,:quick_sale_summary,:calc_tax_order)
|
params.require(:shop).permit(:name,:address,:city,:township,:state,:country,:phone_no,:reservation_no,:license,:activated_at,:license_data,:base_currency,:cloud_token,:cloud_url,:owner_token,:id_prefix,:is_rounding_adj,:quick_sale_summary,:calc_tax_order,:show_account_info)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -140,7 +140,7 @@
|
|||||||
|
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<input type="number" value="1" id="count" class="change_qty keypress_qty form-control col-md-12 ">
|
<input type="text" value="1" id="count" class="change_qty keypress_qty form-control col-md-12 ">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="button" class="btn btn-success btn-number" value="+" id="plus">
|
<button type="button" class="btn btn-success btn-number" value="+" id="plus">
|
||||||
<i class="material-icons">add</i>
|
<i class="material-icons">add</i>
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
<i class="material-icons">remove</i>
|
<i class="material-icons">remove</i>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<input type="number" value="1" id="set_count" class="set_change_qty keypress_qty form-control col-md-12 ">
|
<input type="text" value="1" id="set_count" class="set_change_qty keypress_qty form-control col-md-12 ">
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="button" class="btn btn-success btn-number" value="+" id="set_plus">
|
<button type="button" class="btn btn-success btn-number" value="+" id="set_plus">
|
||||||
<i class="material-icons">add</i>
|
<i class="material-icons">add</i>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
<%= f.input :gateway_url %>
|
<%= f.input :gateway_url %>
|
||||||
<%= f.input :auth_token %>
|
<%= f.input :auth_token %>
|
||||||
<%= f.input :merchant_account_id %>
|
<%= f.input :merchant_account_id %>
|
||||||
<%= f.input :additional_parameter, as: :text %>
|
|
||||||
<%= f.input :created_by %>
|
<%= f.input :created_by %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user