Browse Source

Merge branch 'feature/bugfixes' of http://202.166.220.79:3000/JME-JAPAN/JME-IOS into #345

pull/2/head
Ashmita 3 years ago
parent
commit
f636ee9118
  1. 18
      GME Remit/Modules/RemittanceModules/TransactionHistoryModules/MessageCompose/User Interface/View/MessageComposeViewController.swift

18
GME Remit/Modules/RemittanceModules/TransactionHistoryModules/MessageCompose/User Interface/View/MessageComposeViewController.swift

@ -101,14 +101,18 @@ class MessageComposeViewController: UIViewController {
let controlNo = self.controlNO ?? ""
let transactionId = self.transactionId ?? ""
if let type = self.type {
switch type {
case .cancel:
self.presenter?.cancel(control: controlNo, transId: transactionId, subject: subject, body: body)
case .edit:
self.presenter?.edit(control: controlNo, transId: transactionId, subject: subject, body: body)
if body.isEmpty || body == "" || body == "Your request here" {
self.alert(message: "Remarks is required")
} else {
if let type = self.type {
switch type {
case .cancel:
self.presenter?.cancel(control: controlNo, transId: transactionId, subject: subject, body: body)
case .edit:
self.presenter?.edit(control: controlNo, transId: transactionId, subject: subject, body: body)
}
}
}
}
}
}

Loading…
Cancel
Save