In the Inventory table add a transaction field that filters all the ScannerTransaction that referred to this inventory entry modification.
The relationship will be used in huron API to retrieve the inventory id transactions (in /api/inventory/<id>/transactions).
So far the following code snippet is used to filter the ScannerTransaction that refer to a specific inventory entry.
In the
Inventory
table add atransaction
field that filters all theScannerTransaction
that referred to this inventory entry modification.The relationship will be used in huron API to retrieve the inventory
id
transactions (in/api/inventory/<id>/transactions
). So far the following code snippet is used to filter theScannerTransaction
that refer to a specific inventory entry.This snippet should be added as a relationship of the
Inventory
table.