-
Other Payment
-
-
-
- <% if @other != 0.0 %>
-
- <% else %>
-
- <% end %>
-
- <% if @ppamount != 0.0 %>
-
-
Paypar
-
<%= @ppamount %>
-
- <% else %>
-
- <% end %>
-
- <% if @visacount != 0.0 %>
-
-
Visa
-
<%= @visacount %>
-
- <% else %>
-
- <% end %>
-
- <% if @jcbcount != 0.0 %>
-
-
JCB
-
<%= @jcbcount %>
-
- <% else %>
-
- <% end %>
-
- <% if @mastercount != 0.0 %>
-
-
Master
-
<%= @mastercount %>
-
- <% else %>
-
- <% end %>
- <% if @other == 0.0 && @ppamount == 0.0 %>
-
- <% end %>
-
+ <% if @other == 0.0 && @ppamount == 0.0 && @visacount == 0.0 && @jcbcount == 0.0 && @mastercount == 0.0%>
+
+
Other Payments
+
<%= @other %>
-
+ <% else %>
+
+ <% end %>
+
+
+ <% if @other != 0.0 %>
+
+
+
MPU
+
<%= @other %>
+
+ <% else %>
+
+ <% end %>
+
+ <% if @ppamount != 0.0 %>
+
+
+
Paypar
+
<%= @ppamount %>
+
+ <% else %>
+
+ <% end %>
+
+ <% if @visacount != 0.0 %>
+
+
+
Visa
+
<%= @visacount %>
+
+ <% else %>
+
+ <% end %>
+
+ <% if @jcbcount != 0.0 %>
+
+
+
JCB
+
<%= @jcbcount %>
+
+ <% else %>
+
+ <% end %>
+
+ <% if @mastercount != 0.0 %>
+
+
+
Master
+
<%= @mastercount %>
+
+ <% else %>
+
+ <% end %>
Balance
diff --git a/app/views/print_settings/_form.html.erb b/app/views/print_settings/_form.html.erb
index e6ed306b..c5166103 100644
--- a/app/views/print_settings/_form.html.erb
+++ b/app/views/print_settings/_form.html.erb
@@ -18,5 +18,6 @@
<%= f.button :submit %>
+ <%= link_to 'Back', print_settings_path, :class => "btn btn-default" %>
<% end %>
diff --git a/app/views/print_settings/edit.html.erb b/app/views/print_settings/edit.html.erb
index fdae5f78..362dce39 100644
--- a/app/views/print_settings/edit.html.erb
+++ b/app/views/print_settings/edit.html.erb
@@ -1,6 +1,13 @@
-
Editing Print Setting
+
+
+ <%= render 'form', print_setting: @print_setting %>
+
+
-<%= render 'form', print_setting: @print_setting %>
-<%= link_to 'Show', @print_setting %> |
-<%= link_to 'Back', print_settings_path %>
diff --git a/app/views/print_settings/index.html.erb b/app/views/print_settings/index.html.erb
index 32d3dead..0db16892 100644
--- a/app/views/print_settings/index.html.erb
+++ b/app/views/print_settings/index.html.erb
@@ -1,49 +1,55 @@
<%= notice %>
+
-
Print Settings
-
-
-
-
- | Name |
- Unique code |
- Template |
- Db name |
- Db type |
- Db username |
- Db password |
- Printer name |
- Api settings |
- Page width |
- Page height |
- Print copies |
- |
-
-
-
-
- <% @print_settings.each do |print_setting| %>
+
+
+
+
- | <%= print_setting.name %> |
- <%= print_setting.unique_code %> |
- <%= print_setting.template %> |
- <%= print_setting.db_name %> |
- <%= print_setting.db_type %> |
- <%= print_setting.db_username %> |
- <%= print_setting.db_password %> |
- <%= print_setting.printer_name %> |
- <%= print_setting.api_settings %> |
- <%= print_setting.page_width %> |
- <%= print_setting.page_height %> |
- <%= print_setting.print_copies %> |
- <%= link_to 'Show', print_setting %> |
- <%= link_to 'Edit', edit_print_setting_path(print_setting) %> |
- <%= link_to 'Destroy', print_setting, method: :delete, data: { confirm: 'Are you sure?' } %> |
+ Name |
+ Unique code |
+ Template |
+
+ Printer name |
+ Api settings |
+ Page width |
+ Page height |
+ Print copies |
+ |
- <% end %>
-
-
+
-
-
-<%= link_to 'New Print Setting', new_print_setting_path %>
+
+ <% @print_settings.each do |print_setting| %>
+
+ | <%= print_setting.name %> |
+ <%= print_setting.unique_code %> |
+ <%= print_setting.template %> |
+
+ <%= print_setting.printer_name %> |
+ <%= print_setting.api_settings %> |
+ <%= print_setting.page_width %> |
+ <%= print_setting.page_height %> |
+ <%= print_setting.print_copies %> |
+ <%= link_to 'Show', print_setting %> |
+ <%= link_to 'Edit', edit_print_setting_path(print_setting) %> |
+ <%= link_to 'Destroy', print_setting, method: :delete, data: { confirm: 'Are you sure?' } %> |
+
+ <% end %>
+
+
+
diff --git a/app/views/print_settings/new.html.erb b/app/views/print_settings/new.html.erb
index 810ad9c9..2521a16b 100644
--- a/app/views/print_settings/new.html.erb
+++ b/app/views/print_settings/new.html.erb
@@ -1,5 +1,15 @@
-
New Print Setting
+
+
+ <%= render 'form', print_setting: @print_setting %>
+
+
+
+
-<%= render 'form', print_setting: @print_setting %>
-<%= link_to 'Back', print_settings_path %>
diff --git a/app/views/print_settings/show.html.erb b/app/views/print_settings/show.html.erb
index 12d15696..b15e4650 100644
--- a/app/views/print_settings/show.html.erb
+++ b/app/views/print_settings/show.html.erb
@@ -1,5 +1,11 @@
<%= notice %>
-
+
Name:
<%= @print_setting.name %>
diff --git a/app/views/settings/employees/edit.html.erb b/app/views/settings/employees/edit.html.erb
index 6948734c..a6c0a4aa 100644
--- a/app/views/settings/employees/edit.html.erb
+++ b/app/views/settings/employees/edit.html.erb
@@ -1,11 +1,11 @@
-
+
<%= render 'form', employee: @employee %>
diff --git a/app/views/settings/employees/new.html.erb b/app/views/settings/employees/new.html.erb
index 7c6498f5..430df9f2 100644
--- a/app/views/settings/employees/new.html.erb
+++ b/app/views/settings/employees/new.html.erb
@@ -1,11 +1,11 @@
-
+
<%= render 'form', employee: @employee %>
diff --git a/app/views/transactions/sales/show.html.erb b/app/views/transactions/sales/show.html.erb
index a96c63db..26fcc62f 100644
--- a/app/views/transactions/sales/show.html.erb
+++ b/app/views/transactions/sales/show.html.erb
@@ -93,7 +93,7 @@
Grand Total |
<%= number_with_precision(@sale.grand_total, :precision => 2, :delimiter => ',') rescue ' '%> |