private void appendDestinationWithNewAccount(OldFFDBDataSet.AccountRow sourceAccount) { if (sourceAccount.id <= 0) { handleSpecialAccount(sourceAccount); } else { AccountDRM newAccount = new AccountDRM(); newAccount.Name = sourceAccount.name; newAccount.TypeID = accountTypeMerger.getDestinationIdFromSourceId(sourceAccount.typeID); newAccount.Catagory = FamilyFinance.Data.CatagoryCON.getCatagory(sourceAccount.catagory); newAccount.Closed = sourceAccount.closed; newAccount.UsesEnvelopes = sourceAccount.envelopes; if (newAccount.Catagory == FamilyFinance.Data.CatagoryCON.ACCOUNT) { newAccount.HasBankInfo = true; newAccount.AccountNormal = FamilyFinance.Data.PolarityCON.GetPlolartiy(sourceAccount.creditDebit); } sourceToDestinationID.Add(sourceAccount.id, newAccount.ID); } }
private void handleSpecialAccount(OldFFDBDataSet.AccountRow account) { sourceToDestinationID.Add(account.id, account.id); }