Good morning everyone! I'm trying to create a sav...
# general
k
Good morning everyone! I'm trying to create a saved search to show the Sales Order amount and Invoice amount for each Location we have for these time periods: Yesterday, MTD, YTD. So for example there would be a column Sales Order Yesterday and Invoice Yesterday and so on for the rest of the periods. I have it almost complete with a bunch of formulas. However, I just thought if there was a way to get the internal ID of Sales from the Income Statement? This would help tremendously
m
Like the internal ID of the income account?
k
Yes. More specifically the amount. I know I'm asking for too much, but if there is an Internal ID for the amounts that would be perfect
m
I’m not sure what you mean exactly but this is the formula I would use for this CASE WHEN {type} = ‘Sales Order’ AND {accounttype} = ‘Income’ AND ({today} - 1) = {trandate} THEN {amount} END
The his will validate if the transaction is a sales order and the date is yesterday Then only get the amount from the Income GL line
Then just copy this and change sales order to ‘Invoice’
Then you would make it a summary search using Group for location and SUM for these formulas
To get month to date change the date formula to this instead {trandate} >= LAST_DAY(ADD_MONTHS({today},-1)) + 1 AND {trandate} <= {today}
k
Thank you so much. I'll give this a shot. To clarify to be able to get these amounts on the Income Statement which I believe your formula does 🙂
m
Yes you can’t get those numbers directly. There is no internal reference to that You would have to replicate how that number is calculated (which my formula will do)
k
Perfect! Thank you so much! I really appreciate it 🙂