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(Salary Structure Assignment): validate cost center company on server-side #2445

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

ruchamahabal
Copy link
Member

There is a filter for cost center selection based on company in Salary Structure Assignment already. But that won't work when assignments are created via data import.

This error doesn't get caught until accrual entry for payroll is attempted and it fails silently:

ValidationError: Journal Entry ACC-JV-2024-00060: Cost Center Executives - ADAED does not belong to Company Alchemative DMCC

Add a server-side validation in Salary Structure Assignment itself:

image

@ruchamahabal ruchamahabal merged commit a3bc4e5 into frappe:develop Nov 25, 2024
8 checks passed
mergify bot pushed a commit that referenced this pull request Nov 25, 2024
…ver-side (#2445)

(cherry picked from commit a3bc4e5)

# Conflicts:
#	hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.py
mergify bot pushed a commit that referenced this pull request Nov 25, 2024
ruchamahabal added a commit that referenced this pull request Nov 26, 2024
…ver-side (backport #2445) (#2450)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
ruchamahabal pushed a commit that referenced this pull request Nov 26, 2024
…ver-side (backport #2445) (#2449)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
fix(Salary Structure Assignment): validate cost center company on server-side (#2445)
frappe-pr-bot pushed a commit that referenced this pull request Nov 26, 2024
## [14.35.2](v14.35.1...v14.35.2) (2024-11-26)

### Bug Fixes

* filters on vehicle expenses report (backport [#2440](#2440)) ([#2446](#2446)) ([6d35f11](6d35f11))
* ignore linked ledger entry record on employee advance cancellation (backport [#2432](#2432)) ([#2434](#2434)) ([8058d74](8058d74))
* **Salary Structure Assignment:** validate cost center company on server-side (backport [#2445](#2445)) ([#2449](#2449)) ([51831cb](51831cb))
frappe-pr-bot pushed a commit that referenced this pull request Nov 26, 2024
## [15.35.3](v15.35.2...v15.35.3) (2024-11-26)

### Bug Fixes

* Editable Letter Head field in Salary Structure Doctype (backport [#2436](#2436)) ([#2443](#2443)) ([f948a36](f948a36))
* filters on vehicle expenses report (backport [#2440](#2440)) ([#2447](#2447)) ([4e4425c](4e4425c))
* ignore linked ledger entry record on employee advance cancellation (backport [#2432](#2432)) ([#2433](#2433)) ([e1d9514](e1d9514))
* redundant fetching of Interviewers in Interview ([#2441](#2441)) ([62cd631](62cd631))
* **Salary Structure Assignment:** validate cost center company on server-side (backport [#2445](#2445)) ([#2450](#2450)) ([7f5e969](7f5e969))
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