project QadFinancials > class BEmployeeReport > business logic query AllItemsForEmployee


Parameters


iiCompanyIdintegerCompany id
icAddressCitycharacter
icAddressStreetcharacter
icBRCodecharacter
icBRNamecharacter
icCreditorCodecharacter
icEmployeeCodeCandocharacter
icEmployeeCodeFromcharacter
icEmployeeCodeTocharacter
icUserNamecharacter
itEndDateFromdate
itEndDateTodate
itStartDateFromdate
itStartDateTodate
ilEmployeeIsActivelogical
ilEmployeeIsUserlogical
ilEmloyeeIsExternallogical
icEmployeeDepartmentCodecharacter
icEmployeeJobTitlecharacter


query condition


  each Employee where
Employee.Company_Id = iiCompanyId AND
Employee.EmployeeCode can-do icEmployeeCodeCando AND
Employee.EmployeeCode >= icEmployeeCodeFrom AND
Employee.EmployeeCode <= icEmployeeCodeTo AND
Employee.EmployeeIsActive = ilEmployeeIsActive AND
Employee.EmployeeIsExternal = ilEmloyeeIsExternal AND
Employee.EmployeeIsUser = ilEmployeeIsUser AND
Employee.EmployeeStartDate >= itStartDateFrom AND
Employee.EmployeeStartDate <= itStartDateTo AND
Employee.EmployeeEndDate >= itEndDateFrom AND
Employee.EmployeeEndDate <= itEndDateTo AND
Employee.EmployeeDepartmentCode matches icEmployeeDepartmentCode AND
Employee.EmployeeJobTitle matches icEmployeeJobTitle

      first BusinessRelation (inner-join) where
BusinessRelation.BusinessRelation_ID = Employee.BusinessRelation_ID AND
BusinessRelation.BusinessRelationCode can-do icBRCode AND
BusinessRelation.BusinessRelationName1 can-do icBRName

          each Address (conditional-join) where
Address.BusinessRelation_ID = BusinessRelation.BusinessRelation_ID AND
Address.AddressCity can-do icAddressCity AND
Address.AddressStreet1 can-do icAddressStreet

              first AddressType (conditional-join) where
AddressType.AddressType_ID = Address.AddressType_ID AND

              first Country (conditional-join) where
Country.Country_ID = Address.Country_ID AND

      first Creditor (conditional-join) where
Creditor.SharedSet_Id = vi_CREDITOR_sharedset(iiCompanyId) AND
Creditor.Creditor_ID = Employee.Creditor_ID AND
Creditor.CreditorCode can-do icCreditorCode

      first Currency (conditional-join) where
Currency.Currency_ID = Employee.Currency_ID AND

      first Project (conditional-join) where
Project.SharedSet_Id = vi_PROJECT_sharedset(iiCompanyId) AND
Project.Project_ID = Employee.Project_ID AND

      first Usr (conditional-join) where
Usr.Usr_ID = Employee.Usr_ID AND
Usr.UsrName can-do icUserName


query resultset tqAllItemsForEmployee


field namedata typedb fielddescription
tcAddressCitycharacterAddress.AddressCityCity. The city for this address. This field can be used to decide the tax zone of the address.
tcAddressEMailcharacterAddress.AddressEMailE-Mail. This field indicates the e-mail address associated with this business relation.
This field can be blank.
tcAddressFaxcharacterAddress.AddressFaxFax. This field indicates the fax or telex number to use when sending documents to this address.
This field can be balnk.
tcAddressStreet1characterAddress.AddressStreet1Address: Line one of address details.
This field can be blank.
tcAddressStreet2characterAddress.AddressStreet2Address.Line two of address details.
This field can be blank.
tcAddressStreet3characterAddress.AddressStreet3Address.Line three of address details.
This field can be blank.
tcAddressTelephonecharacterAddress.AddressTelephoneTelephone. The telephone number for calling this business relation address.
This field can be blank.
tcAddressTypeCodecharacterAddressType.AddressTypeCodeAddress Type
tcAddressWebSitecharacterAddress.AddressWebSiteInternet. This field indicates the Web site of this business relation.
This field can be blank.
tcAddressZipcharacterAddress.AddressZipZip. The postal code or US zip code associated with this address.
This field is used to decide the tax zone for the address.
This field can be blank.
tiBusinessRelation_IDintegerBusinessRelation.BusinessRelation_IDRecord ID
tcBusinessRelationCodecharacterBusinessRelation.BusinessRelationCodeBusiness Relation. A code to identify the business relation.
If this field does not have a input from the user, the system automatically generates a number for the record based on the sequence defined in Business Relation Autonumber Create.
tcBusinessRelationName1characterBusinessRelation.BusinessRelationName1Name: The full name of the business relation.
This field sets the default name for linked addresses such as customers and suppliers.
api annotation:PartialUpdate = yes - defaults to the BusinessRelationCode.
tiCountry_IDintegerCountry.Country_IDRecord ID
tcCountryCodecharacterCountry.CountryCodeCountry Code
tcCountryDescriptioncharacterCountry.CountryDescriptionDescription
tcCreditorCodecharacterCreditor.CreditorCodeSupplier Code
tlCreditorIsTaxablelogicalCreditor.CreditorIsTaxableTaxable Supplier
tlCreditorIsTaxInCitylogicalCreditor.CreditorIsTaxInCityTax in City
tlCreditorIsTaxIncludedlogicalCreditor.CreditorIsTaxIncludedTax Is Included
tlCreditorIsTaxReportlogicalCreditor.CreditorIsTaxReportTax Report
tcCreditorTaxIDFederalcharacterCreditor.CreditorTaxIDFederalFederal Tax
tcCreditorTaxIDMisc1characterCreditor.CreditorTaxIDMisc1Miscellaneous Tax 1
tcCreditorTaxIDMisc2characterCreditor.CreditorTaxIDMisc2Miscellaneous Tax 2
tcCreditorTaxIDMisc3characterCreditor.CreditorTaxIDMisc3Miscellaneous Tax 3
tcCreditorTaxIDStatecharacterCreditor.CreditorTaxIDStateState Tax
tcCreditorTIDNoticecharacterCreditor.CreditorTIDNoticeTID Notice
tcCurrencyCodecharacterCurrency.CurrencyCodeCurrency Code
tiEmployee_IDintegerEmployee.Employee_IDRecord ID
tcEmployeeCodecharacterEmployee.EmployeeCodeEmployee Code. A code that identifies an employee. The code cannot match any other employee in the current entity or any other entities in the current domain.
If you leave the Employee Code field blank, the system automatically generates a number for the record based on the sequence defined in Employee Autonumber Create.
tcEmployeeDepartmentCodecharacterEmployee.EmployeeDepartmentCodeDepartment Code: The department in which this employee normally works.
ttEmployeeEndDatedateEmployee.EmployeeEndDateEnd Date: The date when this employee terminated employment at your company.
This field is for reference and filtering report data.
tlEmployeeIsActivelogicalEmployee.EmployeeIsActiveActive: This field indicates if this is an active record.
api annotation:PartialUpdate = yes - defaults to true
tlEmployeeIsActiveExpNoteslogicalEmployee.EmployeeIsActiveExpNotesObsolete field
tlEmployeeIsActiveTimeReglogicalEmployee.EmployeeIsActiveTimeRegObsolete field
tlEmployeeIsExternallogicalEmployee.EmployeeIsExternalExternal Employee: Indicate if the employee is a contractor or not employed directly by your organization.
api annotation:PartialUpdate = yes - defaults to false
tlEmployeeIsUserlogicalEmployee.EmployeeIsUserUser: Indicate if this employee is also defined as a valid user in User Maintenance.
api annotation:PartialUpdate = yes - defaults to false
tcEmployeeJobTitlecharacterEmployee.EmployeeJobTitleJob Title: An optional job title for this employee.
This field is for reference only and useful in sorting browses.
ttEmployeeStartDatedateEmployee.EmployeeStartDateStart Date: The date this employee was hired. This field is for reference and filtering report data.
api annotation:PartialUpdate = yes - defaults to the date the record was created
tcProjectCodecharacterProject.ProjectCodeProject
tcTxclTaxClscharacterCreditor.TxclTaxClsTax Class
tcTxuTaxUsagecharacterCreditor.TxuTaxUsageTax Usage
tcTxzTaxZonecharacterCreditor.TxzTaxZoneTax Zone
tcUsrNamecharacterUsr.UsrNameUser Name


Internal usage


QadFinancials
method BEmployeeReport.EmployeeMasterCard