sale void

This commit is contained in:
Myat Zin Wai Maw
2020-02-03 14:37:25 +06:30
parent fd50ca004c
commit 70a0c21567
8 changed files with 102 additions and 43 deletions

View File

@@ -67,6 +67,8 @@ class Customer < ApplicationRecord
'Accept' => 'application/json; version=3'
},
:timeout => 10)
rescue Errno::ECONNREFUSED
response = {status: false, message: "Can't open membership server " }
rescue HTTParty::Error
response = {status: false, message: "Server Error"}