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.

REQUIRED EDITIONS
Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions with Accounting Subledger

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
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.

Debit and Credit Information for Revenue Types

Transaction Journal Type Debit or Credit Source Field Mapped to Generate Expected Revenue/Expense Selected? What Populates the GL Code
Transaction Debit —
  • For paid amounts: Payment Method
  • For written-off amounts: Default Write Off Account Code
Payment Credit Yes Default Accrual Account Code
Payment Credit No Fund Name
Allocation Debit — Default Accrual Account Code
Allocation Credit — Fund Name

Debit and Credit Information for Expense Types

Transaction Journal Type Debit or Credit Source Field Mapped to Generate Expected Revenue/Expense Selected? What Populates the GL Code
Transaction Credit —
  • For paid amounts: Payment Method
  • For written-off amounts: Default Write Off Account Code
Payment Debit Yes Default Accrual Account Code
Payment Debit No Fund Name
Allocation Credit — Default Accrual Account Code
Allocation Debit — Fund Name

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.