From 0f7238bbbaab224514c8e50cb99a1801179d1549 Mon Sep 17 00:00:00 2001 From: Peng DU Date: Fri, 23 Sep 2016 11:46:58 +0200 Subject: [PATCH 1/2] fix wallet amount display error --- app/assets/templates/shared/_wallet_amount_info.html.erb | 8 ++++---- app/assets/templates/stripe/payment_modal.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/templates/shared/_wallet_amount_info.html.erb b/app/assets/templates/shared/_wallet_amount_info.html.erb index 2eeb7b4e9..84c2d0bd5 100644 --- a/app/assets/templates/shared/_wallet_amount_info.html.erb +++ b/app/assets/templates/shared/_wallet_amount_info.html.erb @@ -1,10 +1,10 @@
-

{{ 'you_have_amount_in_wallet' | translate:{ amount: numberFilter(walletAmount, 2), currency: currencySymbol } }}

+

{{'wallet_pay_reservation' | translate}}

-

{{'credit_amount_for_pay_reservation' | translate:{ amount: numberFilter(amount, 2), currency: currencySymbol } }}

+

-

{{ 'client_have_amount_in_wallet' | translate:{ amount: numberFilter(walletAmount, 2), currency: currencySymbol } }}

+

{{'client_wallet_pay_reservation' | translate}}

-

{{'client_credit_amount_for_pay_reservation' | translate:{ amount: numberFilter(amount, 2), currency: currencySymbol } }}

+

diff --git a/app/assets/templates/stripe/payment_modal.html.erb b/app/assets/templates/stripe/payment_modal.html.erb index 5c0aa11a9..20bebea04 100644 --- a/app/assets/templates/stripe/payment_modal.html.erb +++ b/app/assets/templates/stripe/payment_modal.html.erb @@ -10,8 +10,8 @@
-

{{ 'you_have_amount_in_wallet' | translate:{ amount: numberFilter(walletAmount, 2), currency: currencySymbol } }}

-

{{'credit_amount_for_pay_reservation' | translate:{ amount: numberFilter(amount, 2), currency: currencySymbol } }}

+

+

From fc9aeb00a2ea20e98db28eb32f4609b381cbbf8a Mon Sep 17 00:00:00 2001 From: Peng DU Date: Fri, 23 Sep 2016 12:52:43 +0200 Subject: [PATCH 2/2] remove edit wallet reference from facture --- app/assets/templates/admin/invoices/index.html.erb | 2 +- app/models/invoice.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/templates/admin/invoices/index.html.erb b/app/assets/templates/admin/invoices/index.html.erb index 6ba4bda8a..c4e47ff7d 100644 --- a/app/assets/templates/admin/invoices/index.html.erb +++ b/app/assets/templates/admin/invoices/index.html.erb @@ -210,7 +210,7 @@
  • {{ 'day' | translate }}
  • {{ '#_of_invoice' | translate }}
  • {{ 'online_sales' | translate }}
  • -
  • {{ 'wallet' | translate }}
  • + <%#
  • {{ 'wallet' | translate }}
  • %>
  • {{ 'refund' | translate }}
  • diff --git a/app/models/invoice.rb b/app/models/invoice.rb index 6eb2e7bec..5970283df 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -69,7 +69,7 @@ class Invoice < ActiveRecord::Base end # information about wallet (W[text]) - reference.gsub!(/W\[([^\]]+)\]/, ''.to_s) + #reference.gsub!(/W\[([^\]]+)\]/, ''.to_s) # remove information about refunds (R[text]) reference.gsub!(/R\[([^\]]+)\]/, ''.to_s)