Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purchase_last_price_info show oldest purchase price #2077

Open
paulius-sladkevicius opened this issue Oct 31, 2023 · 1 comment
Open

purchase_last_price_info show oldest purchase price #2077

paulius-sladkevicius opened this issue Oct 31, 2023 · 1 comment
Labels

Comments

@paulius-sladkevicius
Copy link

Module

purchase_last_price_info

Describe the bug

Last Purchase Price on the product is the oldest, not the latest price.

To Reproduce

Affected versions: tested with v14 but should affect and others

Steps to reproduce the behavior:

  1. Create RFQ with a product price $10.0, confirm PO
  2. Create another RFQ with a same product price $9.0, confirm PO
  3. Check "Last Purchase Price" on the product. You should see $10.0 instead $9.0

Expected behavior

"Last Purchase Price" shows latest PO line purchase price

2023-10-31 10-45

@paulius-sladkevicius
Copy link
Author

I think an issue exists in this place line as it takes a first entry, but based on PO line sorting it sorts by oldest PO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant