public static bool ApprovedFromEverybody(this BO.Agreement @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("Agreement", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "ApprovedFromEverybody")) {
         var _var0 = (@this?.AgreementStatus?.Any((b) => b.Status == "Approved by Investor") ?? false); var _var1 = (@this?.AgreementStatus?.Any((c) => c.Status == "Approved by Supplier") ?? false); if ((@this?.AgreementStatus?.Any((a) => a.Status == "Approved by Administrator" && _var0 && _var1) ?? false))
         {
             return(true);
         }
         return(false);
     }
 }
 public static string Get_CurrentAgreementStatus(this BO.Agreement @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("Agreement", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "Get_CurrentAgreementStatus")) {
         if (@this?.AgreementStatus != null)
         {
             System.Collections.Generic.List <DSS5_SupplyChainFinancialsOptimisation.BO.AgreementStatus> firstAgreementStatus = @this?.AgreementStatus?.OrderByDescending((a) => a.DateOccured).ToList();
             if (((firstAgreementStatus?.Count() ?? 0) > 0))
             {
                 return(firstAgreementStatus?.FirstOrDefault()?.Status ?? "");
             }
             else
             {
                 return("");
             }
         }
         else
         {
             return("");
         }
     }
 }