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 5f6365e5..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,7 +164,61 @@
-
+
+
+
+
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 %>
+
+
+
+
+
@@ -169,16 +227,15 @@