Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| tables_fields:main_tables:trans_line [2022/03/11 14:31] – Gary Willetts | tables_fields:main_tables:trans_line [2026/01/22 04:41] (current) – Raksha Khadka | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Table name is trans_line. Contains the lines that belong to transactions. | Table name is trans_line. Contains the lines that belong to transactions. | ||
| - | ^ Field name | + | ^ Field name ^ Description |
| - | | batch |The batch ID of the item received or issued | Alpha 20 | + | | batch |
| - | | box_number | + | | box_number |
| - | | cost_price | + | | cost_price |
| - | |donor_id | + | |**donor_id** |This is used if stock receipt and distribution is to be tracked by donors. | |
| - | | expiry_date| The expiry date of this line on the invoice | Date | + | | expiry_date| The expiry date of this line on the invoice |
| - | |foreign_currency_price |While purchasing, this field is used to log cost of items in suppliers foreign currency. | Real | + | | foreign_currency_price |While purchasing, this field is used to log cost of items in suppliers foreign currency. |
| - | |goods_received_lines_ID | + | |**goods_received_lines_ID** |This field is filled if the stock came via mSupply' |
| - | | **ID** | + | | **ID** |Internal tracking number used by mSupply | | | Alpha | * | |
| - | |is_from_inventory_adjustment | + | |is_from_inventory_adjustment |
| - | | item_ID | + | |**item_ID** | Key of the item to which it belongs | |
| - | | item_line_ID | The key of the item line (stock line) that the transaction line belongs to | Long | * | | + | |**item_line_ID** | The key of the item line (stock line) that the transaction line belongs to | |
| - | | item_name| The item name (stored to give data integrity for historical transactions even if the related item name is later changed) | + | | item_name| The item name (stored to give data integrity for historical transactions even if the related item name is later changed) |
| - | | line_number | + | | line_number |
| - | | linked_transact_id | + | | linked_transact_id |
| - | |local_charge_line_total | + | |local_charge_line_total |
| - | |location_ID | + | |**location_ID** |Used to assign stock to location or for stock picking purposes. | |
| - | |manufacturer_ID |Used to specify the manufacturer of the batch. | Long | | | + | |**manufacturer_ID** |Used to specify the manufacturer of the batch. | |
| - | | note | + | | note | Note or directions if a dispensary line |Also used in Supplier invoice>> |
| - | | order_lines_ID | + | |**order_lines_ID** |Stores the Order line ID if the stock was received via mSupply' |
| - | |pack_inners_in_outer | | + | |pack_inners_in_outer | |
| - | | pack_size | + | | pack_size |
| - | | pack_size_inner | + | | pack_size_inner |
| - | | price_extension | + | | price_extension |
| - | | quantity | + | | quantity |
| - | |repeat_ID | + | |**repeat_ID** |
| - | | sell_price | + | | sell_price |
| - | |source_backorder_id | + | |source_backorder_id |
| - | |supp_trans_line_ID_ns | + | |supp_trans_line_ID_ns |
| - | | transaction_ID | + | | transaction_ID |
| - | |user_1 | + | |user_1 |
| - | |user_2 | + | |user_2 |
| - | |user_3 | + | |user_3 |
| - | |user_4 | + | |user_4 |
| - | |volume_per_pack | + | |volume_per_pack |
| - | | weight | + | |Weight |
| - | | type | The type of the transaction line \\ " | + | | type | The type of the transaction line \\ " |
| - | | user_5_ID | + | |**user_5_ID** | The ID of the custom field 5 record selected for this transaction line. | |
| - | | user_6_ID | + | |**user_6_ID** | The ID of the custom field 6 record selected for this transaction line. | |
| - | | user_7_ID | + | |**user_7_ID** | The ID of the custom field 7 record selected for this transaction line. | |
| - | | user_8_ID | + | |**user_8_ID** | The ID of the custom field 8 record selected for this transaction line. | |
| + | | linked_trans_line_ID | Links this transaction line to another transaction line (used for reversals, repacks, or related lines). | ||
| + | |**barcodeID** | Stores the barcode identifier associated with the issued or received item. | | | Alpha | * | | ||
| + | | sentQuantity | Quantity actually sent (may differ from ordered quantity). | ||
| + | | optionID | Stores the option or variant identifier related to this transaction line. | | | Alpha | | | ||
| + | | isVVMPassed | Indicates whether the Vaccine Vial Monitor (VVM) check has passed. | ||
| + | | program_ID | Program identifier related to the transaction line (deprecated – previously used to track doses). | ||
| + | | prescribedQuantity | Quantity prescribed (used mainly in dispensary workflows). | ||
| + | | vaccine_vial_monitor_status_ID | VVM status recorded when receiving stock; applied to the underlying item line once finalised. |ID are not used in UI but used to display Supplier invoice/ | ||
| + | | sent_pack_size | Pack size used when sending stock. | | | Real | | | ||
| + | | custom_data | Stores structured or custom data related to the transaction line. | | | Object | | | ||
| + | | medicine_administrator_ID | Identifier of the person or entity that administered the medicine. | | | Alpha | | | ||
| + | | om_item_code | External OMS item code. | | | Alpha | | | ||
| + | | om_tax | Tax amount applied from OMS integration. | | | Real | | | ||
| + | | om_total_before_tax | Total amount before tax from OMS integration. | | | Real | | | ||
| + | | om_total_after_tax | Total amount after tax from OMS integration. | | | Real | | | ||
| + | | om_item_variant_id | OMS item variant identifier. | | | Alpha | | | ||
| + | | spare_text | Spare text field for future or ad-hoc use. | | | Alpha | | | ||
| + | | oms_fields | Stores OMS-specific structured data. | | | Object | | | ||
| ---- struct data ---- | ---- struct data ---- | ||