SuiteScript Inventory Choice - suitescript

I am using matrix items with a hierarchy, what would be the best inventory value to use when talking about saleable items? And where would I find it? If I look in locations line item on a child record in SuiteScipt I get
location:"1"
location_display:"Main"
locationid:"1"
quantityavailable:"0"
quantityavailablebase:"0"
But if I look in the interface in an item in NetSuite I also see "Quantity On Hand" , "Quantity On Hand (base unit)", "Quantity Available" , "Quantity Available (base unit)" others also like "Quantity Committed", "Quantity Back Ordered", "Quantity In Transit" the last group unlikeley but I am including them, also notably the last 3 have no values anyway. If I am to write a script that determines stock conditions for saleable items, which value or values should I use and where are they located. Thanks and any help is appreciated

Ok figured it out, apparently, the "On Hand" value is a total that includes the sum of the "Quantity Available" and the "Quantity Committed", the "Quantity Available" should be reflective of the Saleable amount of product. This may also have to summed across multiple locations.
thanks anyone who was looking into this for me

Related

Tableau Count (distinct) on a calculated field

Hi I've created a calculated field in Tableau called status, which returns either "Fully Retained", "Partially Retained, "Never Retained and "Not Due", what i want to achieve is a count of how many times each of these status' appear, so that i can calculate a percentage.
Here is the image of the raw data i have removed the field containing sensitive information
I have then pulled in the sales VIN and removed the non required fields
image of the above step
It is separated the into the categories that i want, so now i want to create a count of how many times "fully Retained" appears, "Never Retained" appears, "Not Due" appears, and "Partially retained" appears.
When i change the measure to count (distinct) or just count, it just shows a count of all the stuff under "fully retained"
Image of the issue mentioned above
This isn't correct, there is 680 items, but some and not all of them are fully retained.
Does anyone know how to fixed this?

count distinct of text field in data studio increased when using filter

I want to count the number of sessions with a certain event label in google data studio. I have created a new field in data studio on a google analytics source like this:
COUNT_DISTINCT(CASE WHEN Event Label = "Form Start" THEN Session ID ELSE "" END)
where Session ID is a custom dimension from GA (string).
The problem is that when I for example pull this new metric to a scorecard, I get a value of 6, if I then add a filter on this scorecard with Event Label = "Form Start" (the exact same event label as in the case statement of the new field) the metric is increased to 23! (which is the correct number).
Is there some data truncation going on in data studio behind the scenes or why does using the filter increase the distinct count?
The weird numbers you're seeing could be due to sampling. At the bottom of the report in "view" mode, it should indicate if the numbers are sampled or not.
Also, the Unique Events metric should tell you the number of times a specific event happened per session. You might not need to do all that custom work in data studio, just a filter for the label.
I might be missing something that requires the COUNT_DISTINCT function, but would a simpler, different formula work?
CASE
WHEN Event Label = "Form Start" THEN 1
ELSE 0
END
This would create a number field that that can be used in the metric element of a Scorecard with multiple aggregation options? The key option being SUM :)
I had a similar problem I think, where I was trying to tally all the pages with a certain category in the meta:
CASE
WHEN REGEXP_MATCH(idio:industry, '.*Agriculture.*') THEN "Agriculture"
else "Others"
END
In your case, I think you would use this:
CASE
WHEN REGEXP_MATCH(Event Label, '.*Form Start.*') THEN Session ID
else "Others"
END

Dynamics AX MorphX WMSPickingList Report

I am trying to modify the WMSPickingList_OrderPick Report in Dynamics AX 2009.
I am attempting to move the InventDim group onto the same line as the actual Item Line, as it currently prints underneath.
I have tried manually moving the fields, in this case no data appears.
I have tried switching the parameters so that the item dimensions appear after or a part of the item number, in this case it still appears below.
I have also attemped to simply pick up the values in the Fetch statement and pass them to variables, I can see the values being picked up but on returning them in a display method no data appears?
Many thanks for your help in advance.
Go to Accounts receivables > Setups > Forms > Forms Setup
In the "General" tab > "Print item dimensions" group, Select the "Print item dimensions" as "After item number"
I am assuming it is currently set to "Under item line"
The problem with WMSPickingList_OrderPick report is the width of the design, the design doesnt have enough width to print the Inventory Dimensions, they dont appear when u put them in the same line because the columns overlap.
However, one very clean solution can be to use a Display method as datasource for the Item ID (i.e item number) and in that display method just append the dimension.

How to enable Add Total option in Tablix

I had a problem of couting sum of grouped rows in a tablix. I posted it on stackoverflow. There I found the detailed answer by a user. But the problem is now, he is asking me to add "Add Total" in one cell of my tablix. Whereas I find no option of adding Add Total on every cell. In fact it is disabled on each cell except the cell that is coming under a group.
The person is using Italian IDE (Visual Studio) whereas my IDE is in english. Is there any difference between these two?
Please see the detailed post and reply if there is any solution.
I'll be thankful.
SSRS Sum in table group
I had the same problem. I think the problem is if the field is not recognised as a numeric, then 'Add Total' field will be disabled. So to overcome this problem, first I inserted a row at the bottom of the table and then I converted the field into double in the expression as follows
=SUM(cdbl(Fields!GROSS_MARGIN.Value))
After running the report, I was able to see expected total.
I found the answer
here
This is an alternate solution to my problem.
Make column properties for which u want totals as double or decimal in dataset.
Refresh report data in report designer. U will be able to see add total as enabled. Right click on column for which u want to add total and select Add Total.
no there is no differnce between it

salesforce.com matrix reports - more than 2 columns on row headings

I need to create a donor summary report that provides total donations by donor by year.
I need to provide
name address email yr1total yr2total etc...
It looks like salesforce only allows two columns in row headings and two columns in column headings. Is there a way to work around this
Or, is there a way to use the tabular report to do the same?
TIA
If donations is a single field on the donor's record, it seems like what you're looking to do is attempt to display two columns for the same data within a report. The best way to do this (well, outside of creating a master-detail relationship with a new custom object named "Donations") would to have formula fields for each of the donation years, and calculate the donation sums in each of them. That is, as long as you have a way of calculating the year of the donation.
I believe to get the best answer, more information is needed.
Something like this? This will work if your donation is a separate object that's linked to Account (I've used Tasks & Events linked to Accounts in my example).
Create a report in "Matrix format".
Drop Account Name on the left pane, Donation's Date on the columns.
Columns will default to days. Click the dropdown in the place where I have "Created Date" and select summarizing by year (of course fine-tune to whatever you need).
Check date ranges / filter criteria etc obviously if you don't see all data.
Click Show -> Hide details.
Drop your "Donation Amount" or similar field into place where "Record Count" is displayed. Use "Sum".
Optionally deselect Show -> Record Count.
Now you're mentioning that there are only 2 columns so you probably already tried this. Well, common trick is to cheat by using a formula field that would hold your data (separated by comma maybe?). Tabular report would require you to create some helper fields (1 per year) on Account and do some kind of rollup summaries, messy.
If it's for a dashboard you could play with summary report (it can have more groups than 2) and pick chart type table on the dashboard...

Resources