Browse Source

#changes for txn report color code and payment option

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

9
Business/Mobile/MobileServices.cs

@ -2108,7 +2108,7 @@ namespace Business.Mobile
{
ProviderId = "onewaysms",
MobileNumber = mobileNo,
SMSBody = s.ToString(),
SMSBody = s.ToString(),
ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40),
RequestedBy = pwdReset.Username,
UserName = pwdReset.Username,
@ -3030,15 +3030,20 @@ namespace Business.Mobile
var jsonS = reader.ReadToEnd();
options = JsonConvert.DeserializeObject<List<Option>>(jsonS);
}
List<Option> matchingOptions = new List<Option>();
foreach (var paymentMethod in paymentMethods)
{
var matchingOption = options.FirstOrDefault(option => option.Code == paymentMethod.Key);
if (matchingOption != null)
{
matchingOption.Value = paymentMethod.Value;
matchingOptions.Add(matchingOption);
}
}
return options;
return matchingOptions;
}
public JsonRxResponse ValidateReferralCode(string referralCode)
{

6
Common/Model/RewardFee.cs

@ -41,9 +41,5 @@ namespace Common.Model
public string RedirectURL { get; set; }
public string CheckSuccessURL { 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"))
{
return "#008000";
return "#2ED636";
}
else if (status.Equals("CANCELLED"))
{
return "#FF0000";
return "#F60909";
}
else
return "#514e82";
}
private string GetTextCode(string status)
@ -1733,11 +1732,11 @@ namespace Repository.Mobile
}
else if (status.Equals("PAID"))
{
return "#262262";
return "#000000";
}
else if (status.Equals("CANCELLED"))
{
return "#262262";
return "#000000";
}
else
return "#FFFFFF";

Loading…
Cancel
Save