public static string GetPriceList(this InsiderEntity i) { string overridePriceList = i.OverridePriceList(); if (overridePriceList != "") { return(overridePriceList); } string userPriceList = i.PriceList; string prefix = Functions.GetIntlPrefix(userPriceList); if (prefix == "SA") { userPriceList = userPriceList.Substring(3); prefix = ""; } string companyNo = i.GetCompanyNo(); if (i.IsConsultant() && (companyNo == Constants.COMPANY_NO.ASIA || companyNo == Constants.COMPANY_NO.MIDDLE_EAST)) { return(prefix + "EU"); } else if (i.MSRP == 1) { return(prefix + "EU"); } else if (i.GetLoginType() == Constants.LOGIN.EDUCATOR && i.ECC == "US" && i.PriceList == "EU") { return("GOVS"); } return(userPriceList); }
public static string GetBillToAccount(this InsiderEntity i) { return(i.GetCompanyNo() + "*" + i.BillingNo); }