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: query for payroll cost centers should only consider the latest salary assignment (backport #2133) #2134

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 29, 2024

Steps to replicate

  1. Salary Structure Assignment 1 (old) with Main - F cost center

cost-center-1

  1. Assignment 2 with Engineering & Support as cost centers

image

  1. Accrual entry considers all 3 cost centers leading to double booking of the payroll amount:

image

Fix

Rectify the query for fetching payroll cost centers to only consider the latest salary structure assignment. Currently it fetches child table records of all assignments with matching structure

After:

JV-after

Regression from: 2793f96
Support ticket: https://support.frappe.io/helpdesk/tickets/20032
A mismatch in Salary Register & Profit & Loss Accounts led to this discovery


This is an automatic backport of pull request #2133 done by Mergify.

@mergify mergify bot requested a review from ruchamahabal as a code owner August 29, 2024 11:28
@ruchamahabal ruchamahabal merged commit 1a786db into version-15-hotfix Aug 29, 2024
8 checks passed
@mergify mergify bot deleted the mergify/bp/version-15-hotfix/pr-2133 branch August 29, 2024 11:55
@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 15.27.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants