update payment link with payment method

This commit is contained in:
Aung Myo
2018-09-12 17:54:04 +06:30
parent ffca0af445
commit b1480a5066
5 changed files with 29 additions and 21 deletions

View File

@@ -359,6 +359,7 @@
<tr>
<td class="charges-name"><strong>
<% if !@sale_taxes.empty? %>
<input type="hidden" name="" id="check_tax" value="all">
Tax:
(<% @i = 0
@sale_taxes.each do |ct| %>
@@ -368,6 +369,7 @@
<%end%>
<%end %>)
<% else %>
<input type="hidden" name="" id="check_tax" value="">
No Tax
<% end %></strong><br>
<%if !@webview && @changable_tax %>
@@ -1104,8 +1106,8 @@
var dining_id = "<%= @dining.id %>";
var sale_id = $("#sale_id").val(); //<%= @obj_sale.sale_id rescue "" %>
var ajax_url = "/origami/sale/append_order";
var tax_type = localStorage.getItem("tax_type");
console.log(tax_type)
// var tax_type = localStorage.getItem("tax_type");
var tax_type = $("#check_tax").val();
$.ajax({
type: "POST",
url: ajax_url,

View File

@@ -393,6 +393,7 @@
<tr>
<td class="charges-name"><strong>
<% if !@sale_taxes.empty? %>
<input type="hidden" name="" id="check_tax" value="all">
Tax:
(<% @i = 0
@sale_taxes.each do |ct| %>
@@ -402,6 +403,7 @@
<%end%>
<%end %>)
<% else %>
<input type="hidden" name="" id="check_tax" value="">
No Tax
<% end %></strong><br>
<%if !@webview && @changable_tax %>
@@ -1168,7 +1170,8 @@ $('#add_invoice').on('click',function(){
var dining_id = "<%= @room.id %>"
var sale_id = $("#sale_id").val(); //<%= @obj_sale.sale_id rescue "" %>
var ajax_url = "/origami/sale/append_order";
var tax_type = localStorage.getItem("tax_type");
// var tax_type = localStorage.getItem("tax_type");
var tax_type = $("#check_tax").val();
$.ajax({
type: "POST",
url: ajax_url,