Skip to content

Salary Slip submission failed for Payroll Entry HR-PRUN-2025-00001 ( Need Help Identifying the Exact Issue) #3667

@sammish

Description

@sammish

Information about bug

Dear Team,

There is no journal entry created, but the error seems to be caused by something else and is difficult to identify. Could you please help by showing the exact issue? It would make it easier for us to find and resolve the problem.

Please support.

Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher
Check Error Log 0146rf6jds for more details.

Module

HR, Payroll

Version

Frappe Framework: v15.86.0 (version-15)

ERPNext: v15.83.0 (version-15)

Frappe HR: v15.51.0 (version-15)

Installation method

None

Relevant log output / Stack trace / Full Error Message.

<img width="1209" height="361" alt="Image" src="https://github.com/user-attachments/assets/fd8852bc-8968-41e4-b72b-2bbf4f06fb67" />


Traceback with variables (most recent call last):
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 1565, in submit_salary_slips_for_employees
    payroll_entry.make_accrual_jv_entry(submitted)
      payroll_entry = <PayrollEntry: HR-PRUN-2025-00001 docstatus=1>
      salary_slips = (('Sal Slip/SFS-001/00039', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-002/00045', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-003/00045', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-004/00045', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-005/00045', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-006/00042', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-007/00035', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-008/00035', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-009/00026', 'SFS - Basic Salary-1'), ('Sal Slip/SFS-010/00028', 'SFS - Basic Salary-1'), ('Sal Slip/SFS-011/00045', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-012/00045', 'SFS - Basic Salary-2'), ('Sal Slip/SFS-013/00045', 'SFS - Basic Salary-3'), ('Sal Slip/SFS-014/00045', 'SFS - Basic Salary-3'), ('Sal Slip/SFS-015/00013', 'SFS - Basic Salary-1'))
      publish_progress = False
      submitted = [<SalarySlip: Sal Slip/SFS-001/00039 docstatus=1>, <SalarySlip: Sal Slip/SFS-002/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-003/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-004/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-005/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-006/00042 docstatus=1>, <SalarySlip: Sal Slip/SFS-007/00035 docstatus=1>, <SalarySlip: Sal Slip/SFS-008/00035 docstatus=1>, <SalarySlip: Sal Slip/SFS-009/00026 docstatus=1>, <SalarySlip: Sal Slip/SFS-010/00028 docstatus=1>, <SalarySlip: Sal Slip/SFS-011/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-012/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-013/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-014/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-015/00013 docstatus=1>]
      unsubmitted = []
      count = 15
      entry = ('Sal Slip/SFS-015/00013', 'SFS - Basic Salary-1')
      salary_slip = <SalarySlip: Sal Slip/SFS-015/00013 docstatus=1>
      e = ValidationError('Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher')
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 595, in make_accrual_jv_entry
    self.make_journal_entry(
      self = <PayrollEntry: HR-PRUN-2025-00001 docstatus=1>
      submitted_salary_slips = [<SalarySlip: Sal Slip/SFS-001/00039 docstatus=1>, <SalarySlip: Sal Slip/SFS-002/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-003/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-004/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-005/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-006/00042 docstatus=1>, <SalarySlip: Sal Slip/SFS-007/00035 docstatus=1>, <SalarySlip: Sal Slip/SFS-008/00035 docstatus=1>, <SalarySlip: Sal Slip/SFS-009/00026 docstatus=1>, <SalarySlip: Sal Slip/SFS-010/00028 docstatus=1>, <SalarySlip: Sal Slip/SFS-011/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-012/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-013/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-014/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-015/00013 docstatus=1>]
      employee_wise_accounting_enabled = 0
      earnings = {('5294 - Food Allowance - SFS', 'Operations - SFS'): 450.0, ('5298 - Over Time - SFS', 'Operations - SFS'): 2168.46, ('5291 - Basic Salary - SFS', 'Operations - SFS'): 16500.0, ('5291 - Basic Salary - SFS', 'Administration - SFS'): 22000.0}
      deductions = {('5309 - Absent - SFS', 'Operations - SFS'): 75.0, ('5291 - Basic Salary - SFS', 'Administration - SFS'): 6000.0}
      precision = 2
      accounts = [{'account': '5294 - Food Allowance - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'debit_in_account_currency': 450.0, 'doctype': 'Journal Entry Account'}, {'account': '5298 - Over Time - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'debit_in_account_currency': 2168.46, 'doctype': 'Journal Entry Account'}, {'account': '5291 - Basic Salary - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'debit_in_account_currency': 16500.0, 'doctype': 'Journal Entry Account'}, {'account': '5291 - Basic Salary - SFS', 'exchange_rate': 1.0, 'cost_center': 'Administration - SFS', 'project': None, 'debit_in_account_currency': 22000.0, 'doctype': 'Journal Entry Account'}, {'account': '5309 - Absent - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'credit_in_account_currency': 75.0, 'doctype': 'Journal Entry Account'}, {'account': '5291 - Basic Salary - SFS', 'exchange_rate'...
      currencies = ['SAR']
      payable_amount = 28143.46
      accounting_dimensions = []
      company_currency = 'SAR'
  File "apps/hrms/hrms/payroll/doctype/payroll_entry/payroll_entry.py", line 640, in make_journal_entry
    journal_entry.submit()
      self = <PayrollEntry: HR-PRUN-2025-00001 docstatus=1>
      accounts = [{'account': '5294 - Food Allowance - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'debit_in_account_currency': 450.0, 'doctype': 'Journal Entry Account'}, {'account': '5298 - Over Time - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'debit_in_account_currency': 2168.46, 'doctype': 'Journal Entry Account'}, {'account': '5291 - Basic Salary - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'debit_in_account_currency': 16500.0, 'doctype': 'Journal Entry Account'}, {'account': '5291 - Basic Salary - SFS', 'exchange_rate': 1.0, 'cost_center': 'Administration - SFS', 'project': None, 'debit_in_account_currency': 22000.0, 'doctype': 'Journal Entry Account'}, {'account': '5309 - Absent - SFS', 'exchange_rate': 1.0, 'cost_center': 'Operations - SFS', 'project': None, 'credit_in_account_currency': 75.0, 'doctype': 'Journal Entry Account'}, {'account': '5291 - Basic Salary - SFS', 'exchange_rate'...
      currencies = ['SAR']
      payroll_payable_account = '2120 - Payroll Payable - SFS'
      voucher_type = 'Journal Entry'
      user_remark = 'Accrual Journal Entry for salaries from 2024-01-01 to 2024-01-31'
      submitted_salary_slips = [<SalarySlip: Sal Slip/SFS-001/00039 docstatus=1>, <SalarySlip: Sal Slip/SFS-002/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-003/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-004/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-005/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-006/00042 docstatus=1>, <SalarySlip: Sal Slip/SFS-007/00035 docstatus=1>, <SalarySlip: Sal Slip/SFS-008/00035 docstatus=1>, <SalarySlip: Sal Slip/SFS-009/00026 docstatus=1>, <SalarySlip: Sal Slip/SFS-010/00028 docstatus=1>, <SalarySlip: Sal Slip/SFS-011/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-012/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-013/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-014/00045 docstatus=1>, <SalarySlip: Sal Slip/SFS-015/00013 docstatus=1>]
      submit_journal_entry = True
      employee_wise_accounting_enabled = 0
      multi_currency = 0
      journal_entry = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
  File "apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 177, in submit
    return self._submit()
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
  File "apps/frappe/frappe/model/document.py", line 1080, in _submit
    return self.save()
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
  File "apps/frappe/frappe/model/document.py", line 378, in save
    return self._save(*args, **kwargs)
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      args = ()
      kwargs = {}
  File "apps/frappe/frappe/model/document.py", line 431, in _save
    self.run_post_save_methods()
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      ignore_permissions = None
      ignore_version = None
  File "apps/frappe/frappe/model/document.py", line 1180, in run_post_save_methods
    self.run_method("on_submit")
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
  File "apps/frappe/frappe/model/document.py", line 1011, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      args = ()
      kwargs = {}
      fn = <function Document.run_method.<locals>.fn at 0x7f3e6b88ecb0>
      method = 'on_submit'
  File "apps/frappe/frappe/model/document.py", line 1371, in composer
    return composed(self, method, *args, **kwargs)
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      args = ()
      kwargs = {}
      hooks = [<function update_payment_for_expense_claim at 0x7f3e6d6575b0>, <function update_full_and_final_statement_status at 0x7f3e6aed0820>, <function update_salary_withholding_payment_status at 0x7f3e6b950550>]
      method = 'on_submit'
      doc_events = {'*': {'on_update': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.core.doctype.file.utils.attach_files_to_document', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply', 'frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date', 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type', 'frappe.search.sqlite_search.update_doc_index'], 'after_rename': ['frappe.desk.notifications.clear_doctype_notifications'], 'on_cancel': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply'], 'on_trash': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.search.sqlite_search.delete_doc_index'...
      handler = 'hrms.payroll.doctype.salary_withholding.salary_withholding.update_salary_withholding_payment_status'
      composed = <function Document.hook.<locals>.compose.<locals>.runner at 0x7f3e6b88c700>
      compose = <function Document.hook.<locals>.compose at 0x7f3e6b88e8c0>
      f = <function Document.run_method.<locals>.fn at 0x7f3e6b88ecb0>
  File "apps/frappe/frappe/model/document.py", line 1353, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      method = 'on_submit'
      args = ()
      kwargs = {}
      add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7f3e6b88e950>
      fn = <function Document.run_method.<locals>.fn at 0x7f3e6b88ecb0>
      hooks = (<function update_payment_for_expense_claim at 0x7f3e6d6575b0>, <function update_full_and_final_statement_status at 0x7f3e6aed0820>, <function update_salary_withholding_payment_status at 0x7f3e6b950550>)
  File "apps/frappe/frappe/model/document.py", line 1008, in fn
    return method_object(*args, **kwargs)
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      args = ()
      kwargs = {}
      method_object = <bound method JournalEntry.on_submit of <JournalEntry: SFS-JE-2025-1342 docstatus=1>>
      method = 'on_submit'
  File "apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 193, in on_submit
    self.make_gl_entries()
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
  File "apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 1168, in make_gl_entries
    make_gl_entries(
      self = <JournalEntry: SFS-JE-2025-1342 docstatus=1>
      cancel = 0
      adv_adj = 0
      make_gl_entries = <function make_gl_entries at 0x7f3e6da5aa70>
      merge_entries = 1
      gl_map = [{'company': 'Sattam Farhan Al Shammari Cont. Est.', 'posting_date': '2025-10-21', 'fiscal_year': '2025', 'voucher_type': 'Journal Entry', 'voucher_no': 'SFS-JE-2025-1342', 'remarks': 'Note: Accrual Journal Entry for salaries from 2024-01-01 to 2024-01-31', 'debit': 450.0, 'credit': 0.0, 'debit_in_account_currency': 450.0, 'credit_in_account_currency': 0.0, 'is_opening': 'No', 'party_type': None, 'party': None, 'project': None, 'post_net_value': None, 'voucher_detail_no': None, 'voucher_subtype': 'Journal Entry', 'account': '5294 - Food Allowance - SFS', 'due_date': None, 'against': 'SFS-014, 2120 - Payroll Payable - SFS, SFS-013, 5291 - Basic Salary - SFS, SFS-004, SFS-003, SFS-005, 5309 - Absent - SFS, SFS-010, SFS-001', 'account_currency': 'SAR', 'transaction_currency': 'SAR', 'transaction_exchange_rate': 1, 'debit_in_transaction_currency': 450.0, 'credit_in_transaction_currency': 0.0, 'against_voucher_type': None, 'against_voucher': None, 'cost_center': 'Operations - SFS', 'finance...
      update_outstanding = 'Yes'
  File "apps/erpnext/erpnext/accounts/general_ledger.py", line 48, in make_gl_entries
    save_entries(gl_map, adv_adj, update_outstanding, from_repost)
      gl_map = [{'company': 'Sattam Farhan Al Shammari Cont. Est.', 'posting_date': '2025-10-21', 'fiscal_year': '2025', 'voucher_type': 'Journal Entry', 'voucher_no': 'SFS-JE-2025-1342', 'remarks': 'Note: Accrual Journal Entry for salaries from 2024-01-01 to 2024-01-31', 'debit': 450.0, 'credit': 0.0, 'debit_in_account_currency': 450.0, 'credit_in_account_currency': 0.0, 'is_opening': 'No', 'party_type': None, 'party': None, 'project': None, 'post_net_value': None, 'voucher_detail_no': None, 'voucher_subtype': 'Journal Entry', 'account': '5294 - Food Allowance - SFS', 'due_date': None, 'against': 'SFS-014, 2120 - Payroll Payable - SFS, SFS-013, 5291 - Basic Salary - SFS, SFS-004, SFS-003, SFS-005, 5309 - Absent - SFS, SFS-010, SFS-001', 'account_currency': 'SAR', 'transaction_currency': 'SAR', 'transaction_exchange_rate': 1, 'debit_in_transaction_currency': 450.0, 'credit_in_transaction_currency': 0.0, 'against_voucher_type': None, 'against_voucher': None, 'cost_center': 'Operations - SFS', 'finance...
      cancel = 0
      adv_adj = 0
      merge_entries = 1
      update_outstanding = 'Yes'
      from_repost = False
  File "apps/erpnext/erpnext/accounts/general_ledger.py", line 402, in save_entries
    make_entry(entry, adv_adj, update_outstanding, from_repost)
      gl_map = [{'company': 'Sattam Farhan Al Shammari Cont. Est.', 'posting_date': '2025-10-21', 'fiscal_year': '2025', 'voucher_type': 'Journal Entry', 'voucher_no': 'SFS-JE-2025-1342', 'remarks': 'Note: Accrual Journal Entry for salaries from 2024-01-01 to 2024-01-31', 'debit': 450.0, 'credit': 0.0, 'debit_in_account_currency': 450.0, 'credit_in_account_currency': 0.0, 'is_opening': 'No', 'party_type': None, 'party': None, 'project': None, 'post_net_value': None, 'voucher_detail_no': None, 'voucher_subtype': 'Journal Entry', 'account': '5294 - Food Allowance - SFS', 'due_date': None, 'against': 'SFS-014, 2120 - Payroll Payable - SFS, SFS-013, 5291 - Basic Salary - SFS, SFS-004, SFS-003, SFS-005, 5309 - Absent - SFS, SFS-010, SFS-001', 'account_currency': 'SAR', 'transaction_currency': 'SAR', 'transaction_exchange_rate': 1, 'debit_in_transaction_currency': 450.0, 'credit_in_transaction_currency': 0.0, 'against_voucher_type': None, 'against_voucher': None, 'cost_center': 'Operations - SFS', 'finance...
      adv_adj = 0
      update_outstanding = 'Yes'
      from_repost = False
      dimension_filter_map = {}
      is_opening = False
      entry = {'company': 'Sattam Farhan Al Shammari Cont. Est.', 'posting_date': '2025-10-21', 'fiscal_year': '2025', 'voucher_type': 'Journal Entry', 'voucher_no': 'SFS-JE-2025-1342', 'remarks': 'Note: Accrual Journal Entry for salaries from 2024-01-01 to 2024-01-31', 'debit': 0.0, 'credit': 300.0, 'debit_in_account_currency': 0.0, 'credit_in_account_currency': 300.0, 'is_opening': 'No', 'party_type': 'Employee', 'party': 'SFS-001', 'project': None, 'post_net_value': None, 'voucher_detail_no': None, 'voucher_subtype': 'Journal Entry', 'account': '5294 - Food Allowance - SFS', 'due_date': None, 'against': '5294 - Food Allowance - SFS, 5298 - Over Time - SFS, 5291 - Basic Salary - SFS', 'account_currency': 'SAR', 'transaction_currency': 'SAR', 'transaction_exchange_rate': 1, 'debit_in_transaction_currency': 0.0, 'credit_in_transaction_currency': 300.0, 'against_voucher_type': 'Journal Entry', 'against_voucher': 'SFS-JE-2025-1342', 'cost_center': 'Operations - SFS', 'finance_book': None, 'advance_vou...
  File "apps/erpnext/erpnext/accounts/general_ledger.py", line 413, in make_entry
    gle.submit()
      args = {'company': 'Sattam Farhan Al Shammari Cont. Est.', 'posting_date': '2025-10-21', 'fiscal_year': '2025', 'voucher_type': 'Journal Entry', 'voucher_no': 'SFS-JE-2025-1342', 'remarks': 'Note: Accrual Journal Entry for salaries from 2024-01-01 to 2024-01-31', 'debit': 0.0, 'credit': 300.0, 'debit_in_account_currency': 0.0, 'credit_in_account_currency': 300.0, 'is_opening': 'No', 'party_type': 'Employee', 'party': 'SFS-001', 'project': None, 'post_net_value': None, 'voucher_detail_no': None, 'voucher_subtype': 'Journal Entry', 'account': '5294 - Food Allowance - SFS', 'due_date': None, 'against': '5294 - Food Allowance - SFS, 5298 - Over Time - SFS, 5291 - Basic Salary - SFS', 'account_currency': 'SAR', 'transaction_currency': 'SAR', 'transaction_exchange_rate': 1, 'debit_in_transaction_currency': 0.0, 'credit_in_transaction_currency': 300.0, 'against_voucher_type': 'Journal Entry', 'against_voucher': 'SFS-JE-2025-1342', 'cost_center': 'Operations - SFS', 'finance_book': None, 'advance_vou...
      adv_adj = 0
      update_outstanding = 'Yes'
      from_repost = False
      gle = <GLEntry: ee0330469d docstatus=1>
  File "apps/frappe/frappe/utils/typing_validations.py", line 32, in wrapper
    return func(*args, **kwargs)
      args = (<GLEntry: ee0330469d docstatus=1>,)
      kwargs = {}
      apply_condition = <function whitelist.<locals>.innerfn.<locals>.<lambda> at 0x7f3e709ce200>
      func = <function Document.submit at 0x7f3e709ce170>
  File "apps/frappe/frappe/model/document.py", line 1097, in submit
    return self._submit()
      self = <GLEntry: ee0330469d docstatus=1>
  File "apps/frappe/frappe/model/document.py", line 1080, in _submit
    return self.save()
      self = <GLEntry: ee0330469d docstatus=1>
  File "apps/frappe/frappe/model/document.py", line 378, in save
    return self._save(*args, **kwargs)
      self = <GLEntry: ee0330469d docstatus=1>
      args = ()
      kwargs = {}
  File "apps/frappe/frappe/model/document.py", line 400, in _save
    return self.insert()
      self = <GLEntry: ee0330469d docstatus=1>
      ignore_permissions = None
      ignore_version = None
  File "apps/frappe/frappe/model/document.py", line 334, in insert
    self.run_post_save_methods()
      self = <GLEntry: ee0330469d docstatus=1>
      ignore_permissions = None
      ignore_links = None
      ignore_if_duplicate = False
      ignore_mandatory = None
      set_name = None
      set_child_names = True
  File "apps/frappe/frappe/model/document.py", line 1179, in run_post_save_methods
    self.run_method("on_update")
      self = <GLEntry: ee0330469d docstatus=1>
  File "apps/frappe/frappe/model/document.py", line 1011, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
      self = <GLEntry: ee0330469d docstatus=1>
      args = ()
      kwargs = {}
      fn = <function Document.run_method.<locals>.fn at 0x7f3e6a598790>
      method = 'on_update'
  File "apps/frappe/frappe/model/document.py", line 1371, in composer
    return composed(self, method, *args, **kwargs)
      self = <GLEntry: ee0330469d docstatus=1>
      args = ()
      kwargs = {}
      hooks = [<function clear_doctype_notifications at 0x7f3e6e389b40>, <function process_workflow_actions at 0x7f3e6d3dd1b0>, <function attach_files_to_document at 0x7f3e7136bc70>, <function apply at 0x7f3e6d3dfd90>, <function update_due_date at 0x7f3e6d3dfe20>, <function apply_permissions_for_non_standard_user_type at 0x7f3e6e389240>, <function update_doc_index at 0x7f3e6df07c70>]
      method = 'on_update'
      doc_events = {'*': {'on_update': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.core.doctype.file.utils.attach_files_to_document', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply', 'frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date', 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type', 'frappe.search.sqlite_search.update_doc_index'], 'after_rename': ['frappe.desk.notifications.clear_doctype_notifications'], 'on_cancel': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply'], 'on_trash': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.search.sqlite_search.delete_doc_index'...
      handler = 'frappe.search.sqlite_search.update_doc_index'
      composed = <function Document.hook.<locals>.compose.<locals>.runner at 0x7f3e6a59b2e0>
      compose = <function Document.hook.<locals>.compose at 0x7f3e6a599870>
      f = <function Document.run_method.<locals>.fn at 0x7f3e6a598790>
  File "apps/frappe/frappe/model/document.py", line 1353, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
      self = <GLEntry: ee0330469d docstatus=1>
      method = 'on_update'
      args = ()
      kwargs = {}
      add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7f3e6a59b910>
      fn = <function Document.run_method.<locals>.fn at 0x7f3e6a598790>
      hooks = (<function clear_doctype_notifications at 0x7f3e6e389b40>, <function process_workflow_actions at 0x7f3e6d3dd1b0>, <function attach_files_to_document at 0x7f3e7136bc70>, <function apply at 0x7f3e6d3dfd90>, <function update_due_date at 0x7f3e6d3dfe20>, <function apply_permissions_for_non_standard_user_type at 0x7f3e6e389240>, <function update_doc_index at 0x7f3e6df07c70>)
  File "apps/frappe/frappe/model/document.py", line 1008, in fn
    return method_object(*args, **kwargs)
      self = <GLEntry: ee0330469d docstatus=1>
      args = ()
      kwargs = {}
      method_object = <bound method GLEntry.on_update of <GLEntry: ee0330469d docstatus=1>>
      method = 'on_update'
  File "apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py", line 118, in on_update
    update_outstanding_amt(
      self = <GLEntry: ee0330469d docstatus=1>
      adv_adj = 0
  File "apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py", line 372, in update_outstanding_amt
    frappe.throw(
      account = '5294 - Food Allowance - SFS'
      party_type = 'Employee'
      party = 'SFS-001'
      against_voucher_type = 'Journal Entry'
      against_voucher = 'SFS-JE-2025-1342'
      on_cancel = False
      party_condition = " and party_type='Employee' and party='SFS-001'"
      account_condition = " and account = '5294 - Food Allowance - SFS'"
      bal = -300.0
      against_voucher_amount = 0.0
  File "apps/frappe/frappe/__init__.py", line 609, in throw
    msgprint(
      msg = 'Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher'
      exc = <class 'frappe.exceptions.ValidationError'>
      title = None
      is_minimizable = False
      wide = False
      as_list = False
      primary_action = None
  File "apps/frappe/frappe/__init__.py", line 574, in msgprint
    _raise_exception()
      title = None
      as_table = False
      as_list = False
      indicator = 'red'
      alert = False
      primary_action = None
      is_minimizable = False
      wide = False
      realtime = False
      sys = <module 'sys' (built-in)>
      _raise_exception = <function msgprint.<locals>._raise_exception at 0x7f3e6a5991b0>
      inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
      out = {'message': 'Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '02945e372fab833873dbefad4513ac2061759a5f4fa20478ea3f9958'}
      msg = 'Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher'
      raise_exception = <class 'frappe.exceptions.ValidationError'>
  File "apps/frappe/frappe/__init__.py", line 525, in _raise_exception
    raise exc
      exc = ValidationError('Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher')
      inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
      msg = 'Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher'
      out = {'message': 'Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '02945e372fab833873dbefad4513ac2061759a5f4fa20478ea3f9958'}
      raise_exception = <class 'frappe.exceptions.ValidationError'>
frappe.exceptions.ValidationError: Against Journal Entry SFS-JE-2025-1342 is already adjusted against some other voucher

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpayroll

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions