Currently, an admin user can access the receipt page via the corresponding operation available on the admin Orders list page. It would be useful and consistent to have that operation available on the POS Order Lookup form, especially since some users, such as cashiers, may not have access to the Orders page; to find the receipt for a POS order they would first have to go to the order's view page and then click the Show receipt button.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | commerce_pos-receipts-operation-on-lookup-form-2984967-7.patch | 4.78 KB | gmem |
| #5 | screen.jpg | 218.71 KB | smccabe |
Comments
Comment #2
krystalcode commentedPatch provides a "Show receipt" operation on the lookup table.
Additionally, it renames the column name from "Action" to "Operations" to be consistent with the convention in both core and commerce. Feel free to rename it to "Actions" if that is the preference.
Lastly, I added an access check to the Edit operation as well.
Comment #4
gmem commentedInteresting that the patch crashes on the CI[1], manages to pass just fine on my local machine. Works as described.
Comment #5
smccabe commentedDoesn't pass on my local, the CI runs the newest version of drupal, so possibly it passes on an older version.
The error the test outputs is attached.
Comment #6
smccabe commentedComment #7
gmem commentedFixed test, looks like clickLink() couldn't find the right Edit link. Also loaded commerce_pos_receipt in PosReturnFormTest. Wasn't able to replicate the SetOrdercustomerTest failure. (also small reroll)
Comment #8
gmem commentedComment #10
smccabe commented