NetSuite get GL impact records/lines from Expense Report - netsuite

Using Saved Search or SuiteScript, how could I get GL Impact lines which has Account, Amount (Debit), Amount(Credit), Posting, Memo, ... columns.
When I check record schema, I can see there is no such sublist.
Here is a screenshot for GL impact line

There is no sublist because the GL lines display is just an extract of the account and debit/credit amounts that are on the transaction lines.
The simplest form of a custom GL lines search includes these from the Advanced search on transactions:
Criteria: Voided = No; Closed = No;
Results:
Account, Amount (Debit), Amount (Credit)
for results you probably also want
Document Number, Memo, Custom GL, Custom Script and whatever of Dept, Location, or Class that are used in your account.

Related

How to set open stock for Serial number Inventory Item first time for new NetSuite setup?

I am setting up New ERP setup with a serialized inventory in NetSuite. What is the best way to set open stock for serialized inventory? All I can see the option is Inventory Adjustment Record. Is there any other better way?
Thanks in advance.
An Inventory Adjustment or, Purchase Order and Item Receipt, or Work Order Completion / Assembly Build would all bring serialised inventory in to stock. Inventory Worksheets will not as per SuiteAnswer 99378. Inventory adjustments are relatively simple to import via CSV when working with serialised items. I found it works best if the item list, adjustment list, and serial number list (inventory detail), are all uploaded using the "Multiple files to upload" option. See SuiteAnswer 51417 for examples.

System note data in one line on saved search

We have a three level approval for purchase orders. I have received a requirement to show who approved at each level and the timestamp against every PO in saved search,
When I started creating this search, I am struggling to get the data for every PO in one line, as the system note data has one line each for every approval.
Can you please advise on how to get these multiplelines on a single line for every PO?
Thanks,
Check out the undocumented NS_CONCAT function for saved searches.
Here's an example answered earlier:
How to list my Sales Reps for a customer on one line?

NetSuite Saved Search (Bills, PRs, and POs by Vendor Containing Certain Text)

New to Netsuite and the saved search function, but I cannot for the life of me get these to show on the saved search together. I can get them to pull separately.
the PO and BILL record pull from one vendor record containing a certain text
the PRs pull from another separate field called the proposed supplier containing a certain text
How can I join these three transaction types on one saved search? I'm looking for the documents that contain a certain Text..
Screenshot of Criteria
PO and Bill are transactions, so you create a search on transaction and add filters to specified/required transaction types like Bill and Purchase Order. Although I could't understand what is PR.
And then you can add other search filter on the required field with operator contains, which has certain text as you mentioned.

Track unowned/Drop Ship inventory in NetSuite

Here is what we are trying to do:
We want to track our vendors Drop Ship inventory which we do not own in NetSuite and be able to use the inventory feed from NetSuite to feed our eCommerce channels for both our owned and unowned inventory.
Here is what we've tried:
1- Enabled multi-location inventory
2- Created a "Drop Ship" location
3- Did an inventory adjustment to allocate inventory to that location
Here is the main issue we are facing:
The inventory should not show up on our balance sheet as we do not actually own it. In the scenario above, our inventory feed works as it should. However, the inventory shows up on our balance sheet.
Any assistance on how to get this to work without having the inventory shown on our balance sheet would be very much appreciated.
You could set cost to zero on the item record to reduce the balance sheet value to zero. To correctly show COGS on your P&L, you would need to add a cost on POs for each drop ship item.
To partially automate the PO process, create a custom column field that stores cost. When a PO is created or on a schedule, use a saved search email notification that includes an import ready CSV with Internal ID, Line ID, the custom cost field and a link to a saved CSV import in the body of the email. When you get the email notification, click the link and proceed to import the attached file with the correct item cost.

Search Filter for one level down in SuiteScript

Basically, what I need to do is get at the Billing Transactions:Internal Id field in a script for searching.
I have a saved Transaction search, where type = Purchase Order. I need to get the PO internalid AND the Billing Transaction: Internal Id. The saved search is fine.
Because in script the nlapiSearchRecord can only get one record, and I have over 9,000 rows, I am doing a loop where I am adding a filter of internalid >= the last internalId of the previous execution (1,000 rows). However, I need the filter for this search to be on the Billing Transaction:Internal Id NOT the PO Internal ID.
What "field" can I use in the nlobjSearchFilter creation to get the Billing Transaction:Internal Id?
Using the NetSuite Records Browser, if you check the Search Filters section for Purchase Orders, there is a filter there called billingtransaction that you can use. There is also a Search Column of the same name, so you can also retrieve that in your results.
Another option, if you have a saved search and are comfortable with your script executing saved searches, you can simply pass the search ID to nlapiSearchRecord or nlapiCreateSearch to execute the saved search or modify it then execute it, respectively. We typically avoid doing this in our code because any Administrator can modify a Saved Search, even Private ones, but it is an option nonetheless.

Resources