Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 17th, 2018 75 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. // Darrick, this is a list of void reasons
  2. public static class VoidReasonCodes
  3. {
  4.     public const string AddressIssue = "AI";
  5.     public const string OutOfStock = "OS";
  6.     public const string PartReq = "PR";
  7.     public const string Other = "OT";
  8.     public const string CSIssue = "CS";
  9.     public const string NoReply = "NR";
  10.     public const string LostInTransit = "LT";
  11.     public const string DeliveryIssue = "DI";
  12.     public const string ReplacementRefused = "RR";
  13.     public const string ItemZoning = "IZ";
  14.     public const string PartPref = "PP";
  15.     public const string ItemIssue = "RI";
  16. }        
  17.  
  18.  
  19. // List of void reason notes
  20. public static class VoidNotes
  21. {
  22.     public static string VoidAddressIssue = "Void email sent because of an address issue";
  23.     public static string VoidOutOfStock = "Void email sent because the item was out of stock";
  24.     public static string VoidPartReq = "Void email sent because of participant cancellation request";
  25.     public static string VoidOther = "Void email sent because of miscellaneous/other reason";
  26.     public static string NoReply = "Void email sent because of no reply";
  27.     public static string LostInTransit = "Void email sent because it was lost in transit";
  28.     public static string DeliveryIssue = "Void email sent because there was a delivery issue";
  29.     public static string CSIssue = "Void email sent because there was a CS issue";
  30.     public static string ReplacementRefused = "Void email sent because the replacement was refused";
  31.     public static string ItemZoning = "Void email sent because there was an item zoning issue";
  32.     public static string PartPref = "Void email sent because of participant preference";
  33.     public static string ItemIssue = "Void email sent because there was an item issue";
  34. }
  35.  
  36.  
  37. // code to determine which note that should be displayed, for example if the void reason was "AI" the note posted will be: "Void email sent because of an address issue"
  38. switch (voidReasonCode)
  39. {
  40.     case Constants.VoidReasonCodes.AddressIssue:
  41.         note = Constants.VoidNotes.VoidAddressIssue;
  42.         break;
  43.     case Constants.VoidReasonCodes.OutOfStock:
  44.         note = Constants.VoidNotes.VoidOutOfStock;
  45.         break;
  46.     case Constants.VoidReasonCodes.PartReq:
  47.         note = Constants.VoidNotes.VoidPartReq;
  48.         break;
  49.     case Constants.VoidReasonCodes.Other:
  50.         note = Constants.VoidNotes.VoidOther;
  51.         break;
  52.     case Constants.VoidReasonCodes.CSIssue:
  53.         note = Constants.VoidNotes.CSIssue;
  54.         break;
  55.     case Constants.VoidReasonCodes.NoReply:
  56.         note = Constants.VoidNotes.NoReply;
  57.         break;
  58.     case Constants.VoidReasonCodes.LostInTransit:
  59.         note = Constants.VoidNotes.LostInTransit;
  60.         break;
  61.     case Constants.VoidReasonCodes.DeliveryIssue:
  62.         note = Constants.VoidNotes.DeliveryIssue;
  63.         break;
  64.     case Constants.VoidReasonCodes.ReplacementRefused:
  65.         note = Constants.VoidNotes.ReplacementRefused;
  66.         break;
  67.     case Constants.VoidReasonCodes.ItemZoning:
  68.         note = Constants.VoidNotes.ItemZoning;
  69.         break;
  70.     case Constants.VoidReasonCodes.PartPref:
  71.         note = Constants.VoidNotes.PartPref;
  72.         break;
  73.     case Constants.VoidReasonCodes.ItemIssue:
  74.         note = Constants.VoidNotes.ItemIssue;
  75.         break;
  76. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top