public TransmitterTRecord CreateTransmitterRecord(OrganizationBAccount orgBAccount, Organization organization, Contact rowMainContact, Address rowMainAddress, MISC1099EFileFilter filter, int totalPayeeB) { return(new TransmitterTRecord { RecordType = "T", PaymentYear = filter.FinYear, PriorYearDataIndicator = filter.IsPriorYear == true ? "P" : string.Empty, TransmitterTIN = orgBAccount.TaxRegistrationID, TransmitterControlCode = organization.TCC, Blank1 = string.Empty, TestFileIndicator = filter.IsTestMode == true ? "T" : string.Empty, ForeignEntityIndicator = organization.ForeignEntity == true ? "1" : string.Empty, TransmitterName = rowMainContact.FullName.Trim(), CompanyName = rowMainContact.FullName.Trim(), CompanyMailingAddress = string.Concat(rowMainAddress.AddressLine1, rowMainAddress.AddressLine2), CompanyCity = rowMainAddress.City, CompanyState = rowMainAddress.State, CompanyZipCode = rowMainAddress.PostalCode, Blank2 = string.Empty, //Setup at the end - dependent of Payee B records TotalNumberofPayees = totalPayeeB.ToString(), ContactName = organization.ContactName, ContactTelephoneAndExt = organization.CTelNumber, ContactEmailAddress = organization.CEmail, Blank3 = string.Empty, RecordSequenceNumber = (++RecordCounter).ToString(), Blank4 = string.Empty, VendorIndicator = "V", VendorName = TRecordVendorInfo.VendorName, VendorMailingAddress = TRecordVendorInfo.VendorMailingAddress, VendorCity = TRecordVendorInfo.VendorCity, VendorState = TRecordVendorInfo.VendorState, VendorZipCode = TRecordVendorInfo.VendorZipCode, VendorContactName = TRecordVendorInfo.VendorContactName, VendorContactTelephoneAndExt = TRecordVendorInfo.VendorContactTelephoneAndExt, Blank5 = string.Empty, #region Check - Vendor or Branch? VendorForeignEntityIndicator = TRecordVendorInfo.VendorForeignEntityIndicator, #endregion Blank6 = string.Empty, Blank7 = string.Empty, }); }
public PayerRecordA CreatePayerARecord(OrganizationBAccount orgBAccount, Organization organization, Contact rowMainContact, Address rowMainAddress, LocationExtAddress rowShipInfo, Contact rowShipContact, MISC1099EFileFilter filter) { string companyName1 = rowMainContact.FullName.Trim(); string companyName2 = string.Empty; if (companyName1.Length > 40) { companyName2 = companyName1.Substring(40); companyName1 = companyName1.Substring(0, 40); } return(new PayerRecordA { RecordType = "A", PaymentYear = filter.FinYear, CombinedFederalORStateFiler = organization.CFSFiler == true ? "1" : string.Empty, Blank1 = string.Empty, PayerTaxpayerIdentificationNumberTIN = orgBAccount.TaxRegistrationID, PayerNameControl = organization.NameControl, LastFilingIndicator = filter.IsLastFiling == true ? "1" : string.Empty, TypeofReturn = "A", AmountCodes = (filter.ReportingDirectSalesOnly == true) ? "1" : "12345678ABCDE", Blank2 = string.Empty, ForeignEntityIndicator = organization.ForeignEntity == true ? "1" : string.Empty, FirstPayerNameLine = companyName1, SecondPayerNameLine = companyName2, #region Check with Gabriel, we need Transfer Agent or no TransferAgentIndicator = "0", #endregion PayerShippingAddress = string.Concat(rowShipInfo.AddressLine1, rowShipInfo.AddressLine2), PayerCity = rowShipInfo.City, PayerState = rowShipInfo.State, PayerZipCode = rowShipInfo.PostalCode, PayerTelephoneAndExt = rowShipContact.Phone1, Blank3 = string.Empty, RecordSequenceNumber = (++RecordCounter).ToString(), Blank4 = string.Empty, Blank5 = string.Empty }); }