static internal void WriteStoredBalance(StoredBalance o) { var dataOperation = DataOperation.Parse("apd_cof_saldos", o.Id, o.StandardAccountId, o.LedgerAccountId, o.Currency.Id, o.Sector.IsEmptyInstance ? 0 : o.Sector.Id, o.SubsidiaryAccountId, o.StoredBalanceSet.BalancesDate, o.Balance, o.StoredBalanceSet.Id); DataWriter.Execute(dataOperation); }
static private StoredBalanceDto MapBalance(StoredBalance balance) { return(new StoredBalanceDto { StandardAccountId = balance.StandardAccountId, Ledger = balance.Ledger.MapToNamedEntity(), LedgerAccountId = balance.LedgerAccountId, Currency = balance.Currency.MapToNamedEntity(), SectorCode = balance.Sector.Code, SubsidiaryAccountId = balance.SubsidiaryAccountId, AccountName = balance.AccountName, AccountNumber = balance.AccountNumber, SubsidiaryAccountNumber = balance.SubsidiaryAccountNumber, SubsidiaryAccountName = balance.SubsidiaryAccountName, Balance = balance.Balance }); }