Hi guys,
I am trying to make a better report sheet for purchases, groups, supplier names etc. Everything is working normally but I cant list T.ItemGroup so I decided to use I.GroupCode. GroupCode lists warehouse codes (right?) but the items inside arent listed properly. It basically just repeats them over and over again under a different groupcode.
In the script below I posted the listing report I am trying to achieve and then Actual Purchases (which works) to double check the values.
@{REPORT INVENTORY TRANSACTION DETAILS:I.GroupCode,T.Name,T.TotalPrice::{0}:,}
[$1 Purchases:2, 1,1,1, 1]
{REPORT INVENTORY TRANSACTION DETAILS:T.Name,[T.Quantity.Sum],T.Unit,[T.TotalPrice.Sum]/[T.Quantity.Sum],T.TotalPrice.Sum.desc::I.GroupCode="$1"}
>Total||||{REPORT INVENTORY TRANSACTION DETAILS:T.TotalPrice.Sum.desc:I.GroupCode="$1"}
[Actual Purchases:2,1,1,1, 1]
>Items|QTY|Unit|Price|Total
{REPORT INVENTORY TRANSACTION DETAILS:T.Name,[T.Quantity.Sum],T.Unit,[T.TotalPrice.Sum]/[T.Quantity.Sum],T.TotalPrice.Sum.desc}
>Total||||{REPORT INVENTORY TRANSACTION DETAILS:T.TotalPrice.Sum}
This is the result. As you can see same items in different groupcodes. Interestingly enough total prices are correct and match the groups haha.
What can I use instead of I.GroupCode and T.ItemGroup? Or could someone show me all the inventory transaction details fields, expressions and possible tags?