private void PopulateCashAdvances() { CashAdvances advances = CashAdvances.ForOrganization(this.CurrentOrganization).WhereUnattested; foreach (CashAdvance advance in advances) { if (_attestationRights.ContainsKey(advance.BudgetId) || advance.Budget.OwnerPersonId == Person.NobodyId) { _items.Add(new AttestableItem("A" + advance.Identity.ToString(CultureInfo.InvariantCulture), advance.Person.Name, advance.AmountCents, advance.Budget, advance.Description, "Financial_CashAdvance", false, advance)); } } }
private void AddAttestableItem(AttestableItems items, Parley parley) { items.Add(new AttestableItem("P" + parley.Identity.ToString(), parley.Person.Canonical, parley.GuaranteeDecimal, parley.Budget, String.Format("{2}: Budget of {0:N0} with guarantee of {1:N0}", parley.BudgetDecimal, parley.GuaranteeDecimal, parley.Name), "Conference #" + parley.Identity, parley)); }
private void AddAttestableItem(AttestableItems items, InboundInvoice invoice) { items.Add(new AttestableItem("I" + invoice.Identity.ToString(), invoice.Supplier, (decimal)invoice.Amount, invoice.Budget, "See scans:", "Inbound Invoice #" + invoice.Identity, invoice)); }
private void AddAttestableItem(AttestableItems items, Salary salary) { items.Add(new AttestableItem("S" + salary.Identity.ToString(), salary.PayrollItem.PersonCanonical, (decimal)(salary.CostTotalCents / 100.0m), salary.PayrollItem.Budget, String.Format("Base pay of {0:N0} plus mods & taxes", salary.BaseSalaryDecimal), "Salary #" + salary.Identity, salary)); }
private void AddAttestableItem(AttestableItems items, ExpenseClaim claim) { items.Add(new AttestableItem("E" + claim.Identity.ToString(), claim.ClaimerCanonical, (decimal)claim.Amount, claim.Budget, claim.Description, "Expense Claim #" + claim.Identity, claim)); }