You can't pull a Transaction record – you have to pull a specific type or transaction record. Some types include: Invoice, SalesOrder, and CashSale.
Try going to the following url:
https://system.netsuite.com/app/accounting/transactions/transaction.nl?id=3820
This should give you an idea of what transaction type the record is. If it's an Invoice, you would retrieve it using:
NetSuite::Records::Invoice.get(1234)
Here are some rough notes on the NS transaction flow. Some of it might be specific to our instance, but the majority of it applies to NS as a whole and might be helpful to you or others trying to piece together how NS works.
- most of the time every CashSale (CS) and invoice, has a sales order (SO) associated with it. In the case of a recurring charge (like a monthly service fee) a CS or invoice does not have to have a SO associated with it
- a SO can either have a sales paid order or an invoice associated with it. Ex: if someone paid on the spot with a CC, then it generates a "Cash Sale"
- a SO, CS order, and invoice all have similar data but all have unique NS IDs. They aren't different views of the same data ala Contact vs Customer view on the same NS ID.
- a SO will never progress past the "billed" state even after a full payment has been made
- transactions are a flow. each record represents something semantically. therefore, in the normal flow of business, one might be generated as a consequense of another. so, a Sales Order means, a sales person was on the phone with a person and they ordered something if the company will pay for it later then when it gets "Billed" that generates an Invoice, which is a statement requesting payment for goods/services