update cable for cloud

This commit is contained in:
Aung Myo
2018-01-16 17:19:14 +06:30
parent 37d01f6903
commit d5b42b0ff0
2 changed files with 7 additions and 3 deletions

View File

@@ -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){

View File

@@ -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'