Ejemplo n.º 1
0
 public static bool AreExpendituresValid(this ProjectUpdateBatch projectUpdateBatch)
 {
     if (MultiTenantHelpers.GetTenantAttributeFromCache().BudgetType == BudgetType.AnnualBudgetByCostType)
     {
         return(projectUpdateBatch.ValidateExpendituresByCostType().Count == 0);
     }
     return(projectUpdateBatch.ValidateExpenditures().Count == 0);
 }
Ejemplo n.º 2
0
 public static List <string> ValidateExpendituresAndForceValidation(this ProjectUpdateBatch projectUpdateBatch)
 {
     if (MultiTenantHelpers.GetTenantAttributeFromCache().BudgetType == BudgetType.AnnualBudgetByCostType)
     {
         return(projectUpdateBatch.ValidateExpendituresByCostType());
     }
     return(projectUpdateBatch.ValidateExpenditures());
 }