Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • List Views
      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • Manufacturing
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module

        • CalcBasicSalaryForNetSalary
        • EACalComponentFromLoan
        • EAChangeEmployeeStateFromFiringHandler
        • EAChangeEmployeeStateHandler
        • EAClearFromDateIfFromTimeEmpty
        • EAClearToDateIfToTimeEmpty
        • EACopySalaryStructureToJobOffer
        • EACopySalaryStructureToUpdateEmpInfo
        • EADSCNormalizeTimeAttendance
        • EAEmpAttendanceSysEntryCalculator
        • EAGenSalarySheet
        • EAHealthInsuranceOfferReqAction
        • EALiptisSetComponentFromAnotherWithMax
        • EAMakeSingleCheckInCheckOutIfNeeded
        • EAOyoonWorkPlaceUpdateToUpdateInfo
        • EASalaryCostCalculator
        • EASalaryNormalizeAdditions
        • EASalaryNormalizeDeductions
        • EATimeAttendanceFromDBImportIntoDocument
        • EATimeAttendanceFromDBImporter
        • EATimeAttendanceSetDefaultFromTime
        • EATimeAttendanceSetDefaultToTime
        • EAUpdateEmployeeResidencyRenewDate
        • SetAttendanceToFixedTimeIfEmpty
        • TimeAttendanceAddExtraHoursToEmpty
        • TimeAttendanceRemoveEmptyTimeLines
        • .
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EALiptisSetComponentFromAnotherWithMax

This document was generated using Claude.ai

Overview

Sets a target salary component value based on the total of other components, with a maximum limit from the component's original value. Calculates the sum of specified salary components and applies it to the target component, ensuring it doesn't exceed the original configured amount.

When This Action Runs

Manual execution during salary processing when you need to set a component value based on other components' totals. Typically used for calculating allowances, bonuses, or deductions that depend on other salary elements but have maximum limits.

How It Works

  1. Validates parameters - Ensures both required parameters are provided
  2. Parses component list - Converts CSV parameter into list of component codes to sum
  3. Calculates total - Sums additions minus deductions for all specified components
  4. Finds target component - Locates the salary line with the target component code
  5. Applies maximum limit - Sets value to the lesser of calculated total or original value
  6. Handles zero totals - Uses original value if calculated total is zero
  7. Updates calculations - Recalculates addition/deduction amounts and salary totals

Parameters

Parameter 1: Target Component Type (Required) - Code of the salary component to update

Parameter 2: Components To Normalize (Required) - Comma-separated list of component codes to sum (e.g., "basic,insurance")

Database Tables Affected

  • SalaryDocumentLine - Updates base value for the target component
  • SalaryDocument - Updates total calculations after component modification

Module: hr

Full Class Name: com.namasoft.modules.humanresource.utils.clientscripts.EALiptisSetComponentFromAnotherWithMax

Edit On github
Last Updated:: 3/18/26, 11:30 PM
Prev
EAHealthInsuranceOfferReqAction
Next
EAMakeSingleCheckInCheckOutIfNeeded