Hi All.
In the inventory items menu you can define the Group Code
Is it in any way possible to transfer this sorting to a report? It would make stocktaking much easier that way.
Here is an example of what I would like to see:
And maybe:
Thanks in advance
I made these example reports by doing this:
So they don’t actually report anything.
Any help would be appreciated. Thanks guys.
Take a look at some of the reporting tutorials.
Also the report template help button which shows available expressions.
They are generally in a format like this;
{REPORT EXPRESSION DETAILS:COLUMN1,COMULMN2:FILTER/CONSTRAINT EXPRESSION}
Colons split the expression into sections like type, fields/columns, filters/constraints, format etc.
emre
April 5, 2017, 11:32am
4
Do you want to group Inventory report by Warehouse and Inventory Item group code like that?
This is the report template I’ve used.
[Inventory Report 2:4, 2,1]
@{REPORT CONSUMPTION DETAILS:C.Warehouse.asc::,}
@{REPORT CONSUMPTION DETAILS:I.GroupCode.asc::,}
>>$1
>$2
{REPORT CONSUMPTION DETAILS:C.Name.asc,C.Prediction,C.Unit:(PCW=$1) and I.GroupCode="$2"}
2 Likes
How to configure consumption report per workperiod / day?
Nobody knows? It’s possible or not?
Memo
July 1, 2020, 2:59pm
7
I think the default report ‘Item Sales Report’ should display the information you need.
Nope, this reort contain only products sales, without warehouse
Should not the Date filters in Reports do the job?
Maybe explain a littler more what you are looking for/want?
When I try to change date, I have the same result. I need to see consumption only per workperiod
Pls see my screenshots. Both the same.
I want to see this row on report
Bob_be
July 1, 2020, 3:24pm
12
Do you have multiple workperiods in a day?
Memo
July 1, 2020, 3:26pm
13
Emre’s sample report showed the prediction of what should be in inventory. If you change 'C.Prediction' to 'C.Consumption' you will see what was sold.
IIRC, all reports initially default to the work period.
Try this:
[Inventory Consumption by Warehouse:4, 2, 1]
|QTY|Unit
@{REPORT CONSUMPTION DETAILS:C.Warehouse.asc::,}
@{REPORT CONSUMPTION DETAILS:I.GroupCode.asc::,}
>>$1
>$2
{REPORT CONSUMPTION DETAILS:C.Name.asc,C.Consumption,C.Unit:(PCW=$1) and I.GroupCode="$2"}
2 Likes
Thank you, this code nice working.
1 Like
MaxUhu
January 26, 2026, 6:22am
15
That works great, I adjusted it a bit more for me, however I am now stuck on restricting it to just 1 Warehouse … so I does not show the other Warehouses as well, as otherwise its 5 pages with just Group names…
[Inventory Consumption by Warehouse:4, 2, 2, 2, 2]
|QTY|Unit|Cost|Total
@{REPORT CONSUMPTION DETAILS:C.Warehouse.asc::,}
@{REPORT CONSUMPTION DETAILS:I.GroupCode.asc::,}
>>$1
>$2
{REPORT CONSUMPTION DETAILS:C.Name.asc,C.Consumption.desc,C.Unit,C.Cost,[([C.Consumption]*[C.Cost]).Sum] ,:(PCW=$1) && C.Consumption>0 and I.GroupCode=“$2”}
>TOTAL COST|||{REPORT CONSUMPTION DETAILS:[([C.Consumption]*[C.Cost]).Sum],:(PCW=$1) && C.Consumption>0 and I.GroupCode=“$2”}
I tried replacing the (PCW=$1) with (PCW=Beach Bar) which worked in another report for me, but somehow here it does not work, as it then just puts the same consumption in every single warehouse…
Anybody has some advice?
Thanks
Max
Memo
January 26, 2026, 7:15pm
16
I am terrible with reporting in SambaPOS. I am almost 100% certain that the report I shared with you was originally copied from somewhere else.
Have a look at this thread:
Hey guys,
I am learning custom reports here and seem to be stuck at this, cant seem to find a way to show Inventory report but only for 1 specific warehouse.
So if I have 3 warehouses I dont want them to all appear in a single report, I want 3 reports, one for each warehouse.
Could anyone show me the syntax that I should use for that? Thanks.
what I googled:
"CONSUMPTION DETAILS" "warehouse" site:forum.sambapos.com
1 Like
MaxUhu
January 28, 2026, 7:02am
17
I know the feeling, I am struggling with this quite heavily, but was lucky to find it via an answer to another of my questions…
Just in case somebody runs into the same issue, here is the solution:
[Inventory Consumption Costs for Kitchen:6, 2, 2, 2, 2]
|QTY|Unit|Cost|Total
@{REPORT CONSUMPTION DETAILS:C.Warehouse.asc:(PCW=WAREHOUSE NAME HERE):{0}:,}
@{REPORT CONSUMPTION DETAILS:I.GroupCode.asc::,}
>>$1
>$2
{REPORT CONSUMPTION DETAILS:C.Name.asc,C.Consumption.desc,C.Unit,C.Cost,[([C.Consumption]*[C.Cost]).Sum],:(PCW=$1) && C.Consumption>0 and I.GroupCode="$2"}
>>TOTAL COST|||{REPORT CONSUMPTION DETAILS:[([C.Consumption]*[C.Cost]).Sum],:(PCW=$1) && C.Consumption>0 and I.GroupCode="$2"}
Thanks for the help and the tip…
Max
1 Like