---
schema_version: "1"
id: abc44221e6d1a17ba21613098f1a9fb7df2661b0e9860697d9da4e72c3085dad
title: GL Codes
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sfdo/264-0-0/asl_gl_codes.md
canonical_url: https://help.salesforce.com/s/articleView?id=sfdo.asl_gl_codes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ecb85f0991c5a65e8a27861b5829a3126124cee5ecd09f46cb9193aa98cd5f9a
description: In an accounting system, each line in a general ledger is assigned an account or a fund account. The GL Code field on the Transaction Journal object identifies each account. We assign GL codes based on accounting set fields.
products:
  - Education
  - Cross Cloud
release: "264"
---
# GL Codes

In an accounting system, each line in a general ledger is assigned an account or a fund account. The GL Code field on the Transaction Journal object identifies each account. We assign GL codes based on accounting set fields.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small " summary="REQUIRED EDITIONS"><caption>REQUIRED EDITIONS</caption> <colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Accounting Subledger</td></tr></tbody></table>

Think of accounts as buckets that track activity that has increased or decreased. For example, if a pledged cash donation is received, it's recorded as coming from the cash account and going to a specific fund. If that donation is later designated to the building fund, it's deducted from the original fund and then added to the building fund account.

Accounting Subledger sets the GL code automatically based on these criteria.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sfdo-accounting_subledger-264-0-0-production-enus/157531ff-70d1-4f66-a3f6-8bad55ae5e5d/images/icon_note.png)

Note For transaction journal records related to refund payments, the GL code behavior is reversed. Salesforce allocates debit values to credits and vice versa for both revenue and expense types. See [Adjustment Types for Payment and Expense Records](https://help.salesforce.com/s/articleView?id=sfdo.asl_adjust_payment_expense_records.htm&release=264.0.0&type=5 "Accounting Subledger assists you with adjustments by separating source records from transaction journal records. If the source record is updated, we generate new transaction journal records accordingly.").

## Debit and Credit Information for Revenue Types

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e99">Transaction Journal Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e102">Debit or Credit</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e105">Source Field Mapped to Generate Expected Revenue/Expense Selected?</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e108">What Populates the GL Code</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e99 ">Transaction</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e102 ">Debit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e105 ">—</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e108 ">
              <ul>
                <li>For paid amounts: Payment Method</li>

                <li>For written-off amounts: Default Write Off Account Code</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e99 ">Payment</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e102 ">Credit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e105 ">Yes</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e108 ">Default Accrual Account Code</td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e99 ">Payment</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e102 ">Credit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e105 ">No</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e108 ">Fund Name</td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e99 ">Allocation</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e102 ">Debit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e105 ">—</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e108 ">Default Accrual Account Code</td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e99 ">Allocation</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e102 ">Credit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e105 ">—</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e108 ">Fund Name</td>

          </tr>
        </tbody>
      </table>

## Debit and Credit Information for Expense Types

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
          <col style="width:25%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e226">Transaction Journal Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e229">Debit or Credit</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e232">Source Field Mapped to Generate Expected Revenue/Expense Selected?</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d6097e235">What Populates the GL Code</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e226 ">Transaction</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e229 ">Credit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e232 ">—</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e235 ">
              <ul>
                <li>For paid amounts: Payment Method</li>

                <li>For written-off amounts: Default Write Off Account Code</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e226 ">Payment</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e229 ">Debit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e232 ">Yes</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e235 ">Default Accrual Account Code</td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e226 ">Payment</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e229 ">Debit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e232 ">No</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e235 ">Fund Name</td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e226 ">Allocation</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e229 ">Credit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e232 ">—</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e235 ">Default Accrual Account Code</td>

          </tr>
          <tr class="">
            <td data-label="Transaction Journal Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e226 ">Allocation</td>

            <td data-label="Debit or Credit" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e229 ">Debit</td>

            <td data-label="Source Field Mapped to Generate Expected Revenue/Expense Selected?" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e232 ">—</td>

            <td data-label="What Populates the GL Code" class="slds-cell-wrap" style="vertical-align:top;" headers="d6097e235 ">Fund Name</td>

          </tr>
        </tbody>
      </table>

You can configure your own values to align with your accounting software. For example, if your accounting software's receivables account is called Pledges Receivable, configure Accounting Subledger to set the GL code as Pledges Receivable. Confirm with your accounting team which fund allocation account to use. Then, enter the account name on the accounting set. See [Configure Accounting Set Settings](https://help.salesforce.com/s/articleView?id=sfdo.asl_configure_accounting_set_settings.htm&release=264.0.0&type=5 "After you map source fields to accounting set destination fields, configure how Accounting Subledger generates transaction journal records for each accounting set.").