Skip to content

fix: incorrect valuation rate due to positive qty (backport #47686) #47688

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 22, 2025

In the get_warehouse_details call within the Asset Capitalization doctype's client script, the quantity was being passed as a positive value using qty: flt(item.stock_qty). This caused an issue where incoming rates were fetched incorrectly.

Before

REC-20250522152232.mp4

After

REC-20250522155333.mp4

This is an automatic backport of pull request #47686 done by [Mergify](https://mergify.com).

@khushi8112 khushi8112 merged commit 62aa1cd into version-15-hotfix May 22, 2025
7 checks passed
@khushi8112 khushi8112 deleted the mergify/bp/version-15-hotfix/pr-47686 branch May 22, 2025 10:47
frappe-pr-bot pushed a commit that referenced this pull request May 27, 2025
# [15.63.0](v15.62.0...v15.63.0) (2025-05-27)

### Bug Fixes

* absence of rounding causing discrepancy in the valuation rate calculation (backport [#47700](#47700)) ([#47711](#47711)) ([f41bcc6](f41bcc6))
* add no_copy for lost reasons ([db97dbd](db97dbd))
* create Quality Inspection button not showing (backport [#47746](#47746)) ([#47750](#47750)) ([60dfe36](60dfe36))
* display stock value in currency format in chart warehouse wise stock value ([ba009f4](ba009f4))
* do not update same field twice ([63ba27e](63ba27e))
* exchange rate not being fetched when creating supplier quotation from MR ([2c22615](2c22615))
* filter of item for manufacture type material request (backport [#47712](#47712)) ([#47717](#47717)) ([2961e59](2961e59))
* handle multiselect filters for tree doctypes in Customer Ledger Summary Report ([f783bf6](f783bf6))
* Headline rendered twice on first save ([f94a14c](f94a14c))
* include rejected amount in PI/PR overbilling validation logic ([#47572](#47572)) ([cd1c10a](cd1c10a))
* incorrect inventory dimension for material transfer (backport [#47592](#47592)) ([#47644](#47644)) ([9a78283](9a78283))
* incorrect valuation rate due to positive qty (backport [#47686](#47686)) ([#47688](#47688)) ([62aa1cd](62aa1cd))
* linter ([c44493f](c44493f))
* Linter (due to conflicts resolved on gh) ([37f4cf5](37f4cf5))
* Linters ([91e167f](91e167f))
* made changes specifically for value adjustment entry ([74e29f1](74e29f1))
* Merge conflicts ([3deb11e](3deb11e))
* only include advances within the tcs period ([a2f5975](a2f5975))
* party account based on party type's account type ([d3d22f6](d3d22f6))
* patch to rename group_by filter in custom reports (backport [#47709](#47709)) ([#47730](#47730)) ([a137944](a137944))
* patch to set status cancelled for already cancelled pos invoices (backport [#47725](#47725)) ([#47759](#47759)) ([4fd1af2](4fd1af2))
* **portal:** User cannot create 0 qty SQ from RFQ ([f95a3f5](f95a3f5))
* pos invoice status not updating on cancel (backport [#47556](#47556)) ([#47657](#47657)) ([db318a4](db318a4))
* prettier ([0f22646](0f22646))
* prettier ([2c8db09](2c8db09))
* Relabel unit price settings for more clarity ([8891f46](8891f46))
* setting paid amount to 0 when is_paid is unchecked in purchase invoice ([895231a](895231a))
* show general ledger in doc currency in Process Statement Of Accounts ([b3cbbf2](b3cbbf2))
* skip drop ship items (backport [#47670](#47670)) ([#47718](#47718)) ([e058885](e058885))
* skip last purchase rate for free item (backport [#47693](#47693)) ([#47696](#47696)) ([f17b7b5](f17b7b5))
* space ([fe78bb6](fe78bb6))
* space ([194e41a](194e41a))
* translate_pos_buttons ([01b0d10](01b0d10))
* Treat rows as Unit Price rows only until the qty is 0 ([d963601](d963601))
* typo in TREE_DOCTYPES list "Terrirtory" should be "Territory" ([3d2d1ba](3d2d1ba))
* updated value after depreciation after value adjustment ([8ed6e98](8ed6e98))
* use pypika object `LiteralValue` for adding match conditions ([fb2df77](fb2df77))

### Features

* add validation for Item Tax Template on rate change ([92d5e91](92d5e91))
* Unit Price Contract ([33366fc](33366fc))
* Unit Price Items in Buying (RFQ, SQ, PO) ([f8fa775](f8fa775))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant