Browse Source

#changes for txn report color code and payment option

Mobile-pdf
Leeza Baidar 10 months ago
parent
commit
2b67f85622
  1. 7
      Business/Mobile/MobileServices.cs
  2. 4
      Common/Model/RewardFee.cs
  3. 9
      Repository/Mobile/MobileServicesRepo.cs

7
Business/Mobile/MobileServices.cs

@ -3030,15 +3030,20 @@ namespace Business.Mobile
var jsonS = reader.ReadToEnd(); var jsonS = reader.ReadToEnd();
options = JsonConvert.DeserializeObject<List<Option>>(jsonS); options = JsonConvert.DeserializeObject<List<Option>>(jsonS);
} }
List<Option> matchingOptions = new List<Option>();
foreach (var paymentMethod in paymentMethods) foreach (var paymentMethod in paymentMethods)
{ {
var matchingOption = options.FirstOrDefault(option => option.Code == paymentMethod.Key); var matchingOption = options.FirstOrDefault(option => option.Code == paymentMethod.Key);
if (matchingOption != null) if (matchingOption != null)
{ {
matchingOption.Value = paymentMethod.Value; matchingOption.Value = paymentMethod.Value;
matchingOptions.Add(matchingOption);
} }
} }
return options;
return matchingOptions;
} }
public JsonRxResponse ValidateReferralCode(string referralCode) public JsonRxResponse ValidateReferralCode(string referralCode)
{ {

4
Common/Model/RewardFee.cs

@ -42,8 +42,4 @@ namespace Common.Model
public string CheckSuccessURL { get; set; } public string CheckSuccessURL { get; set; }
public string CheckFailURL { get; set; } public string CheckFailURL { get; set; }
} }
public string CheckSuccessURL { get; set; }
public string CheckFailURL { get; set; }
}
} }

9
Repository/Mobile/MobileServicesRepo.cs

@ -1710,15 +1710,14 @@ namespace Repository.Mobile
} }
else if (status.Equals("PAID")) else if (status.Equals("PAID"))
{ {
return "#008000";
return "#2ED636";
} }
else if (status.Equals("CANCELLED")) else if (status.Equals("CANCELLED"))
{ {
return "#FF0000";
return "#F60909";
} }
else else
return "#514e82"; return "#514e82";
} }
private string GetTextCode(string status) private string GetTextCode(string status)
@ -1733,11 +1732,11 @@ namespace Repository.Mobile
} }
else if (status.Equals("PAID")) else if (status.Equals("PAID"))
{ {
return "#262262";
return "#000000";
} }
else if (status.Equals("CANCELLED")) else if (status.Equals("CANCELLED"))
{ {
return "#262262";
return "#000000";
} }
else else
return "#FFFFFF"; return "#FFFFFF";

Loading…
Cancel
Save