Problem/Motivation
Right now, even though the menu item for "Stock transactions" from the module says it's the place to create and view transactions, it actually only supports creating them. In fact, it goes straight to the transaction add form, which means it probably shouldn't be under "Configuration" at all, but we can defer moving this till later. At the very least, we should see a View of transactions here.
Proposed resolution
This should be a View in reverse chronlogical order showing transaction summaries and also allowing you to filter / navigate through to see all transactions related to another transaction. I'd propose something like the following columns:
- Transaction ID
- Short date
- Product label (linked) with the SKU and product variation label beneath it (e.g., "
ABL-XLA Blue Leg X-Large") - Warehouse
- Type
- Quantity
- Unit cost
- Note
- Operations
This should have sorting enabled on the date and exposed filters for date range, product, product variation, warehouse, and parent transaction ... then an oeprations link to view the full history of transactions related to a particular parent. That needs some more thinking, to be honest, as if you filter only to show all transactions whose "related_tid" field is X, then you don't have the context for that "parent" transaction. Maybe that means we should have a header that only appears when "related_tid" is set and renders the parent transaction details into the header?
Comments
Comment #2
rszrama commentedComment #3
guy_schneerson commentedYes, that part can do with a refresh. It was primarily created to allow for creating transactions and has two parts (pages)
The transactions table does have views integration so this should be easy, but may be a good opportunity to move it out from config into its own section under Commerce with options for: