EACopyRackCodeFromStockTaking
This document was generated using Claude.ai
Overview
Updates item rack location codes in the item master based on rack codes entered during stock taking. Copies the rack code from the Text1 field in stock taking lines to the item's warehouse-specific dimension data.
When This Action Runs
Manual execution on stock taking documents after rack codes have been entered in the Text1 field of document lines, typically during physical inventory counts or warehouse reorganization.
How It Works
- Collects rack codes - Gathers Text1 values from all stock taking lines
- Maps to items - Creates mapping of items to their new rack codes
- Opens item records - Starts editing each affected item master record
- Updates warehouse data - Finds matching warehouse dimensions and updates rack codes
- Commits changes - Saves updated rack codes to item master records
Parameters
This action does not require any parameters.
Database Tables Affected
- InvItem - Updates item master records with new rack codes
- ItemDimensionsDetail - Modifies rack code in warehouse-specific dimensions
- StockTakingDetails - Reads rack codes from Text1 field (read-only)
Important Warnings
⚠️ Text1 Field Usage
- Rack codes must be entered in the Text1 field of stock taking lines
- Empty Text1 fields are ignored
- No validation of rack code format or uniqueness
⚠️ Warehouse Specificity
- Only updates rack codes for the warehouse specified in document header
- Other warehouse locations remain unchanged
- Items must have dimension records for the target warehouse
⚠️ Item Master Updates
- Directly modifies item master records
- Changes are permanent once committed
- Previous rack codes are overwritten without backup
⚠️ Bulk Processing
- Processes all items with rack codes in single operation
- Failure on one item stops entire process
- No partial updates - all or nothing execution
⚠️ Data Consistency
- Multiple lines for same item use last rack code found
- No duplicate rack code validation
- Consider impact on warehouse picking operations
Module: supplychain
Full Class Name: com.namasoft.modules.supplychain.domain.utils.plugnplay.EACopyRackCodeFromStockTaking