DF Model - Exclude API OR filters
• Modified the default API filters to use where_not_in
when excluding results.
To Test: Use API endpoint in Pulse: https://pulse.di.dev/api/v1/purchase_orders?status=%3C%3Ecompleted||cancelled&type=master&limit=15&q=002.
Change the q
parameter as necessary. Ensure master purchase orders with a status of completed OR cancelled are excluded.
Test the normal OR filters still work correctly.
You can view the query being run by adding a last query statement to line 2877
of DF_Model.php
.
Commit should be cherry-picked into master if/when accepted.