Skip to content

Loan, Reward and Penalty Document Terms ​

These documents all move money that is not salary — an advance paid out, an instalment collected, a bonus granted, a fine deducted — so unlike the vacation family, most of them have an accounting effect, and their terms are mostly about accounts.

The shared mechanics — what a term is, why most aggregated terms only name a book and a term, and the three differently-named accounting switches — are on Salary and Dues Document Terms.

The Settings tab of the Loan Document term

The loan family ​

Four documents make up the life of a loan: the loan itself, a payment against it, a relief that writes part of it off, and a reschedule that moves its instalments. A fifth, the loan request, comes before all of them.

The Loan Document term has an Effect tab with a Debit group and a Credit group — the two account sides termConfig.config.debit and termConfig.config.credit — plus three options of its own:

OptionFieldWhat it does
Without Accounting EffecttermConfig.withoutAccountingEffectSuppresses the document's entry.
Ignore Conditions For Loan DocumenttermConfig.ignoreConditionsForLoanDocumentSkips the loan type's Conditions Should Be Matched In Loan Document grid (see Loan Types). The other checks still run: the employee's state against the allowed states on HR Configuration, and the loan type's minimum and maximum loan amount and instalment count. This is the exception term, for the loan that management approved despite the condition rows.
Generate Installments With SavetermConfig.generateInstallmentsWithSaveWhen the document has no instalment lines, the instalment schedule is built automatically when it is saved, instead of waiting for the user to press Generate Installments. Lines already on the document are left alone.

Between these options and the two sides sits the Accounting Effect By Criteria grid, described in its own section below. It is how one loan term sends each group of employees to different accounts.

The Loan Request term has a Home tab with the two loan options and nothing else — a request creates no accounting entry:

OptionFieldWhat it does
Ignore Conditions For Loan DocumenttermConfig.ignoreConditionsForLoanDocumentThe request is saved without checking the loan type's condition rows, exactly as on the loan document.
Generate Installments With SavetermConfig.generateInstallmentsWithSaveWhen the request has no instalment lines, saving it builds the instalment schedule from the amount, the instalment count and the payment start date. Lines already on the request are left alone.

The Loan Payment and Loan Relief terms each carry only the two account sides, DebittermConfig.config.debit and Credit termConfig.config.credit. Everything about how much is paid or relieved is on the documents; the term only says where it lands.

The aggregated loan term names Generated HR Loan Doc Term and Generated HR Loan Doc Book (termConfig.generatedHRLoanDocTerm, termConfig.generatedHRLoanDocBook) for the individual loans it creates, and adds its own Payment Amount Debit and Payment Amount Credit (termConfig.paymentAmountDebit, termConfig.paymentAmountCredit) for the payout side of the batch. It has no Ignore Conditions option of its own on screen; the loan-type conditions are checked on every line of the batch.

The aggregated instalment reschedule term is the two-field shape: Loan Installment Reschedule Book termConfig.loanInstallRescheduleBook and Loan Installment Reschedule TermtermConfig.loanInstallRescheduleTerm.

Loans themselves are on Loan Documents and Loan Adjustments.

The Reward and Penalty term ​

A reward or a penalty is an amount attached to an employee for something they did. Its term decides which accounts it hits and, importantly, when the employee actually feels it.

OptionFieldWhat it does
Debit / CredittermConfig.debit, termConfig.creditThe two account sides.
With Accounting EffecttermConfig.withAccountingEffectTicked means the document does create an accounting entry — the opposite sense to the salary document's Without Accounting Effect.
Calculate Debit And Credit From Reward And PenaltytermConfig.calcDebitAndCreditFromRewardAndPenaltyThe accounts come from the reward or penalty type rather than from the two sides above. This is how one term serves a catalogue of reward types that each go to different accounts.
Accounting Effect By CriteriatermConfig.effectByCriteriaLinesA grid that picks the two sides by criteria, described below.
Reward And Penalty Issue MethodtermConfig.issueMethodEither Issued Immediately — the amount is paid or deducted on its own, at once — or Issued With Salary, where it waits and appears on the next payslip.

The issue method changes who pays and when

Issued With Salary is the usual choice: the bonus reaches the employee through payroll, taxed and recorded like everything else. Issued Immediately pays it outside the payslip, which is what some customers want for a spot bonus in cash — but it also means the amount will not be on the salary document, and anybody reconciling payroll to the ledger has to know that.

The aggregated reward and penalty term sits in a group titled Generation. Its Generation Book termConfig.generationConfigurations.generationBook and Generation TermtermConfig.generationConfigurations.generationTerm name the book and term of the individual reward and penalty documents the batch creates — the book is required, and the issue method of the generated documents is taken from that term. Generate Accounting EffectstermConfig.generateAccountingEffects decides whether the batch creates the entries for the documents it generated.

The same term has Allow Repeating Employee With The Same Reward / PenaltytermConfig.allowRepeatingEmployeeWithSameReward. Off (the default), a batch is refused when the same employee appears on two lines with the same reward or penalty — usually a double entry. Tick it when one run legitimately gives an employee the same reward twice, for example two separate overtime bonuses in one month.

Rewards and penalties are on Rewards and Penalties.

Accounting effect by criteria ​

Without this grid, a company that charges its sales staff's advances to one account and its factory staff's to another needs a separate term for each. The Accounting Effect By Criteria grid (termConfig.effectByCriteriaLines) on the Loan Document term and the Reward and Penalty Document term puts those cases in one term: each line says which documents it covers and which two sides they use.

ColumnFieldWhat it does
Employee Criteria Definition / Employee QueryempCriteriaDefinition, employeeQueryMatch on the employee's master file.
HR Info Criteria / HR Info QueryhrInfoCriteriaDefinition, hrInfoQueryMatch on the employee's HR information. An employee with no HR information never matches a line that uses them.
Document Criteria / Document QuerydocumentCriteria, documentQueryMatch on the loan or reward document itself.
Debit / Creditdebit, creditThe two account sides. Both are required on every line.

All the criteria and queries filled on a line must match; the ones left empty are ignored. Lines are tried from top to bottom and the first one that matches is used, for the full amount. A last line with no criteria therefore works as "everyone else". When no line matches, the term's own Debit and Credit are used, exactly as in a term with an empty grid.

Say a loan term has a first line for employees of the Sales department, with a debit side pointing to Sales staff advances, and nothing else in the grid. A loan for a sales employee uses that line; a loan for an accountant uses the Debit and Credit groups below the grid.

Each criteria column accepts only criteria made for its own type: employee, employee HR information, or the term's document type. Saving the term with another type is refused with:

Criteria type must be of {0} — «المعايير يجب أن تكون للنوع {0}»

What the grid does not override:

  • Without Accounting Effect on the loan term, and With Accounting Effect left off on the reward term, still stop the entry.
  • Calculate Debit And Credit From Reward And Penalty still takes the accounts from the reward or penalty type. The grid fills in only a side the type does not give.

An aggregated reward and penalty batch that creates the entries itself follows the grid of the individual documents' term. The payment sides of the aggregated loan term are separate and are not affected.

The government penalty term ​

The government penalty document — the fine that arrives from an authority rather than from a manager — has the shortest term in the module: one pair of account sides on an Effect tab, shown under the group titles Debit and Credit. Their field ids are termConfig.debit2 and termConfig.credit2; there is no other pair.

This document does have an accounting effect, which is worth stating because its sibling the government payment request does not. If a customer asks why a government penalty appears in the ledger and a payment request does not, that is the reason, and it is by design.

Government penalties are on Government Penalties.