Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestions needed: product filter (based on relation)
#1
Hello,
We have a need to filter out products (and later detele them) which were not used (not active, were not quoted, not ordered and not sold).
Would it be possible to do this through interface?
Is it possible to have custom filter condition witch looks if the product has any relation?

Thanks
Reply
#2
Since those are not directly related i don't see how you could display them in filters. Maybe if you get those values in some custom fields on products you could then filter on those.
Reply
#3
There is currently no way to do that (yet). It is something that has appeared in the past but we have never gotten to it.

I usually just get the IDs from the database and use them to delete the products either with a web service loop if I need the workflows to trigger or with a direct DB update if not.
Joe
TSolucio
Reply
#4
OK, clear,
I added check box custom field to product in order to to mark "used" ones.
Then added workflow to mark product "used" when Inventory details is creaded for that product.

So for all new (this year imported) products i will be able to know which of them where not used after one year, when new pricelists were available, so not used ones, coudl be deleted, because there is no need to keep them in the system.

So now i will build SQL querry with the relation existance at vtiger_inventoryrproductelate table checking and will mark the matching records as "used" once.

But it would be nice to have this type of filter, let it be a custom query type or something similar.
Reply
#5
working on it
Joe
TSolucio
Reply
#6
(01-14-2021, 09:01 PM)joebordes Wrote: working on it

Perfect, hope this future option will helps others
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)