diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb
index ff155525..96f69da9 100755
--- a/app/views/origami/payments/show.html.erb
+++ b/app/views/origami/payments/show.html.erb
@@ -312,9 +312,10 @@
receipt_no = ($("#receipt_no").html()).trim();
}
- payment_type = checkReceiptNoInFirstBillData(receipt_no,"payment")
+ payment_type = '';
+
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
-
+ payment_type = checkReceiptNoInFirstBillData(receipt_no,"payment")
if (member_id && member_discount) {
if(parseInt(jQuery.inArray("Credit", payment_type)) == -1){
diff --git a/config/routes.rb b/config/routes.rb
index a31dcb5c..7fe033a0 100755
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -7,7 +7,10 @@ scope "(:locale)", locale: /en|mm/ do
mount Sidekiq::Web => '/kiq'
# Action Cable Creation
- mount ActionCable.server => "/cable"
+ if ENV["SERVER_MODE"] != "cloud"
+ mount ActionCable.server => "/cable"
+ end
+
#--------- SmartSales Activation ------------#
get 'activate' => 'install#index'