Profit and Loss Report

Prev Next

The Profit and Loss Report shows actual amounts for profit and loss accounts. It contains one row for each location, legal entity, GL account, transaction date, approval status, and beginning balance flag.

Column reference

ColumnTypeDescription
tenant_idNUMBER(38,0)R365 internal tenant identifier
operational_yearNUMBER(4,0)Fiscal year from the 4-4-5 calendar
operational_periodNUMBER(2,0)Fiscal period number (1-12) from the 4-4-5 calendar. Blank for the extra week at the end of a 53-week year, which has no period number.
operational_quarterNUMBER(9,0)Fiscal quarter (1-4)
operational_weekNUMBER(17,0)Fiscal week number (1-53) within the operational year from the 4-4-5 calendar
transaction_dateDATEGL posting date of the transaction
location_idVARCHARLocation identifier for this posting
legal_entity_idVARCHARLegal entity resolved from the posting location
approval_statusNUMBER(38,0)Approval status of the underlying transaction: 1 is unapproved and 2 is approved. The report includes both. Filter this column to 2 to see approved transactions only.
is_beginning_balanceBOOLEANTrue when the transaction is a beginning balance entry. The report includes these entries. Filter this column to exclude them.
gl_account_idVARCHARGL account identifier
account_numberVARCHARGL account number
account_nameVARCHARGL account name
gl_type_nameVARCHARGL type name (such as Food, Beverage, or Labor)
gl_type_codeNUMBER(38,0)Numeric GL type code
typical_balance_is_creditBOOLEANTrue if the account's typical balance is credit (revenue). False for debit-normal accounts (expense and cost of goods sold). Some tenants set Sales GL types (GL type code 400) as debit-normal. The amount column still treats these as credit minus debit.
is_statistical_accountBOOLEANTrue if this is a statistical (non-financial) account
operational_reporting_categoryVARCHARFull operational reporting category label, such as 'Food - Cost of Sales'.
operational_reporting_category_numberNUMBER(38,0)Raw special_category code from gl_account
parent_gl_account_idVARCHARDirect parent GL account identifier
parent1_gl_account_idVARCHARLevel-1 parent GL account identifier in the account hierarchy
parent_account_nameVARCHARLevel-1 parent GL account name
parent_account_numberVARCHARLevel-1 parent GL account number
operational_reporting_category_1VARCHARFirst segment of operational_reporting_category (before the dash separator)
operational_reporting_category_2VARCHARSecond segment of operational_reporting_category (after the dash separator)
debit_amountNUMBER(38,2)Sum of debit amounts for this account, location, and transaction date
credit_amountNUMBER(38,2)Sum of credit amounts for this account, location, and transaction date
amountNUMBER(38,2)Sign-adjusted net amount. For credit-normal accounts, the amount is credit minus debit, so a positive value is an increase in the account (a credit for revenue). For debit-normal accounts, the amount is debit minus credit, so a positive value is an increase in the account (a debit for expense and cost of goods sold). Sales accounts (GL type code 400) are the exception: the amount is always credit minus debit, even when the account is debit-normal, so a debit gives a negative amount.