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: apply discount on item after applying price list #36125

Merged
merged 1 commit into from
Jul 25, 2023
Merged

fix: apply discount on item after applying price list #36125

merged 1 commit into from
Jul 25, 2023

Conversation

anandbaburajan
Copy link
Contributor

When a user changes the exchange rate for a currency in a SI, the rate of the items are automatically updated. But the items which have a discount applied get an incorrect rate because the discount isn't applied again after the rate update. This is due to the apply_price_list function (which is called from conversion_rate when the exchange rate changes) not applying discount once the rate changes, so fixed that.

@anandbaburajan anandbaburajan added backport develop instructs mergify to frontport PR to develop branch backport version-14-hotfix backport to version 14 labels Jul 14, 2023
@anandbaburajan anandbaburajan merged commit bde9e89 into frappe:version-13-hotfix Jul 25, 2023
3 checks passed
mergify bot pushed a commit that referenced this pull request Jul 25, 2023
(cherry picked from commit bde9e89)

# Conflicts:
#	erpnext/public/js/controllers/transaction.js
#	erpnext/selling/sales_common.js
mergify bot pushed a commit that referenced this pull request Jul 25, 2023
(cherry picked from commit bde9e89)

# Conflicts:
#	erpnext/public/js/controllers/transaction.js
#	erpnext/selling/sales_common.js
@anandbaburajan anandbaburajan removed backport develop instructs mergify to frontport PR to develop branch backport version-14-hotfix backport to version 14 labels Jul 25, 2023
frappe-pr-bot pushed a commit that referenced this pull request Jul 26, 2023
## [13.52.7](v13.52.6...v13.52.7) (2023-07-26)

### Bug Fixes

* allow both custodian and location while creating asset (backport [#36263](#36263)) ([#36270](#36270)) ([e4f28e8](e4f28e8))
* apply discount on item after applying price list ([#36125](#36125)) ([bde9e89](bde9e89))
* group by in fixed asset register (copy [#36310](#36310)) ([#36312](#36312)) ([a5e1c47](a5e1c47))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 13.52.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@thida-bcn
Copy link

When a user changes the exchange rate for a currency in a SI, the rate of the items are automatically updated. But the items which have a discount applied get an incorrect rate because the discount isn't applied again after the rate update. This is due to the apply_price_list function (which is called from conversion_rate when the exchange rate changes) not applying discount once the rate changes, so fixed that.

there was problem with pricing rule, before update version discount apply well
after updating patch screen refresh frequently and discount amount change

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 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