public static decimal?Get_FundedAmount(this BO.Transaction @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("Transaction", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "Get_FundedAmount")) {
         decimal?totalInv = 0;
         decimal?total    = 0;
         totalInv = (@this?.Invoices?.Sum((a) => a.TotalPrice) ?? 0); total = (totalInv.GetValueOrDefault(0) * (@this?.CommercialAgreement?.Agreement?.FundedRate ?? 0)) / 100; return((@this?.Invoices?.Count() ?? 0) > 0 ? total : 0);
     }
 }
 public static void CalculateDataAvailability(this BO.Transaction @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("Transaction", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "CalculateDataAvailability")) {
         if ((@this?.Orders?.Count() ?? 0) > 0)
         {
             @this.Supplier.DataAvailability.Orders = true;
         }
     }
 }
 public static decimal?Get_TransactionValue(this BO.Transaction @this)
 {
     using (new zAppDev.DotNet.Framework.Profiling.Profiler("Transaction", zAppDev.DotNet.Framework.Profiling.AppDevSymbolType.ClassOperation, "Get_TransactionValue")) {
         return((@this?.Invoices?.Count() ?? 0) > 0 ? (@this?.Invoices?.Sum((a) => a.TotalPrice) ?? 0) : 0);
     }
 }