#savedsearch query
Hello Everyone,
I need help in achieving following.
Can Anyone guide me?
Create a Customer Saved Search with Columns for Qty Purchased Last Month | Month Before | 2 Month Ago.
I have managed to get the Quantities fine, but somehow the results are includeding the Raw Materials Item and Service Items from Assembly Products that have been sold on invoices.
Can anyone think of a way to avoid them?
Example Formula:
case when {transaction.type} in ('Invoice','Credit Memo') then DECODE(TO_CHAR({today},'MM') - TO_CHAR({transaction.trandate},'MM') + 12*(TO_CHAR({today},'YYYY')-TO_CHAR({transaction.trandate},'YYYY')),0,{transaction.quantity}) else null end
Thanks in Advance
Mrudul