+
-
-
-
-
-
-
-
-
Customer Profile
@@ -51,11 +33,8 @@
-
-
-
-
+
Membership Detail
@@ -78,8 +57,22 @@
+
-
+
+
+
+
Order Details
@@ -114,9 +107,8 @@
-
-
Sale Details
+
Sale Details
-
diff --git a/app/views/crm/dining_queues/_form.html.erb b/app/views/crm/dining_queues/_form.html.erb
index a99f6b76..7f02ac15 100644
--- a/app/views/crm/dining_queues/_form.html.erb
+++ b/app/views/crm/dining_queues/_form.html.erb
@@ -1,16 +1,25 @@
<%= simple_form_for([:crm,@dining_queue]) do |f| %>
<%= f.error_notification %>
-
+
<%= @queue_no %>
<%= f.input :name %>
<%= f.input :contact_no %>
- <%= f.input :queue_no %>
+ <%= f.input :queue_no , :class => "dining",:id => "dining", :readonly => true%>
-
+
<%= f.button :submit %>
<% end %>
+
+
diff --git a/app/views/origami/home/index.html.erb b/app/views/origami/home/index.html.erb
index ad09225b..05d0f28d 100644
--- a/app/views/origami/home/index.html.erb
+++ b/app/views/origami/home/index.html.erb
@@ -383,6 +383,6 @@
-
+
diff --git a/app/views/transactions/sales/void.html.erb b/app/views/transactions/manual_sales/void.html.erb
similarity index 100%
rename from app/views/transactions/sales/void.html.erb
rename to app/views/transactions/manual_sales/void.html.erb
diff --git a/app/views/transactions/orders/index.html.erb b/app/views/transactions/orders/index.html.erb
index 29cd001c..80befdc1 100644
--- a/app/views/transactions/orders/index.html.erb
+++ b/app/views/transactions/orders/index.html.erb
@@ -34,7 +34,6 @@
@@ -42,13 +41,13 @@
<% @orders.each do |order| %>
<% end %>
diff --git a/app/views/transactions/orders/show.html.erb b/app/views/transactions/orders/show.html.erb
index dc5bae88..e1127296 100644
--- a/app/views/transactions/orders/show.html.erb
+++ b/app/views/transactions/orders/show.html.erb
@@ -14,7 +14,7 @@
-
+
@@ -70,13 +70,16 @@
<% end %>
-
- Back
-
+
+
diff --git a/app/views/transactions/sales/index.html.erb b/app/views/transactions/sales/index.html.erb
index b7e73219..2f437f3c 100644
--- a/app/views/transactions/sales/index.html.erb
+++ b/app/views/transactions/sales/index.html.erb
@@ -36,7 +36,6 @@
Cashier |
Sales status |
Receipt Date |
-
Action |
@@ -44,14 +43,13 @@
<% if @sales != 0 %>
<% @sales.each do |sale| %>
- | <%= sale.sale_id %> |
+ <%= link_to sale.sale_id, transactions_sale_path(sale) %> |
<%= sale.receipt_no %> |
<%= sale.grand_total rescue '-' %> |
<%= sale.total_tax %> |
<%= sale.cashier_name rescue '-' %> |
<%= sale.sale_status %> |
<%= sale.receipt_date.strftime("%d-%m-%Y") %> |
- <%= link_to 'Show', transactions_sale_path(sale) %> |
<% end %>
<% else %>
diff --git a/app/views/transactions/sales/show.html.erb b/app/views/transactions/sales/show.html.erb
index b61f2312..5f4e8f6e 100644
--- a/app/views/transactions/sales/show.html.erb
+++ b/app/views/transactions/sales/show.html.erb
@@ -82,12 +82,13 @@
Discount |
<%= number_with_precision(@sale.total_discount, :precision => 2, :delimiter => ',') rescue ' '%> |
+ <% @sale.sale_taxes.each do |r|%>
|
- Tax |
- <%= number_with_precision(@sale.total_tax, :precision => 2, :delimiter => ',') rescue ' '%> |
+ <%= r.tax_name %>(<%= r.tax_rate %>) |
+ <%= number_with_precision(r.tax_payable_amount, :precision => 2, :delimiter => ',') rescue ' '%> |
-
+ <% end %>
|
Grand Total |
@@ -99,21 +100,24 @@
Pay Amount |
<%= number_with_precision(@sale.amount_received, :precision => 2, :delimiter => ',') rescue ' '%> |
-
- |
- Change |
- <%= number_with_precision(@sale.amount_changed, :precision => 2, :delimiter => ',') rescue ' '%> |
-
+
<% @sale_receivables.each do |r|%>
|
Payment <%= r.payment_method rescue ' '%> |
<%= number_with_precision(r.payment_amount, :precision => 2, :delimiter => ',') rescue ' '%>
|
-
-
+
+
<% end %>
+
+
+ |
+ Change |
+ <%= number_with_precision(@sale.amount_changed, :precision => 2, :delimiter => ',') rescue ' '%> |
+
+
@@ -160,67 +164,61 @@
-
-
-
-
- |
-
-
- Customer Details |
- |
- |
-
-
- |
- Name |
- <%= @customer.name %> |
-
-
- |
- Email |
- <%= @customer.email %> |
-
-
- |
- Contact no |
- <%= @customer.contact_no %> |
-
-
- |
- Company |
- <%= @customer.company rescue '-' %> |
-
-
- |
- Date Of Birth |
- <%= @customer.date_of_birth rescue '-' %> |
-
-
- Membership Details |
- |
- |
-
- <% if @membership == 0 %>
-
- | "There is no membership data" |
-
- <% else %>
- <% @membership.each do |member| %>
-
- |
- <%= member["accountable_type"] %> |
- <%= member["balance"] %> |
-
- <% end %>
-
- <% end %>
-
-
-
-
-
-
+
+
+
+
Customer Profile
+
+
+
+
+ | Name |
+ <%= @customer.name %> |
+
+
+ | Email |
+ <%= @customer.email %> |
+
+
+ | Contact no |
+ <%= @customer.contact_no %> |
+
+
+ | Company |
+ <%= @customer.company %> |
+
+
+ | Date Of Birth |
+ <%= @customer.date_of_birth %> |
+
+
+
+
+
+
+
+
Membership Detail
+
+
+
+ <% if @membership == 0 %>
+
+ | "There is no membership data" |
+
+ <% else %>
+ <% @membership.each do |member| %>
+
+ | <%= member["accountable_type"] %> |
+ <%= member["balance"] %> |
+
+ <% end %>
+
+ <% end %>
+
+
+
+
+
@@ -229,18 +227,17 @@