- Receipt No : <%=@sale_data.receipt_no rescue ' '%>
- Receipt Date : <%=@sale_data.receipt_date.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>
- Table No <% if @sale_data%>- <%=@sale_data.receipt_no%><% end %>
- Sale Id<% if @sale_data %><%=@sale_data.sale_id %><% end %>
+
+
+
Receipt No : <%=@sale_data.receipt_no rescue ' '%>
+
Receipt Date : <%=@sale_data.receipt_date.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>
+
+
+
Table No <% if @sale_data%>- <%=@sale_data.receipt_no%><% end %>
+
Sale Id<% if @sale_data %><%=@sale_data.sale_id %><% end %>
+
+
+
Customer : Default Customer
+
Points : 1234
+
+
-
-
+
+
-
Items
-
QTY
-
Price
+
Items
+
QTY
+
Price
-
+
@@ -71,95 +81,80 @@
-
-
AMOUNT DUE
-
<%= @sale_data.grand_total %>
+
+
Amount Due
+
<%= @sale_data.grand_total %>
-
CASH
+
Cash
<%= @cash %>
-
CREDIT
+
Credit
0.0
-
OTHERS PAYMENT
+
Others Payment
0.0
-
BALANCE
+
Balance
<%= @sale_data.grand_total %>
-
-
-
-
-
-
1
-
2
-
3
-
-
-
-
1000
+
+
+
+
+
1
+
2
+
3
+
+
+
4
+
5
+
6
+
+
+
7
+
8
+
9
+
+
+
0
+
.
+
00
+
+
+
+
Del
+
Clr
-
-
-
-
4
-
5
-
6
-
+
+
+
1000
+
3000
-
-
5000
+
+
5000
+
10000
+
+
+
Pay
-
-
-
-
7
-
8
-
9
-
-
-
-
10000
-
-
-
-
-
-
0
-
.
-
00
-
-
-
-
50000
-
-
-
-
-
-
-
DEL
-
CLR
-
-
-
-
PAY
-
-
-
+
+
+
+
+
+
diff --git a/config/routes.rb b/config/routes.rb
index 91acd6a3..26c00d10 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,7 +1,7 @@
require 'sidekiq/web'
Rails.application.routes.draw do
-
+
namespace :settings do
resources :membership_actions
end
@@ -85,8 +85,9 @@ Rails.application.routes.draw do
post 'paypar_payment_process' => 'paypar_payments#create'
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"
get 'sale/:sale_id/payment/others_payment' => "others_payments#index"
- get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
-
+ # get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
+ get 'sale/:sale_id/payment/others_payment/MPU' => "mpu#index"
+ get 'sale/:sale_id/payment/others_payment/REDIMREBATE' => "redeem_payments#index"
end
#--------- Waiter/Ordering Station ------------#
diff --git a/lib/tasks/clear_data.rake b/lib/tasks/clear_data.rake
new file mode 100644
index 00000000..c9e0fe22
--- /dev/null
+++ b/lib/tasks/clear_data.rake
@@ -0,0 +1,16 @@
+namespace :clear do
+ desc "Clear Data"
+ task :data => :environment do
+ BookingOrder.delete_all
+ Booking.delete_all
+ OrderItem.delete_all
+ AssignedOrderItem.delete_all
+ Order.delete_all
+ SaleOrder.delete_all
+ SaleItem.delete_all
+ Sale.delete_all
+ SaleAudit.delete_all
+ SalePayment.delete_all
+ puts "Clear Data Done."
+ end
+end