tables · table
semidtl
The semidtl table stores transaction-level line items for semi-finished (SEMI) material processes or receipts. It contains detailed data regarding quantities (Challan, Received, Accepted, Rejected), pricing, and tax components. Based on the data samples, this table is used to store both physical item lines and calculated summary lines (such as Basic Value, IGST, and Net Amount) identified by specific line number ranges (e.g., 100, 999).
Row count
5
Last entry
—
Source
tables
Columns
20| Column | Type | Nullable | Meaning |
|---|---|---|---|
index | integer | NO | Primary key for the record. |
compcode | string | NO | Company identifier code. |
mrpno | number | NO | Material Receipt/Process Number referencing the header. |
line | integer | NO | Sequence line number. High values (100+) often denote tax/total lines. |
itemcode | string | YES | Unique identifier for the item. |
itemname | string | YES | Description of the item or the name of the tax component. |
amount | number | YES | The line value or specific tax value. |
uom | string | YES | Unit of Measure. |
chqty | number | YES | Challan Quantity (quantity mentioned on the delivery document). |
recqty | number | YES | Received Quantity (physical count at receipt). |
acptqty | number | YES | Accepted Quantity after inspection. |
rejqty | number | YES | Rejected Quantity after inspection. |
rate | number | YES | Unit price of the item. |
amount1 | number | YES | Extended value (Rate * Qty or tax component value). |
HeatNo | string | YES | Manufacturing heat number or batch number for traceability. |
Irno | number | YES | Inspection Report number referencing quality checks. |
DebitQty | string | YES | Quantity associated with a debit note (if applicable). |
DebitValue | string | YES | Financial value of the debit associated with this line. |
oldrate | string | YES | Previous rate if a price revision occurred. |
hsn | string | YES | Harmonized System of Nomenclature code for GST classification. |
Full documentation
### 1) Overview The `semidtl` table stores transaction-level line items for semi-finished (SEMI) material processes or receipts. It contains detailed data regarding quantities (Challan, Received, Accepted, Rejected), pricing, and tax components. Based on the data samples, this table is used to store both physical item lines and calculated summary lines (such as Basic Value, IGST, and Net Amount) identified by specific line number ranges (e.g., 100, 999). ### 2) Column Dictionary | Column | Type | Nullable | Meaning | Allowed Values | SQL Usage | | :--- | :--- | :--- | :--- | :--- | :--- | | **index** | integer | NO | Primary key for the record. | | PK | | **compcode** | string | NO | Company identifier code. | e.g., "DAS" | FK / Join | | **mrpno** | number | NO | Material Receipt/Process Number referencing the header. | e.g., 10109.0 | FK / Join | | **line** | integer | NO | Sequence line number. High values (100+) often denote tax/total lines. | 1, 100, 999 | Filter | | **itemcode** | string | YES | Unique identifier for the item. | | FK / Join | | **itemname** | string | YES | Description of the item or the name of the tax component. | "SHAFT...", "IGST" | Display | | **amount** | number | YES | The line value or specific tax value. | | Summation | | **uom** | string | YES | Unit of Measure. | e.g., "PCS" | Join | | **chqty** | number | YES | Challan Quantity (quantity mentioned on the delivery document). | | Calculation | | **recqty** | number | YES | Received Quantity (physical count at receipt). | | Calculation | | **acptqty** | number | YES | Accepted Quantity after inspection. | | Calculation | | **rejqty** | number | YES | Rejected Quantity after inspection. | | Calculation | | **rate** | number | YES | Unit price of the item. | | Calculation | | **amount1** | number | YES | Extended value (Rate * Qty or tax component value). | | Summation | | **HeatNo** | string | YES | Manufacturing heat number or batch number for traceability. | | Filtering | | **Irno** | number | YES | Inspection Report number referencing quality checks. | | Join | | **DebitQty** | string | YES | Quantity associated with a debit note (if applicable). | | Likely | | **DebitValue**| string | YES | Financial value of the debit associated with this line. | | Likely | | **oldrate** | string | YES | Previous rate if a price revision occurred. | | Historical | | **hsn** | string | YES | Harmonized System of Nomenclature code for GST classification. | | Reporting | --- ### 3) Relationships & Join Map The `semidtl` table acts as the child detail for semi-finished inventory transactions. It primarily links to the header table and the item master. #### Primary Joins (SCHEMA_MAP Verified) * **dbo.semihdr**: Joins on `compcode` and `mrpno`. This retrieves the document date, supplier, and general status. * **dbo.itemmas**: Joins on `compcode` and `itemcode`. This provides item technical specs, categories, and HSN masters. * **dbo.UoMMaster**: Joins on `compcode` and `uom`. Used for unit conversions. #### Downstream & Contextual Joins * **dbo.Debitdtl**: Joins on `compcode` and `mrpno` (aliased as `MRPNo` in `Debitdtl`). Used to find debit notes issued against these specific receipts. * **dbo.fghdr**: Joins on `compcode` and `mrpno`. Links semi-finished receipts to finished goods production batches. * **dbo.Performainvdtl**: Joins on `compcode` and `mrpno`. Used if proforma invoices are generated based on these receipt details. ---