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
      • e-commerce Integration Module

        • EAEcommerceAddItemToLinker
        • EAEcommerceGuessItemBySKU
        • EAEcommerceReadAbandonedCarts
        • EAEcommerceReadOrders
        • EAEcommerceReadOrdersFromDate
        • EAEcommerceShippingHandler
        • EAEcommerceUploadQuantityCSVFileToFTPServer
        • EASalesRecalculateFreeAndRelatedItems
        • .
      • 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
      • .

EAEcommerceGuessItemBySKU

This document was generated using Claude.ai

Overview

Automatically resolves inventory items in sales documents using SKU lookups from Magento integration. Matches SKU codes from sales document lines to items configured in Magento item linkers, filling in missing item references and copying related properties.

When This Action Runs

Manual execution on sales documents with incomplete item information. Typically used when processing e-commerce orders where only SKU codes are available and need to be resolved to actual inventory items.

How It Works

  1. Validates site code - Finds the Magento site using the provided site code
  2. Checks document type - Ensures the document is a sales document
  3. Processes each line - Iterates through all document lines
  4. Skips resolved items - Ignores lines that already have valid item references
  5. Extracts SKU - Gets the SKU from the line's item code field
  6. Searches item dimensions - Uses Magento linker utility to find matching items
  7. Updates item reference - Sets the resolved item on the document line
  8. Copies properties - Transfers additional item properties from dimensions to line

Parameters

Parameter 1: Site Code (Required) - Code of the MagentoSite to search for SKU mappings

Database Tables Affected

  • SalesDocument - Reads and updates sales document lines (specific type varies)
  • BasicSCDocumentLine - Updates item references and properties
  • MAGMagentoSite - References the Magento site configuration (read-only)
  • MagentoItemLinker - Searches for SKU to item mappings (read-only)

Module: magento

Full Class Name: com.namasoft.modules.magento.utils.EAEcommerceGuessItemBySKU

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