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

    • Search
    • Guides

      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • 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
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module

        • EAApplyReservationOfDocsByQuery
        • EAAutoCreateSCDocSecondSerial
        • EAAutoCreateSCDocSerial
        • EAAutoGenSCDocFromDocWithFieldsMap
        • EAAutoGroupCloneItemFromPO
        • EAAutoSerialNumberCalculator
        • EACancelReservationOfDocsByQuery
        • EACollectAlItem
        • EACollectByItemDimension
        • EACollectLot
        • EACollectStockDocsIfEmpty
        • EACopyItemAssortmentToSCLine
        • EACopyRackCodeFromStockTaking
        • EACopyRevisionFromFromDoc
        • EACopyTaxesFromFromDoc
        • EACopyUnitCostFromInvoiceToIssueDoc
        • EAEGBRASSFixCreationDates
        • EAFillSCDetailsByBarCodeSpecs
        • EAGenAndItemSizesAndColorsAndRevisions
        • EAGenSCDocFromDocWithFieldsMap
        • EAGenSCDocFromDocWithFieldsMapWithoutFlush
        • EAGuessSourceLineByItemIdAndFreeItem
        • EAGuessSourceLineIdByItem
        • EAImportItemsFromLongTextField
        • EALotCalculator
        • EAMultiCustomerSalesOfferCreator
        • EANotifyIfSSLCertificateAboutToExpire
        • EAPreventChangingSCDocumentCriticalFields
        • EAPreventQtyLessThan
        • EAPreventQtyMoreThan
        • EAPreventRepeatedItems
        • EAPreventRepeatedValuesAtDetail
        • EAReApplyQtyTrackingEffects
        • EARecalcFreeLinesUnitPriceIfZero
        • EARecalcPurchasePrices
        • EARecalcSalesDocDiscounts
        • EARecalcSalesDocUnitPrices
        • EARecalcSalesDocUnitPricesAndDiscounts
        • EARecalculateAdditionalCost
        • EARegenAssemblyDocumentDetailsFromBOM
        • EARegenInvTransReq
        • EARegenInvTransReqFromQuery
        • EAReplaceItemBoxInSystem
        • EAReplaceItemColorInSystem
        • EAReplaceItemSizeInSystem
        • EASCDocFromDocCreator
        • EASCDocFromDocDeleter
        • EASCPreventChangingFromDocFields
        • EASalesRecalculateFreeAndRelatedItems
        • EASendCustomerToDatanuum
        • EASendInvItemToDatanuum
        • EASendInvoiceToDatanuum
        • EASendReturnedInvoiceToDatanuum
        • EASetDefaultWarehouseForServiceItems
        • EASpreadAssemblyComponents
        • EASubolSetMasterRowIdOfFreeItems
        • EASupplyChainMergeDocLines
        • EASupplyChainMergeStockTakingElectronicDocLines
        • EAUnZipSerialsInLines
        • EAUniCreteGenAssemblyBOM
        • EAUniCreteGenItems
        • EAUniCreteGenSalesInvoiceFromStockIssue
        • EAUniCreteSetQtyOfSlaveRowsAsMaster
        • EAUnicreteGenItemsAllAllowMustApply
        • EAUpdateDeliveryStatusFromSalesDocToFromDoc
        • EAUpdateLotIdDates
        • SetQuantityToOneAction
        • SetSecondUOMToDefaultIfEmpty
        • UniqueBOXInsideStockReceipt
        • ValidateSorceLinesOfFromDocAction
        • .
      • .
    • Release Notes

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

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

EASetDefaultWarehouseForServiceItems

This document was generated using Claude.ai

Overview

Automatically assigns a default warehouse to service items in supply chain documents that don't already have a warehouse specified. Scans all document lines, identifies service items without warehouse assignments, and sets the specified warehouse for proper inventory tracking and reporting.

When This Action Runs

Manual execution on supply chain documents when service items need warehouse assignments, typically used for standardizing warehouse locations for service items or ensuring all items have proper warehouse tracking for reporting purposes.

How It Works

  1. Scans document lines - Iterates through all lines in the supply chain document
  2. Filters for service items - Identifies lines with items that have service item type
  3. Checks warehouse assignment - Skips lines that already have warehouse assignments
  4. Updates dimensions - Calls updateNulls() to initialize dimension fields
  5. Assigns warehouse - Sets the specified warehouse in the line's specific dimensions
  6. Validates assignment - Verifies the warehouse was found and assigned successfully
  7. Accumulates errors - Collects any failures for invalid warehouse codes

Parameters

Parameter 1: Warehouse Code (Required) - Code of the warehouse to assign to service items

Example: WH001, SERVICES, MAIN

Database Tables Affected

  • BasicSCDocumentLine - Updates warehouse assignment in line dimensions
  • Warehouse - Reads warehouse record by business code (read-only)
  • Item Dimensions - Updates specific dimensions with warehouse information

Important Warnings

⚠️ Service Items Only

  • Only affects lines with service item types
  • Physical inventory items are not modified
  • Non-service items retain their existing warehouse assignments
  • Ensure proper item type classification before processing

⚠️ Warehouse Assignment Logic

  • Only processes lines that currently have no warehouse assigned
  • Lines with existing warehouse assignments are skipped
  • This prevents overwriting intentional warehouse selections
  • Review existing assignments before applying default warehouses

⚠️ Required Warehouse Validation

  • Warehouse code parameter is mandatory and cannot be empty
  • Warehouse must exist in the system with valid business code
  • Invalid warehouse codes cause processing failures for affected lines
  • Test warehouse code validity before production execution

⚠️ Dimension Updates

  • Calls updateNulls() to initialize dimension fields before assignment
  • This may initialize other dimension fields beyond just warehouse
  • Dimension updates affect inventory tracking and reporting
  • Consider impact on existing dimension data

⚠️ Document Line Processing

  • Processes all document lines regardless of line status
  • Lines without valid items are skipped gracefully
  • Missing or null item references do not cause errors
  • Review document line completeness before processing

⚠️ Inventory Tracking Impact

  • Warehouse assignments affect inventory allocation and tracking
  • Service items may not require physical inventory management
  • Warehouse assignment impacts reporting and analysis
  • Consider business requirements for service item warehouse tracking

⚠️ Error Handling Behavior

  • Individual line failures don't stop processing of remaining lines
  • Failed warehouse assignments are accumulated in result
  • Processing continues even with invalid warehouse codes
  • Review all error messages for complete understanding

⚠️ Document State Considerations

  • Works on documents in any state (draft, approved, etc.)
  • Document workflow state may affect the ability to modify lines
  • Consider document locking and approval requirements
  • Ensure appropriate permissions for dimension modifications

Module: supplychain

Full Class Name: com.namasoft.modules.supplychain.domain.utils.plugnplay.EASetDefaultWarehouseForServiceItems

Document Type: Supply Chain Documents with Service Items

Related Actions:

  • Warehouse management entity flows
  • Item dimension management actions
  • Document line processing utilities
Edit On github
Last Updated:: 7/28/25, 8:02 AM
Prev
EASendReturnedInvoiceToDatanuum
Next
EASpreadAssemblyComponents