Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| tables_fields:main_tables:transaction [2022/07/12 23:41] – Dhanya | tables_fields:main_tables:transaction [2026/01/21 10:05] (current) – Raksha Khadka | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Table name is transact. Transactions are customer invoices, supplier invoices, inventory adjustments, | Table name is transact. Transactions are customer invoices, supplier invoices, inventory adjustments, | ||
| - | ^ Field name | + | ^ Field name ^ Description ^ mSupply Use ^ Reference link |
| - | | **name_ID** | UUID of the name (customer/ | + | | **name_ID** | UUID of the name (customer/ |
| - | | **ID** | UUID of the transaction (not usually visible to the user | + | | **ID** | UUID of the transaction (not usually visible to the user | Not use in UI | | Alpha | * | |
| - | | **invoice_num** | + | | **invoice_num** | Invoice number given by mSupply |
| - | | amount_outstanding | + | | amount_outstanding | The amount remaining to be paid by the supplier or customer (zero if payments module is not activated).| Prescription>> |
| - | | arrival_date_estimated | + | | arrival_date_estimated | Estimated date goods will reach facility to supply/ |
| - | | arrival_date_actual | + | | arrival_date_actual | Actual date goods reached facility to supply/ |
| - | | budget_period_ID | + | | budget_period_ID | The ID of the budget period the transaction is assigned to (may be different to logical period from transact.date | | | Alpha | | |
| - | | category_ID | + | | category_ID | The ID of the category of the transaction | Supplier/ |
| - | | comment | + | | comment | The comment text entered by the user | | | Text | | |
| - | | colour | + | | Colour |
| - | | confirm_date | + | | confirm_date | The date the invoice was confirmed |
| - | | confirm_time | + | | confirm_time | The time the invoice was confirmed |
| - | | contact_ID | + | | contact_id |
| - | | currency_ID | + | | currency_ID | The ID of the currency of the transaction | | | Alpha | | |
| - | | currency_rate | + | | currency_rate | The currency rate of the transaction |
| - | | cust_transaction_ID | + | | linked_transaction_id |
| - | | date_order_received | + | | date_order_received | Date the requistion/ |
| - | | date_order_written | + | | date_order_written | Date the requistion/ |
| - | | donor_default_ID | + | | donor_default_ID | The ID of the donor to assign to transaction_lines as they are created | | | Alpha | | |
| - | | encounter_id | + | | encounter_id | The id of the HIS encounter. Related: HIS.encounter_id | | | Alpha | | |
| - | | entry_date | + | | entry_date | The date the transaction was created |
| - | | export_batch | + | | export_batch | The batch number supplied by mSupply when the invoice was finalised. |
| - | | foreign_currency_total | + | | foreign_currency_total | Total in currency of the supplier/ |
| - | | goods_received_ID | + | | goods_received_ID | The ID of the goods receipt that generated this transactions- applies to type “SI” only | | | Alpha | * | |
| - | | hold | If true, the transaction status can not be changed, stopping putting goods in or out of stock, or finalising an invoice | + | | hold | If true, the transaction status can not be changed, stopping putting goods in or out of stock, or finalising an invoice |
| - | | invoice_printed_date | + | | invoice_printed_date | Date the invoice was first printed (invoices are printed once status is “CN” - only for type “CI”) | | | Date | | |
| - | | is_authorised | + | | is_authorised | True if transaction has been authorised | Need to set in store preference Supplier/ |
| - | | is_cancellation | + | | is_cancellation | True if the transaction is a cancellation of an existing transaction (i.e. a contra) | | | Boolean | | |
| - | | local_charge_distributed | Any charges locally applied to a receipt transaction (used to calculate costs-included selling price) | Real | | | + | | local_charge_distributed | Any charges locally applied to a receipt transaction (used to calculate costs-included selling price) |
| - | | linked_goods_received_ID | The ID of the goods received note created from a customer invoice in an internal requisition | Alpha 255 | + | | linked_goods_received_ID | The ID of the goods received note created from a customer invoice in an internal requisition |
| - | | mode_ID | + | | mode | 0 for store, 1 for dispensary | | | Alpha | | |
| - | | mwks_sequence_num | + | | mwks_sequence_num | The id of the corresponding transaction in Moneyworks |
| - | | number_of_cartons | + | | number_of_cartons | Number of cartons the order was shipped in | | | Long Integer |
| - | | original_PO_id | + | | original_PO_ID |
| - | | requisition_ID | + | | requisition_ID | ID requisition that this transaction was created from (Only applies to customer invoices. New field from version 3.6)| | | Alpha | | |
| - | | responsible_officer_ID | + | | responsible_officer_ID | ID of the user responsible for shipping goods | Not used in UI but used to display Customer invoice>> |
| - | | pickslip_printed_date | + | | pickslip_printed_date | Date of first pickslip printing (not updated with subsequent printing)| | | Date | | |
| - | | prescriber_ID | + | | prescriber_ID | ID of the prescriber (for prescriptions) | | | Alpha | * | |
| - | | ship_date | Date the order was shipped (for type "CI") | + | | ship_date | Date the order was shipped (for type “CI”) | Customer invoice>> |
| - | | ship_method_comment | + | | ship_method_comment | | | | Alpha | | |
| - | | ship_method_ID | + | | ship_method_ID | ID of Shipping method |
| - | | **status** | + | |**status** | A 2 letter code denoting the status of the transaction. See [[other_stuff: |
| - | | subtotal | + | | subtotal | The subtotal of transaction lines plus extra charges excluding tax | Customer/ |
| - | | tax | Tax (value) on the subtotal | + | | tax | Tax (value) on the subtotal |
| - | | **type** | + | |**type** | The transaction type. See Transaction Types here | | | Alpha | | |
| - | | **total** | + | |**total** | The subtotal plus the tax amount (see below) |
| - | | their_ref | + | | their_ref | The reference supplied by the other party for the transaction |
| - | | service_descrip | + | | service_descrip | Description of any service items on the invoice |
| - | | service_price | + | | service_price | The amount of any extra charges added to the invoice (or discount) | Customer/ |
| - | | subtotal | + | | user_ID | The user id number of the user who created the invoice | | | Alpha | | |
| - | | tax | The tax amount of the invoice | + | | user1 | Custom user-defined field | | | Alpha | | |
| - | | user_ID | + | | user2 | Custom user-defined field | | | Alpha | | |
| - | | user1 | + | | user3 | Custom user-defined field | | | Alpha | | |
| - | | user2 | + | | user4 | Custom user-defined field | | | Alpha | | |
| - | | user3 | + | | waybill_number | | | | Alpha | | |
| - | | user4 | + | | entry_time | The time of invoice entry | | | Time | | |
| - | | waybill_number | + | | authorisationStatus | Detailed authorisation state | | | Alpha | | |
| + | | nameInsuranceJoinID | Links patient and insurance record. | | | Alpha | | | ||
| + | | insuranceDiscountAmount | Calculated insurance discount value | Prescription>> | ||
| + | | optionID | | | | Alpha | * | | ||
| + | | insuranceDiscountRate | Insurance discount percentage | | | Real | | | ||
| + | | internalData | | | | Object | | | ||
| + | | lastModifiedAt | | | | Long Integer | | | ||
| + | | custom_data | | | | Object | | | ||
| + | | goodsReceivedConfirmation | | | | Object | | | ||
| + | | paymentTypeID | | | | Alpha | | | ||
| + | | diagnosis_ID | Diagnosis associated with the prescription. | | | Alpha | * | | ||
| + | | wardID | | | | Alpha | | | ||
| + | | category2_ID | | | | Alpha | | | ||
| + | | om_created_datetime | | | | Alpha | | | ||
| + | | om_allocated_datetime | | | | Alpha | | | ||
| + | | om_picked_datetime | | | | Alpha | | | ||
| + | | om_shipped_datetime | | | | Alpha | | | ||
| + | | om_delivered_datetime | | | | Alpha | | | ||
| + | | om_verified_datetime | | | | Alpha | | | ||
| + | | om_status | | | | Alpha | | | ||
| + | | om_colour | | | | Alpha | | | ||
| + | | om_type | | | | Alpha | | | ||
| + | | om_transport_reference | | | | Alpha | | | ||
| + | | finalised_date | | | | Date | | | ||
| + | | programID | ID of program that link to the invoice | | | Alpha | * | | ||
| + | | tax_rate | | | | Real | | | ||
| + | | gender | Patient gender | | | Text | | | ||
| + | | om_original_shipment_id | | | | Alpha | | | ||
| + | | finalised_time | The time of finalise invoice | | | Time | | | ||
| + | | om_expected_delivery_datetime | | | | Alpha | | | ||
| + | | oms_fields | | | | Object | | | ||
| + | | om_gender | | | | Alpha | | | ||
| ---- struct data ---- | ---- struct data ---- | ||
| pagestatus.status | pagestatus.status | ||
| ---- | ---- | ||