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

fix: manual depr entry not updating asset value [v13] #33890

Merged
merged 2 commits into from
Jan 31, 2023
Merged

fix: manual depr entry not updating asset value [v13] #33890

merged 2 commits into from
Jan 31, 2023

Conversation

anandbaburajan
Copy link
Contributor

@anandbaburajan anandbaburajan commented Jan 30, 2023

  1. When manual depreciation entries (created using the Create Depreciation Entry option in the Manage dropdown of assets with calculate_depreciation not checked) are submitted, the value of the asset isn't updated, so fixed that.
  2. We have quite a few functions which (sometimes incorrectly) performed the same task of fetching an asset's current value after depreciation, so refactored all of them and now there's just one function.
  3. The fixed asset register and the chart on asset documents weren't reflecting manual depr entries, so fixed them.
  4. Wrote a patch to update value of all assets which have manual depr entries created for them.
  5. In the fixed asset report register, assets with finance books weren't filtered properly resulting in an TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType' error, so fixed it.
  6. Fixed asset register report was throwing a AttributeError: 'list' object has no attribute 'strip' error because db.get_value doesn't support list based and ("is", "set")-style filters on v13, so fixed it.

@deepeshgarg007 deepeshgarg007 merged commit f5efb20 into frappe:version-13-hotfix Jan 31, 2023
frappe-pr-bot pushed a commit that referenced this pull request Jan 31, 2023
# [13.45.0](v13.44.0...v13.45.0) (2023-01-31)

### Bug Fixes

* disposal_was_made_on_original_schedule_date ([939a312](939a312))
* enable customs in Selling Workpace by default ([#33853](#33853)) ([54c1642](54c1642))
* Fetch commission rate from sales partner ([#33851](#33851)) ([3425a3b](3425a3b))
* **gp:** fetch buying amount from dn related to so ([be5edd3](be5edd3))
* item rate not fetching ([bb56415](bb56415))
* manual depr entry not updating asset value [v13] ([#33890](#33890)) ([f5efb20](f5efb20))
* use correct filter name in `item_query` (backport [#33814](#33814)) ([#33817](#33817)) ([b38ad66](b38ad66))

### Features

* **gp:** test for inv and dn related via so ([b72a35a](b72a35a))

### Performance Improvements

* show update items dialog ([0ff5099](0ff5099))
* Timeout while doing payment reconciliation (v13) ([#33818](#33818)) ([4bf3e31](4bf3e31))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 13.45.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

SaiFi0102 pushed a commit to ServerManagementERPNext/erpnext that referenced this pull request Feb 22, 2023
SaiFi0102 pushed a commit to ServerManagementERPNext/erpnext that referenced this pull request Feb 22, 2023
# [13.45.0](frappe/erpnext@v13.44.0...v13.45.0) (2023-01-31)

### Bug Fixes

* disposal_was_made_on_original_schedule_date ([939a312](frappe@939a312))
* enable customs in Selling Workpace by default ([frappe#33853](frappe#33853)) ([54c1642](frappe@54c1642))
* Fetch commission rate from sales partner ([frappe#33851](frappe#33851)) ([3425a3b](frappe@3425a3b))
* **gp:** fetch buying amount from dn related to so ([be5edd3](frappe@be5edd3))
* item rate not fetching ([bb56415](frappe@bb56415))
* manual depr entry not updating asset value [v13] ([frappe#33890](frappe#33890)) ([f5efb20](frappe@f5efb20))
* use correct filter name in `item_query` (backport [frappe#33814](frappe#33814)) ([frappe#33817](frappe#33817)) ([b38ad66](frappe@b38ad66))

### Features

* **gp:** test for inv and dn related via so ([b72a35a](frappe@b72a35a))

### Performance Improvements

* show update items dialog ([0ff5099](frappe@0ff5099))
* Timeout while doing payment reconciliation (v13) ([frappe#33818](frappe#33818)) ([4bf3e31](frappe@4bf3e31))
BevanTony1 pushed a commit to BevanTony1/eso-erpnext that referenced this pull request Mar 23, 2023
# [13.45.0](frappe/erpnext@v13.44.0...v13.45.0) (2023-01-31)

### Bug Fixes

* disposal_was_made_on_original_schedule_date ([939a312](frappe@939a312))
* enable customs in Selling Workpace by default ([frappe#33853](frappe#33853)) ([54c1642](frappe@54c1642))
* Fetch commission rate from sales partner ([frappe#33851](frappe#33851)) ([3425a3b](frappe@3425a3b))
* **gp:** fetch buying amount from dn related to so ([be5edd3](frappe@be5edd3))
* item rate not fetching ([bb56415](frappe@bb56415))
* manual depr entry not updating asset value [v13] ([frappe#33890](frappe#33890)) ([f5efb20](frappe@f5efb20))
* use correct filter name in `item_query` (backport [frappe#33814](frappe#33814)) ([frappe#33817](frappe#33817)) ([b38ad66](frappe@b38ad66))

### Features

* **gp:** test for inv and dn related via so ([b72a35a](frappe@b72a35a))

### Performance Improvements

* show update items dialog ([0ff5099](frappe@0ff5099))
* Timeout while doing payment reconciliation (v13) ([frappe#33818](frappe#33818)) ([4bf3e31](frappe@4bf3e31))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants