xMatix
Sign in Request demo
xMatix
PRODUCTS
SalesField SalesCRMRewardsClaimsInventoryProcurementWarehouse ManagementField ServiceServiceSupportTelephony & MessagingFinance & AccountingPayrollExpense ManagementCommercePortalsAnalytics & ReportingData StudioMobile AppSee all products →
PLATFORM
Platform overviewApp BuilderAutomationIntegrationsSecurity & GovernanceChange ManagementDevelopers
SENSE AI
Sense AI overviewSense AssistSense ControlSense VisionAI StudioTrust & governanceIn Claude & ChatGPTUse cases
SOLUTIONS
FMCG & DistributionManufacturing & Dealer NetworksAutomotive & DealershipsPharma & HealthcareConsumer DurablesAgri-InputsBuilding MaterialsService NetworksWarehousing & 3PLFinancial AccountingERP SoftwareIndia GST ComplianceUAE VAT & e-InvoicingSaudi ZATCA & VATAll solutions →
RESOURCES
Knowledge CenterDeveloper & CLIBlogGuidesWhat is xMatix?Company facts
COMPANY
AboutCareersPartnersEventsContactAuthorsLegal
Sign in Request demo
Home/Docs/Entity Reference/Full & Final Settlement — entity reference
REFERENCE · Last reviewed

Full & Final Settlement — entity reference

The exit settlement for a leaving employee: payable components such as salary to the last working day, leave encashment, gratuity and pending reimbursement, net of deductions such as notice recovery, loan recovery and TDS, all held as FullAndFinalSettlementLine children. Posting builds one journal - debit each payable line's expense GL, credit each deduction line's payable GL, credit Payroll Payable for the net - raises a Resource-keyed payable open item for the net, dates everything on the Last Working Day, and then closes the person out by setting the matching Employee to SettlementStatus Settled and EmploymentStatus Exited and filling Date Of Exit if empty. Posting refuses when the settlement is already posted, has no lines, has no Resource, or when recoveries exceed payables so the net would be negative. The Employee it closes is located by matching Employee.ResourceId, so a settlement raised against a Resource with no Employee row still posts but closes nobody.

Fields

FieldLabelTypeRequiredWhat it does
BranchIdBranchLookup → Branch
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
GLIdGLLookup → JournalFilled with the settlement's posting journal, and used as the already-posted guard: a settlement that already has a value here refuses to post again rather than duplicating the entries.
IdIdGuidYes
LabelLabelText
LastWorkingDayLast Working DayDateYesDoubles as the accounting date - the settlement journal and the payable open item it raises are both dated on it, falling back to today only when it is empty. It is also the value copied into the employee's Date Of Exit when that is still blank.
ModifiedByIdModified ByLookup → UserAccountYes
NameNameText, uniqueYes
NetSettlementNet SettlementCurrency
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → AccountYes
PayrollPayableOpenTransactionIdPayroll Payable Open TransactionLookup → OpenTransactionThe Resource-keyed payable open item raised for the net settlement amount, which the salary payment path later discharges. It stays empty when the net works out to exactly zero, because no open item is raised in that case.
RecordTypeIdRecord TypeGuid, hidden
ResourceIdResourceLookup → ResourceYesThe person being settled, keyed on Resource; posting refuses without it. The Employee record that gets closed out at the end is found by matching this against Employee.ResourceId, so a settlement for a Resource with no Employee row still posts but closes nobody.
StatusStatusPickListThe seeded list also offers Approved and In Progress, which no code path sets or reads. Values: Draft, Posted, Paid, Approved, In Progress.
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes

Actions

ActionLabelTypeWhat it does
BulkDeleteDeleteDeleteDelete the selected records.
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteDelete this FullAndFinalSettlement.
DeleteRecordDeleteDeleteDelete
EditEditEditEdit this FullAndFinalSettlement.
EditInLineEditEditInlineEdit
EditRecordEditEditEdit
NewNewNewCreate a FullAndFinalSettlement.
PostSettlementPostServerAction (PostSettlement)Posts the settlement rather than merely approving it: it builds one payroll journal debiting each payable line's expense account, crediting each deduction line's payable account and crediting Payroll Payable for the net, dates it on the Last Working Day, raises a Resource-keyed payable open item for any positive net, sets Status to Posted and stores the net and the journal. It then closes the person out, setting the matching Employee to SettlementStatus Settled and EmploymentStatus Exited and filling Date Of Exit if empty. It refuses when the settlement is already posted, has no Resource, has no lines with a non-zero amount, has a line missing its required GL account, when no Payroll Payable control account is configured, or when deductions exceed payables.
ViewViewViewView this FullAndFinalSettlement.

Lookup filters

FilterLookup fieldNotes
BranchFilterBranchId
PartnerAccountFilterPartnerAccountId