public static DashboardTodos ForPerson(Person person, Organization organization) { DashboardTodos result = new DashboardTodos(); result.AddExpenseClaimAttestations(person, organization); result.AddCashAdvanceAttestations(person, organization); //result.AddSalaryAttestations(person, organization); TODO! result.AddReceiptValidations(person, organization); result.AddPayouts(person, organization); // TODO: Add any hooks return(result); }
public static DashboardTodos ForAuthority(Authority authority) { DashboardTodos result = new DashboardTodos(); if (authority.IsIdentified) // exclude OpenLedgers and other anon identities { result.AddBitcoinChecks(authority); result.AddExpenseClaimAttestations(authority); result.AddCashAdvanceAttestations(authority); //result.AddSalaryAttestations(person, organization); TODO! result.AddReceiptValidations(authority); result.AddPayouts(authority); // TODO: Add any hooks } return(result); }