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 #2133

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal 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

@ruchamahabal ruchamahabal merged commit f05c109 into frappe:develop Aug 29, 2024
7 checks passed
ruchamahabal added a commit that referenced this pull request Aug 29, 2024
…2133

fix: query for payroll cost centers should only consider the latest salary assignment (backport #2133)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant