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: consistent query field name in item wise purchase register with item wise sales register #41927

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

ljain112
Copy link
Contributor

@ljain112 ljain112 commented Jun 17, 2024

The get_tax_accounts function was using the invoice_item.name field, which caused an issue in the purchase register because the item name was aliased as pii_item_name. This discrepancy led to taxes not being calculated correctly in the purchase register. This PR fixes the aliasing issue to ensure proper tax calculation.

Changes Made

  • Removed alias

Impact

  • Accurate tax calculations in the item-wise purchase register.

Testing

  • Verified that taxes are now calculated correctly in both item-wise sales and purchase registers.Item wise purchase rigster report uses same function as item wise sales register.

Support Issue:

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jun 17, 2024
@rohitwaghchaure rohitwaghchaure merged commit 2e5b85c into frappe:develop Jun 17, 2024
16 checks passed
rohitwaghchaure added a commit that referenced this pull request Jun 17, 2024
…-41927

fix: consistent query field name in item wise purchase register with item wise sales register (backport #41927)
@vorasmit vorasmit added backport version-14-hotfix backport to version 14 and removed backport version-14-hotfix backport to version 14 labels Jun 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants