GetInventory API accepts 'omit_input' to take into account only incoming movements and 'omit_output' to take into account only outgoing movement from a node.
Table of Contents
This area where we want to exclude internal movements from is defined by membership of given categories, using node_category and/or section_category (or specifying node/section directly using their
uids), we don't find it necessary to add payment or function categories here, especially because it would require adding new columns to stock table.
The API proposal is: