Browse Source

receipt view made consistent

pull/1/head
gme_2 6 years ago
parent
commit
6495bed15a
  1. 40
      GMERemittance/Model/SendMoneyReciept.swift
  2. 190
      GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceipt.storyboard
  3. 47
      GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift

40
GMERemittance/Model/SendMoneyReciept.swift

@ -11,23 +11,16 @@ import ObjectMapper
class SendMoneyReciept: Mappable {
var payMode: String?
var paymentMode: String?
var controNo: String?
var trnsDate: String?
var trnId: String?
var rFirstName: String?
var rMiddleName: String?
var rLastName: String?
var rAddress: String?
var rCountryName: String?
var rContactNo: String?
var rEmail: String?
var relationWithSender: String?
var rState: String?
var payoutCountry: String?
var transactionDate: String?
var recieverAmount: String?
var agentBank: String?
var paymentMethod: String?
var accountNo: String?
@ -36,46 +29,39 @@ class SendMoneyReciept: Mappable {
var exRate: String?
var serviceCharge: String?
var payoutAmount: String?
var payoutMode: String?
var transactionId: String?
init() {
}
required init?(map: Map) {
}
func mapping(map: Map) {
payMode <- map["payMode"]
paymentMode <- map["PaymentMode"]
paymentMethod <- map["payOutMode"]
controNo <- map["controlNo"]
trnsDate <- map["trnsDate"]
trnId <- map["trnId"]
transactionId <- map["trnId"]
rFirstName <- map["rFirstName"]
rMiddleName <- map["rMiddleName"]
rLastName <- map["rLastName"]
rAddress <- map["rAddress"]
rCountryName <- map["rCountryName"]
rContactNo <- map["rContactNo"]
rEmail <- map["rEmail"]
relationWithSender <- map["relWithSender"]
rState <- map["rState"]
payoutCountry <- map["payoutCountry"]
transactionDate <- map["trnDate"]
recieverAmount <- map["pAmount"]
payoutCountry <- map["rCountryName"]
transactionDate <- map["trnsDate"]
agentBank <- map["pAgentBank"]
paymentMethod <- map["paymentMethod"]
accountNo <- map["accountNo"]
payoutBankBranch <- map["payoutBankBranch"]
collAmount <- map["collAmount"]
exRate <- map["exRate"]
serviceCharge <- map["serviceCharge"]
payoutAmount <- map["payOutAmount"]
payoutMode <- map["payOutMode"]
}
init() {
}
required init?(map: Map) {
}
}

190
GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceipt.storyboard

@ -237,20 +237,20 @@ Share with concerned party only</string>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="1.5" translatesAutoresizingMaskIntoConstraints="NO" id="N4e-L0-lEA">
<rect key="frame" x="0.0" y="0.0" width="355" height="396"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Hzj-s4-Pz9">
<rect key="frame" x="0.0" y="0.0" width="355" height="34.5"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P8E-dB-3bF">
<rect key="frame" x="0.0" y="0.0" width="355" height="38.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="7XD-gU-m2o">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="TDp-3K-1pj">
<rect key="frame" x="13" y="0.0" width="329" height="38.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Receiver" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pTI-kV-y2i" userLabel="Reciever">
<rect key="frame" x="0.0" y="0.0" width="55.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="253" verticalHuggingPriority="251" text="Receiver" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hpj-CZ-7qv" userLabel="Email">
<rect key="frame" x="0.0" y="0.0" width="55.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E9N-rz-5eO">
<rect key="frame" x="57.5" y="0.0" width="271.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dxd-Uq-v7o">
<rect key="frame" x="57.5" y="0.0" width="271.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -260,26 +260,26 @@ Share with concerned party only</string>
</subviews>
<color key="backgroundColor" white="1" alpha="0.84999999999999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="7XD-gU-m2o" secondAttribute="bottom" id="Lb0-Gd-6Yb"/>
<constraint firstItem="7XD-gU-m2o" firstAttribute="leading" secondItem="Hzj-s4-Pz9" secondAttribute="leading" constant="13" id="mSy-4h-Yal"/>
<constraint firstItem="7XD-gU-m2o" firstAttribute="top" secondItem="Hzj-s4-Pz9" secondAttribute="top" id="mwl-Ia-LeZ"/>
<constraint firstAttribute="trailing" secondItem="7XD-gU-m2o" secondAttribute="trailing" constant="13" id="wDy-8A-vai"/>
<constraint firstAttribute="trailing" secondItem="TDp-3K-1pj" secondAttribute="trailing" constant="13" id="IIJ-4e-pm2"/>
<constraint firstItem="TDp-3K-1pj" firstAttribute="leading" secondItem="P8E-dB-3bF" secondAttribute="leading" constant="13" id="bVb-nX-ZzC"/>
<constraint firstItem="TDp-3K-1pj" firstAttribute="top" secondItem="P8E-dB-3bF" secondAttribute="top" id="iF8-kx-3UN"/>
<constraint firstAttribute="bottom" secondItem="TDp-3K-1pj" secondAttribute="bottom" id="ph0-Ds-r7T"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ybw-0P-ctF">
<rect key="frame" x="0.0" y="36" width="355" height="35"/>
<rect key="frame" x="0.0" y="40" width="355" height="38"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="2AA-tv-LcD">
<rect key="frame" x="13" y="0.0" width="329" height="35"/>
<rect key="frame" x="13" y="0.0" width="329" height="38"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Relation" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aV9-MU-U9F" userLabel="Relation">
<rect key="frame" x="0.0" y="0.0" width="53" height="35"/>
<rect key="frame" x="0.0" y="0.0" width="53" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="joO-Vx-01A">
<rect key="frame" x="55" y="0.0" width="274" height="35"/>
<rect key="frame" x="55" y="0.0" width="274" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -295,20 +295,20 @@ Share with concerned party only</string>
<constraint firstItem="2AA-tv-LcD" firstAttribute="leading" secondItem="ybw-0P-ctF" secondAttribute="leading" constant="13" id="rkx-Nc-zQN"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="v7t-Na-CRJ">
<rect key="frame" x="0.0" y="72.5" width="355" height="34.5"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="irh-VO-Gyg" userLabel="DeliveryAddress">
<rect key="frame" x="0.0" y="79.5" width="355" height="38.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="jxz-4v-H4R">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Lxb-PQ-Hhf">
<rect key="frame" x="13" y="0.0" width="329" height="38.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="300" verticalHuggingPriority="251" horizontalCompressionResistancePriority="900" text="Address" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="016-VE-jj0" userLabel="Address">
<rect key="frame" x="0.0" y="0.0" width="52" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Address" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YY3-KP-E09" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="53.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fv1-0w-SUk">
<rect key="frame" x="54" y="0.0" width="275" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Gge-7S-SaJ">
<rect key="frame" x="55.5" y="0.0" width="273.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -318,26 +318,26 @@ Share with concerned party only</string>
</subviews>
<color key="backgroundColor" white="1" alpha="0.84999999999999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="jxz-4v-H4R" firstAttribute="top" secondItem="v7t-Na-CRJ" secondAttribute="top" id="4of-5X-NQ1"/>
<constraint firstItem="jxz-4v-H4R" firstAttribute="leading" secondItem="v7t-Na-CRJ" secondAttribute="leading" constant="13" id="axs-Py-KA9"/>
<constraint firstAttribute="bottom" secondItem="jxz-4v-H4R" secondAttribute="bottom" id="dzM-6K-0Dj"/>
<constraint firstAttribute="trailing" secondItem="jxz-4v-H4R" secondAttribute="trailing" constant="13" id="oyf-ZD-OEl"/>
<constraint firstItem="Lxb-PQ-Hhf" firstAttribute="top" secondItem="irh-VO-Gyg" secondAttribute="top" id="27F-gy-RSF"/>
<constraint firstItem="Lxb-PQ-Hhf" firstAttribute="leading" secondItem="irh-VO-Gyg" secondAttribute="leading" constant="13" id="lKE-Ye-txe"/>
<constraint firstAttribute="trailing" secondItem="Lxb-PQ-Hhf" secondAttribute="trailing" constant="13" id="tku-de-vn4"/>
<constraint firstAttribute="bottom" secondItem="Lxb-PQ-Hhf" secondAttribute="bottom" id="zSy-6Y-HJk"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W4g-Xv-Fmk">
<rect key="frame" x="0.0" y="108.5" width="355" height="34.5"/>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="v7t-Na-CRJ">
<rect key="frame" x="0.0" y="118.5" width="355" height="0.0"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Wyj-Nd-gbc">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="jxz-4v-H4R">
<rect key="frame" x="13" y="0.0" width="329" height="0.0"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mobile No." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bTl-Ab-V1o" userLabel="Mobile">
<rect key="frame" x="0.0" y="0.0" width="67.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="300" verticalHuggingPriority="251" horizontalCompressionResistancePriority="900" text="Address" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="016-VE-jj0" userLabel="Address">
<rect key="frame" x="0.0" y="0.0" width="52" height="0.0"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SJg-la-JAc">
<rect key="frame" x="69.5" y="0.0" width="259.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fv1-0w-SUk">
<rect key="frame" x="54" y="0.0" width="275" height="0.0"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -347,26 +347,26 @@ Share with concerned party only</string>
</subviews>
<color key="backgroundColor" white="1" alpha="0.84999999999999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Wyj-Nd-gbc" firstAttribute="leading" secondItem="W4g-Xv-Fmk" secondAttribute="leading" constant="13" id="H1q-js-f5n"/>
<constraint firstAttribute="trailing" secondItem="Wyj-Nd-gbc" secondAttribute="trailing" constant="13" id="a7u-SP-wdj"/>
<constraint firstItem="Wyj-Nd-gbc" firstAttribute="top" secondItem="W4g-Xv-Fmk" secondAttribute="top" id="buF-xp-JDU"/>
<constraint firstAttribute="bottom" secondItem="Wyj-Nd-gbc" secondAttribute="bottom" id="c2j-e4-q0E"/>
<constraint firstItem="jxz-4v-H4R" firstAttribute="top" secondItem="v7t-Na-CRJ" secondAttribute="top" id="4of-5X-NQ1"/>
<constraint firstItem="jxz-4v-H4R" firstAttribute="leading" secondItem="v7t-Na-CRJ" secondAttribute="leading" constant="13" id="axs-Py-KA9"/>
<constraint firstAttribute="bottom" secondItem="jxz-4v-H4R" secondAttribute="bottom" id="dzM-6K-0Dj"/>
<constraint firstAttribute="trailing" secondItem="jxz-4v-H4R" secondAttribute="trailing" constant="13" id="oyf-ZD-OEl"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="P8E-dB-3bF">
<rect key="frame" x="0.0" y="144.5" width="355" height="34.5"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W4g-Xv-Fmk">
<rect key="frame" x="0.0" y="119.5" width="355" height="38"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="TDp-3K-1pj">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Wyj-Nd-gbc">
<rect key="frame" x="13" y="0.0" width="329" height="38"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Email" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hpj-CZ-7qv" userLabel="Email">
<rect key="frame" x="0.0" y="0.0" width="35.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Mobile No." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bTl-Ab-V1o" userLabel="Mobile">
<rect key="frame" x="0.0" y="0.0" width="67.5" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dxd-Uq-v7o">
<rect key="frame" x="37.5" y="0.0" width="291.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SJg-la-JAc">
<rect key="frame" x="69.5" y="0.0" width="259.5" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -376,26 +376,26 @@ Share with concerned party only</string>
</subviews>
<color key="backgroundColor" white="1" alpha="0.84999999999999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="TDp-3K-1pj" secondAttribute="trailing" constant="13" id="IIJ-4e-pm2"/>
<constraint firstItem="TDp-3K-1pj" firstAttribute="leading" secondItem="P8E-dB-3bF" secondAttribute="leading" constant="13" id="bVb-nX-ZzC"/>
<constraint firstItem="TDp-3K-1pj" firstAttribute="top" secondItem="P8E-dB-3bF" secondAttribute="top" id="iF8-kx-3UN"/>
<constraint firstAttribute="bottom" secondItem="TDp-3K-1pj" secondAttribute="bottom" id="ph0-Ds-r7T"/>
<constraint firstItem="Wyj-Nd-gbc" firstAttribute="leading" secondItem="W4g-Xv-Fmk" secondAttribute="leading" constant="13" id="H1q-js-f5n"/>
<constraint firstAttribute="trailing" secondItem="Wyj-Nd-gbc" secondAttribute="trailing" constant="13" id="a7u-SP-wdj"/>
<constraint firstItem="Wyj-Nd-gbc" firstAttribute="top" secondItem="W4g-Xv-Fmk" secondAttribute="top" id="buF-xp-JDU"/>
<constraint firstAttribute="bottom" secondItem="Wyj-Nd-gbc" secondAttribute="bottom" id="c2j-e4-q0E"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wY4-w4-PU9">
<rect key="frame" x="0.0" y="180.5" width="355" height="35"/>
<rect key="frame" x="0.0" y="159" width="355" height="38.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Kml-N2-XoF">
<rect key="frame" x="13" y="0.0" width="329" height="35"/>
<rect key="frame" x="13" y="0.0" width="329" height="38.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="300" verticalHuggingPriority="251" horizontalCompressionResistancePriority="900" text="Payout Agent/Bank" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1bL-P8-CBf" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="122" height="35"/>
<rect key="frame" x="0.0" y="0.0" width="122" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="98o-ui-Lmx">
<rect key="frame" x="124" y="0.0" width="205" height="35"/>
<rect key="frame" x="124" y="0.0" width="205" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -412,19 +412,19 @@ Share with concerned party only</string>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FWa-U9-qgm">
<rect key="frame" x="0.0" y="217" width="355" height="34.5"/>
<rect key="frame" x="0.0" y="199" width="355" height="38"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="YS3-bl-jeT">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<rect key="frame" x="13" y="0.0" width="329" height="38"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="300" verticalHuggingPriority="251" horizontalCompressionResistancePriority="900" text="Branch" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tPz-r0-qXQ" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="46" height="34.5"/>
<rect key="frame" x="0.0" y="0.0" width="46" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.34117999999999998" green="0.27843000000000001" blue="0.31764999999999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gWt-Rx-LIV">
<rect key="frame" x="48" y="0.0" width="281" height="34.5"/>
<rect key="frame" x="48" y="0.0" width="281" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -441,19 +441,19 @@ Share with concerned party only</string>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Z4W-0Y-NE6">
<rect key="frame" x="0.0" y="253" width="355" height="34.5"/>
<rect key="frame" x="0.0" y="238.5" width="355" height="38.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="MsX-KY-7UY">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<rect key="frame" x="13" y="0.0" width="329" height="38.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Account Number" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AIR-Co-29n" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="107.5" height="34.5"/>
<rect key="frame" x="0.0" y="0.0" width="107.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mle-zI-ZDV">
<rect key="frame" x="109.5" y="0.0" width="219.5" height="34.5"/>
<rect key="frame" x="109.5" y="0.0" width="219.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -469,20 +469,20 @@ Share with concerned party only</string>
<constraint firstAttribute="trailing" secondItem="MsX-KY-7UY" secondAttribute="trailing" constant="13" id="kV5-I7-RDh"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="irh-VO-Gyg" userLabel="DeliveryAddress">
<rect key="frame" x="0.0" y="289" width="355" height="34.5"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="I1w-qc-GAw">
<rect key="frame" x="0.0" y="278.5" width="355" height="38"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="Lxb-PQ-Hhf">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="p5h-cX-mhA">
<rect key="frame" x="13" y="0.0" width="329" height="38"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Delivery Address" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YY3-KP-E09" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="107.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Service Fee" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="52t-h8-txs" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="73" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Gge-7S-SaJ">
<rect key="frame" x="109.5" y="0.0" width="219.5" height="34.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5Mm-Rr-tjC">
<rect key="frame" x="75" y="0.0" width="254" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -492,26 +492,26 @@ Share with concerned party only</string>
</subviews>
<color key="backgroundColor" white="1" alpha="0.84999999999999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="Lxb-PQ-Hhf" firstAttribute="top" secondItem="irh-VO-Gyg" secondAttribute="top" id="27F-gy-RSF"/>
<constraint firstItem="Lxb-PQ-Hhf" firstAttribute="leading" secondItem="irh-VO-Gyg" secondAttribute="leading" constant="13" id="lKE-Ye-txe"/>
<constraint firstAttribute="trailing" secondItem="Lxb-PQ-Hhf" secondAttribute="trailing" constant="13" id="tku-de-vn4"/>
<constraint firstAttribute="bottom" secondItem="Lxb-PQ-Hhf" secondAttribute="bottom" id="zSy-6Y-HJk"/>
<constraint firstItem="p5h-cX-mhA" firstAttribute="top" secondItem="I1w-qc-GAw" secondAttribute="top" id="CNE-u6-bbd"/>
<constraint firstItem="p5h-cX-mhA" firstAttribute="leading" secondItem="I1w-qc-GAw" secondAttribute="leading" constant="13" id="XrQ-Kq-o0u"/>
<constraint firstAttribute="trailing" secondItem="p5h-cX-mhA" secondAttribute="trailing" constant="13" id="ZZR-64-qWc"/>
<constraint firstAttribute="bottom" secondItem="p5h-cX-mhA" secondAttribute="bottom" id="bCl-nK-sKK"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="I1w-qc-GAw">
<rect key="frame" x="0.0" y="325" width="355" height="35"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Hzj-s4-Pz9">
<rect key="frame" x="0.0" y="318" width="355" height="38.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="p5h-cX-mhA">
<rect key="frame" x="13" y="0.0" width="329" height="35"/>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="7XD-gU-m2o">
<rect key="frame" x="13" y="0.0" width="329" height="38.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Service Fee" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="52t-h8-txs" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="73" height="35"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Ex Rate" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pTI-kV-y2i" userLabel="Reciever">
<rect key="frame" x="0.0" y="0.0" width="47.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5Mm-Rr-tjC">
<rect key="frame" x="75" y="0.0" width="254" height="35"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="E9N-rz-5eO">
<rect key="frame" x="49.5" y="0.0" width="279.5" height="38.5"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -521,26 +521,26 @@ Share with concerned party only</string>
</subviews>
<color key="backgroundColor" white="1" alpha="0.84999999999999998" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="p5h-cX-mhA" firstAttribute="top" secondItem="I1w-qc-GAw" secondAttribute="top" id="CNE-u6-bbd"/>
<constraint firstItem="p5h-cX-mhA" firstAttribute="leading" secondItem="I1w-qc-GAw" secondAttribute="leading" constant="13" id="XrQ-Kq-o0u"/>
<constraint firstAttribute="trailing" secondItem="p5h-cX-mhA" secondAttribute="trailing" constant="13" id="ZZR-64-qWc"/>
<constraint firstAttribute="bottom" secondItem="p5h-cX-mhA" secondAttribute="bottom" id="bCl-nK-sKK"/>
<constraint firstAttribute="bottom" secondItem="7XD-gU-m2o" secondAttribute="bottom" id="Lb0-Gd-6Yb"/>
<constraint firstItem="7XD-gU-m2o" firstAttribute="leading" secondItem="Hzj-s4-Pz9" secondAttribute="leading" constant="13" id="mSy-4h-Yal"/>
<constraint firstItem="7XD-gU-m2o" firstAttribute="top" secondItem="Hzj-s4-Pz9" secondAttribute="top" id="mwl-Ia-LeZ"/>
<constraint firstAttribute="trailing" secondItem="7XD-gU-m2o" secondAttribute="trailing" constant="13" id="wDy-8A-vai"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fMD-Tq-Dwt">
<rect key="frame" x="0.0" y="361.5" width="355" height="34.5"/>
<rect key="frame" x="0.0" y="358" width="355" height="38"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" distribution="fillProportionally" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="yct-cx-mP3">
<rect key="frame" x="13" y="0.0" width="329" height="34.5"/>
<rect key="frame" x="13" y="0.0" width="329" height="38"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Total Amount" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rr9-dg-u1G" userLabel="Agent">
<rect key="frame" x="0.0" y="0.0" width="84.5" height="34.5"/>
<rect key="frame" x="0.0" y="0.0" width="84.5" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Regular" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="63I-2O-WVX">
<rect key="frame" x="86.5" y="0.0" width="242.5" height="34.5"/>
<rect key="frame" x="86.5" y="0.0" width="242.5" height="38"/>
<fontDescription key="fontDescription" name="SanFranciscoText-Bold" family="San Francisco Text" pointSize="14"/>
<color key="textColor" red="0.2901960784" green="0.2901960784" blue="0.2901960784" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@ -684,15 +684,17 @@ Share with concerned party only</string>
<size key="freeformSize" width="375" height="1000"/>
<connections>
<outlet property="accountNoLabel" destination="Mle-zI-ZDV" id="Q1w-Ff-TGE"/>
<outlet property="accountNoView" destination="Z4W-0Y-NE6" id="du4-ij-gJO"/>
<outlet property="addressLabel" destination="Gge-7S-SaJ" id="Sdx-aU-zgy"/>
<outlet property="agentBankLabel" destination="98o-ui-Lmx" id="o9N-GP-4tV"/>
<outlet property="branchLabel" destination="gWt-Rx-LIV" id="vYW-fW-Zia"/>
<outlet property="branchView" destination="FWa-U9-qgm" id="wGU-O8-UrG"/>
<outlet property="doneButton" destination="vlt-YJ-pwY" id="lW3-BS-VYD"/>
<outlet property="emailLabel" destination="dxd-Uq-v7o" id="TKs-Xd-Uvt"/>
<outlet property="exchangeRateLabel" destination="E9N-rz-5eO" id="fc3-dr-qYN"/>
<outlet property="fullnameLabel" destination="KlR-r5-hsc" id="xd9-yM-Jb0"/>
<outlet property="gmeControlNumberLabel" destination="97m-vq-ytA" id="hB4-OR-PHc"/>
<outlet property="mobileNoLabel" destination="SJg-la-JAc" id="XIo-nM-Lye"/>
<outlet property="recieverNoLabel" destination="E9N-rz-5eO" id="FOo-ty-kxC"/>
<outlet property="recieverNameLabelLabel" destination="dxd-Uq-v7o" id="eGF-Lp-3mc"/>
<outlet property="relationLabel" destination="joO-Vx-01A" id="tMf-sF-PE6"/>
<outlet property="requestToCancelButton" destination="CVW-u5-4q0" id="Yhh-lV-dcm"/>
<outlet property="requestToChangeButton" destination="APG-WQ-vh6" id="Hmi-rR-Xbs"/>

47
GMERemittance/Module/SendMoney/SendMoneyReceipt/User Interface/View/SendMoneyReceiptViewController.swift

@ -20,11 +20,11 @@ class SendMoneyReceiptViewController: UIViewController {
@IBOutlet weak var fullnameLabel: UILabel!
@IBOutlet weak var transactionDateLabel: UILabel!
@IBOutlet weak var transactionNoLabel: UILabel!
@IBOutlet weak var recieverNoLabel: UILabel!
@IBOutlet weak var exchangeRateLabel: UILabel!
@IBOutlet weak var relationLabel: UILabel!
@IBOutlet weak var addressLabel: UILabel!
@IBOutlet weak var mobileNoLabel: UILabel!
@IBOutlet weak var emailLabel: UILabel!
@IBOutlet weak var recieverNameLabelLabel: UILabel!
@IBOutlet weak var agentBankLabel: UILabel!
@IBOutlet weak var branchLabel: UILabel!
@IBOutlet weak var accountNoLabel: UILabel!
@ -37,6 +37,10 @@ class SendMoneyReceiptViewController: UIViewController {
@IBOutlet weak var requestToCancelButton: UIButton!
@IBOutlet weak var transactionReportButtonStackView: UIStackView!
@IBOutlet weak var accountNoView: UIView!
@IBOutlet weak var branchView: UIView!
// MARK: Properties
var presenter: SendMoneyReceiptModuleInterface?
@ -119,49 +123,32 @@ class SendMoneyReceiptViewController: UIViewController {
self.presenter?.dismiss()
}
private func createMockModel() -> SendMoneyReciept {
let recipt = SendMoneyReciept()
reciept?.payMode = "pay mode"
reciept?.paymentMode = "payment Mode"
reciept?.controNo = "1234903823783"
reciept?.trnsDate = "02/34/7777"
reciept?.trnId = "id transaction 23422"
recipt.rFirstName = "shishir"
recipt.rMiddleName = "and"
reciept?.rLastName = "sapkota"
reciept?.rAddress = "Mahalaxmisthan"
recipt.rCountryName = "Nepal"
recipt.rContactNo = "9849192759"
recipt.rEmail = "sis.ccr@gmail.com"
recipt.relationWithSender = "Brother"
recipt.rState = "12"
recipt.payoutCountry = "Korea"
recipt.collAmount = "123456"
recipt.exRate = "0.009876776"
recipt.serviceCharge = "5000"
recipt.payoutAmount = "280000"
recipt.paymentMode = "Cash deleverys"
return recipt
}
private func showRecipt() {
let firstName = self.reciept?.rFirstName ?? ""
let lastName = self.reciept?.rLastName ?? ""
let middleName = self.reciept?.rMiddleName ?? ""
self.recieverNameLabelLabel.text = self.reciept?.rFirstName
let fullName = firstName + " " + middleName + " " + lastName
self.fullnameLabel.text = fullName
self.transactionDateLabel.text = reciept?.transactionDate
self.transactionNoLabel.text = self.reciept?.transactionId
self.recieverNoLabel.text = "reciever no label"
self.relationLabel.text = self.reciept?.relationWithSender
self.addressLabel.text = self.reciept?.rAddress
self.mobileNoLabel.text = self.reciept?.rContactNo
self.emailLabel.text = self.reciept?.rEmail
self.agentBankLabel.text = self.reciept?.agentBank
self.branchLabel.text = self.reciept?.payoutBankBranch
let branch = self.reciept?.payoutBankBranch ?? ""
self.branchLabel.text = branch
self.branchView.isHidden = branch == ""
let accountNo = self.reciept?.accountNo ?? ""
self.accountNoView.isHidden = accountNo == ""
self.accountNoLabel.text = self.reciept?.accountNo
self.transferFeeLabel.text = self.reciept?.serviceCharge
self.totalAmountLabel.text = self.reciept?.recieverAmount
self.exchangeRateLabel.text = self.reciept?.exRate
self.totalAmountLabel.text = self.reciept?.payoutAmount
let controlNo = self.reciept?.controNo ?? ""
self.gmeControlNumberLabel.text = "GME Control No: " + controlNo
let totalAmount = self.reciept?.payoutAmount ?? ""

Loading…
Cancel
Save