EAUpdateLotIdDates
This document was generated using Claude.ai
Overview
Updates lot date information (expiry, production, retest dates) across all system tables based on the dates specified in document lines. Performs a comprehensive update that synchronizes lot date information throughout the entire system, ensuring consistency across inventory, transaction history, and all document types.
When This Action Runs
Manual execution on supply chain documents when lot date information needs to be propagated system-wide, typically used after receiving updated lot information, correcting date errors, or standardizing lot dates across all references.
How It Works
- Scans document lines - Processes each line that has both an item and lot ID
- Validates date parameters - Determines which dates to update based on parameters
- Prepares update queries - Creates SQL update statements for each affected table
- Updates critical inventory tables - Updates in synchronized block:
- ItemDimensionsQty (inventory quantities)
- QtyTransLine (transaction history)
- Updates additional tables - Updates without synchronization:
- ItemLot (lot master data)
- EndStockTakingLine (stock taking records)
- All BasicSCDocumentLine subclasses (all document types)
- Processes in transactions - Each update runs in separate transaction for isolation
- Tracks progress - Updates task progress for monitoring long-running operations
Parameters
Parameter 1: Do Not Update Expiry Date (Optional) - true/false to skip expiry date updates (default: false)
Parameter 2: Do Not Update Production Date (Optional) - true/false to skip production date updates (default: false)
Parameter 3: Do Not Update Retest Date (Optional) - true/false to skip retest date updates (default: false)
Parameter 4: Force Update of Current Entity Lines (Optional) - true/false to update current document's table (default: false)
Database Tables Affected
- ItemDimensionsQty - Updates lot dates in inventory quantity records
- QtyTransLine - Updates lot dates in transaction history
- ItemLot - Updates lot master data with new date information
- EndStockTakingLine - Updates lot dates in stock taking records
- All Document Line Tables - Updates lot dates in every document type that extends BasicSCDocumentLine
Module: supplychain
Full Class Name: com.namasoft.modules.supplychain.domain.utils.EAUpdateLotIdDates
Update Scope: System-Wide Lot Date Synchronization
Related Actions:
- Lot management entity flows
- Inventory date correction utilities
- Batch update processing actions