#### Back office improvement: Product transaction history on sales documents
A button has been added to each row of a sales document. Clicking the button opens a list of 10 most recent transactions containing that product.
The list includes all sales documents, except prepayment invoices. If customer has been issued both a waybill and an invoice, the list displays the waybill.
Erply already has a similar feature, but the previously-existing list only shows previous sales made to the same customer. The new list displays all transactions regardless of customer.
On sales document rows (Invoices, Orders, Quotes), there is a new icon to see product’s transaction history. The button is located next to product’s name.
For unconfirmed documents:
For confirmed documents:
When clicking on that icon, the last 10 transactions made with this product appear:
As seen from the previous picture, the box contains the product’s name, product’s EAN/UPC and all the transactions made with this product. Transaction row shows all the important information - document type, document number, date, amount sold, price and warehouse.
Documents are ordered from newest to oldest.
It is also possible to look each document more closely - click on the document number and the document opens in a new tab.
Under the EAN/UPC code, there is also mentioned: Click on a price to select it, which means that if you click on any of the prices in transaction history window, the current price on your active document is replaced with the price that you clicked on.
The same can be done by navigating to the desired row with up and down arrows on your keyboard and pressing Enter. Red border indicates the currently selected row.
For example: When you added a product, which price is 10€, but in transaction history you can find a transaction, where the price for the product was 7€. You can click on 7 and the transaction history window closes. Now on your current document, the price is 7€ instead of 10€.
It is possible to move the box by clicking on the header bar and dragging it with mouse.
The described functionality works both in Classic back office and Berlin back office.