Browse Source

validation error changed

pull/1/head
gme_2 6 years ago
parent
commit
8de54f0490
  1. 2
      GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift
  2. 2
      GMERemittance/Module/New Group/kycForm1/User Interface/View/kycForm1ViewController.swift
  3. 4
      GMERemittance/Module/TransactionHistory/User Interface/Presenter/TransactionHistoryPresenter.swift
  4. 2
      GMERemittance/Module/TransactionHistory/User Interface/View/Cell/TransactionHistoryTableViewCell.swift

2
GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift

@ -46,7 +46,7 @@ class KycInteractor {
formDick.forEach({
if ($0.value ?? "").isEmpty {
sucks = false // isValid = false
errorsDick[$0.key] = "\($0.key) filed is required"
errorsDick[$0.key] = "\($0.key) feild is required"
}
})

2
GMERemittance/Module/New Group/kycForm1/User Interface/View/kycForm1ViewController.swift

@ -444,7 +444,7 @@ extension KycForm1ViewController {
let model = SendMoneyCountryViewModel()
model.id = $0.id
model.name = $0.text
model.code = $0.code
// model.code = $0.code
return model
})
viewcontroller.data = data

4
GMERemittance/Module/TransactionHistory/User Interface/Presenter/TransactionHistoryPresenter.swift

@ -44,11 +44,11 @@ extension TransactionHistoryPresenter: TransactionHistoryModuleInterface {
self.filteredModels = models
case .paid:
self.filteredModels = models.filter({
($0.payStatus ?? "" ) == type.rawValue
($0.payStatus ?? "" ) == type.rawValue.lowercased()
})
case .received:
self.filteredModels = models.filter({
($0.payStatus ?? "" ) != TransactionModelType.paid.rawValue
($0.payStatus ?? "" ) != TransactionModelType.paid.rawValue.lowercased()
})
}
}

2
GMERemittance/Module/TransactionHistory/User Interface/View/Cell/TransactionHistoryTableViewCell.swift

@ -36,7 +36,7 @@ class TransactionHistoryTableViewCell: UITableViewCell {
self.paymentMethodLabel.text = model?.payOutMode
self.nameLabel.text = model?.user
let paystatus = model?.payStatus ?? ""
self.transactionNumberLabel.text = model?.payStatus // show pay status, paid or unpaid
self.transactionNumberLabel.text = paystatus.uppercased() // show pay status, paid or unpaid
self.transactionNumberLabel.textColor = .white
self.transactionNumberLabel.layer.cornerRadius = 5
self.controlNumberLabel.text = self.model?.controlNumber

Loading…
Cancel
Save