tables · table
desp1stjob
The desp1stjob table is a transaction ledger for Outward Job Work Dispatch (Stage 1). It records the movement of items sent to customers or external vendors for the first phase of processing. The table captures logistical details (Challan numbers, vehicle info), financial data (GST breakdown, item value), and production tracking (MRP numbers, job card references, and operation codes). It is primarily used for generating dispatch documents, tracking material balances with sub-contractors, and financial monitoring of job work activities.
Row count
2,651
Last entry
2026-01-13
Source
tables
Columns
42| Column | Type | Nullable | Meaning |
|---|---|---|---|
index | integer | No | Internal primary key. |
compcode | string | No | Company code. |
chno | number | No | Challan Number (Document ID). |
chdate | datetime | No | Challan Date. |
custcode | string | Yes | Customer/Vendor unique identifier. |
mrpno | integer | Yes | Movement Reference / MRP Number. |
mrpdate | datetime | Yes | Date associated with the MRP. |
lotno | string | Yes | Production lot number identifier. |
pjobcardno | number | Yes | Production Job Card Number. |
pjobdate | datetime | Yes | Date the job card was created. |
itemcode | string | Yes | Unique code for the dispatched item. |
despqty | number | Yes | Quantity dispatched. |
recqty | number | Yes | Quantity received back (returns). |
bal_qty | number | Yes | Remaining balance quantity at vendor site. |
username | string | Yes | User who created the record. |
uom | string | Yes | Unit of Measure. |
cancel_flag | string | Yes | Cancellation status. |
okqty | number | Yes | Quantity accepted as "Good". |
invyear | integer | No | Financial/Invoice year for document unique identification. |
cases | string | Yes | Packaging details (e.g., bin count). |
despby | string | Yes | Mode of dispatch or transport details. |
rejqty | string | Yes | Quantity rejected (stored as string). |
cmrpno | string | Yes | Customer MRP reference number. |
consignee | string | Yes | Recipient code (often same as custcode). |
scrapflag | integer | Yes | Flag indicating if item is scrap. |
itemvalue | number | Yes | Taxable value of the items. |
location | string | Yes | Storage/Production location. |
CGST_TaxPer | number | Yes | Central GST Percentage. |
CGST_Amt | number | Yes | Central GST Amount. |
SGST_TaxPer | number | Yes | State GST Percentage. |
SGST_Amt | number | Yes | State GST Amount. |
IGST_TaxPer | number | Yes | Integrated GST Percentage. |
IGST_Amt | number | Yes | Integrated GST Amount. |
TotalAMt | number | Yes | Total Invoice Value (Net + Tax). |
VehicleNo | string | Yes | Transport vehicle registration number. |
doc | string | Yes | Document type or series name. |
Remarks | string | Yes | General notes. |
tpcode | string | Yes | Transporter Code. |
Calculated_Scrap | number | Yes | System-derived scrap weight/qty. |
JobDoc | string | Yes | Physical Job Document Reference. |
ProdLotNo | string | Yes | Specific Production Lot ID. |
nOprCode | string | Yes | Next Operation Code. |
Full documentation
### 1) Overview The `desp1stjob` table is a transaction ledger for **Outward Job Work Dispatch (Stage 1)**. It records the movement of items sent to customers or external vendors for the first phase of processing. The table captures logistical details (Challan numbers, vehicle info), financial data (GST breakdown, item value), and production tracking (MRP numbers, job card references, and operation codes). It is primarily used for generating dispatch documents, tracking material balances with sub-contractors, and financial monitoring of job work activities. ### 2) Column Dictionary | Column | Type | Nullable | Meaning | Allowed Values | SQL Usage | | :--- | :--- | :--- | :--- | :--- | :--- | | **index** | integer | No | Internal primary key. | | PK | | **compcode** | string | No | Company code. | e.g., "DAS" | Join Key | | **chno** | number | No | Challan Number (Document ID). | | Join Key | | **chdate** | datetime | No | Challan Date. | | Filtering | | **custcode** | string | Yes | Customer/Vendor unique identifier. | | Join to `dbo.cust` | | **mrpno** | integer | Yes | Movement Reference / MRP Number. | | Join Key | | **mrpdate** | datetime | Yes | Date associated with the MRP. | | Reporting | | **lotno** | string | Yes | Production lot number identifier. | | Tracking | | **pjobcardno** | number | Yes | Production Job Card Number. | | Cross-referencing | | **pjobdate** | datetime | Yes | Date the job card was created. | | Tracking | | **itemcode** | string | Yes | Unique code for the dispatched item. | | Join to `dbo.itemmas` | | **despqty** | number | Yes | Quantity dispatched. | | Calculation | | **recqty** | number | Yes | Quantity received back (returns). | | Calculation | | **bal_qty** | number | Yes | Remaining balance quantity at vendor site. | | Stock tracking | | **username** | string | Yes | User who created the record. | | Auditing | | **uom** | string | Yes | Unit of Measure. | PCS, KGS | JOIN to `dbo.UoMMaster` | | **cancel_flag** | string | Yes | Cancellation status. | 'N', 'Y' | Filtering | | **okqty** | number | Yes | Quantity accepted as "Good". | | QC | | **invyear** | integer | No | Financial/Invoice year for document unique identification. | | Join Key | | **cases** | string | Yes | Packaging details (e.g., bin count). | | Logistics | | **despby** | string | Yes | Mode of dispatch or transport details. | | Logistics | | **rejqty** | string | Yes | Quantity rejected (stored as string). | | QC | | **cmrpno** | string | Yes | Customer MRP reference number. | | Ref Only | | **consignee** | string | Yes | Recipient code (often same as custcode). | | Join to `dbo.cust` | | **scrapflag** | integer | Yes | Flag indicating if item is scrap. | 0, 1 | Filtering | | **itemvalue** | number | Yes | Taxable value of the items. | | Financials | | **location** | string | Yes | Storage/Production location. | | Join to `dbo.PhyLocation` | | **CGST_TaxPer** | number | Yes | Central GST Percentage. | | Tax calc | | **CGST_Amt** | number | Yes | Central GST Amount. | | Financials | | **SGST_TaxPer** | number | Yes | State GST Percentage. | | Tax calc | | **SGST_Amt** | number | Yes | State GST Amount. | | Financials | | **IGST_TaxPer** | number | Yes | Integrated GST Percentage. | | Tax calc | | **IGST_Amt** | number | Yes | Integrated GST Amount. | | Financials | | **TotalAMt** | number | Yes | Total Invoice Value (Net + Tax). | | Financials | | **VehicleNo** | string | Yes | Transport vehicle registration number. | | Logistics | | **doc** | string | Yes | Document type or series name. | | Ref Only | | **Remarks** | string | Yes | General notes. | | Ref Only | | **tpcode** | string | Yes | Transporter Code. | | Join to `dbo.transptmas` | | **Calculated_Scrap**| number | Yes | System-derived scrap weight/qty. | | Calculation | | **JobDoc** | string | Yes | Physical Job Document Reference. | | Cross-referencing | | **ProdLotNo** | string | Yes | Specific Production Lot ID. | | Likely Join Key | | **nOprCode** | string | Yes | Next Operation Code. | e.g., "FINAL" | Join to `dbo.oprmas` | ### 3) Relationships & Join Map Based on `SCHEMA_MAP` and `REFERENCE_JSON`, the primary join keys are `compcode`, `chno` (for detail tables), `mrpno` (for process tracking), and `itemcode`. #### Authoritative Joins (Physical Tables): * **desp1stjobdtl**: Join via `compcode`, `chno`, and `invyear`. (Provides operation-level rates and amounts). * **rmjobrec1st**: Join via `compcode` and `mrpno`. (Links dispatch back to the original raw material receipt). * **cust**: Join via `compcode` and `custcode` (or `consignee`). (Retrieves customer names and addresses). * **itemmas**: Join via `compcode` and `itemcode`. (Retrieves item descriptions, HSN codes, and part numbers). * **oprmas**: Join via `compcode` and `nOprCode` (maps to `oprcode`). (Retrieves operation names). * **transptmas**: Join via `compcode` and `tpcode`. (Retrieves transporter details). #### Logical/Inferred Joins: * **rmreturncust**: Join via `compcode` and `mrpno`. (To calculate material returned by customer without processing). * **itemopr**: Join via `compcode`, `itemcode`, and operation codes in detail tables. (To fetch operation-specific drawing numbers and weights).