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:

  1. Transaction ID
  2. Short date
  3. Product label (linked) with the SKU and product variation label beneath it (e.g., "ABL-XL A Blue Leg X-Large")
  4. Warehouse
  5. Type
  6. Quantity
  7. Unit cost
  8. Note
  9. 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

rszrama created an issue. See original summary.

rszrama’s picture

Title: Make the "Stokc transactions" page an actual View of transactions » Make the "Stock transactions" page an actual View of transactions
guy_schneerson’s picture

Yes, that part can do with a refresh. It was primarily created to allow for creating transactions and has two parts (pages)

  1. admin/commerce/config/stock/transactions1 - Search for a product variation
  2. admin/commerce/config/stock/transactions2 - Create a transaction for a selected variation (can be linked to directly from the variation page if I am not mistaken)

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:

  • Create transaction - Product variation view to replace the transactions1 page
  • View transactions - Stock Transactions view