added tittles to je
This commit is contained in:
parent
0eaa407c1d
commit
67518bf4a0
|
|
@ -3,8 +3,12 @@ from frappe.utils import flt
|
||||||
|
|
||||||
from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import get_accounting_dimensions
|
from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import get_accounting_dimensions
|
||||||
|
|
||||||
|
from frappe.model.rename_doc import update_document_title
|
||||||
|
|
||||||
from hrms.payroll.doctype.payroll_entry.payroll_entry import PayrollEntry
|
from hrms.payroll.doctype.payroll_entry.payroll_entry import PayrollEntry
|
||||||
|
|
||||||
|
BANK_ENTRY_TITLE = "Əmək həqqi və tutulmaların hesablanması"
|
||||||
|
|
||||||
|
|
||||||
class CustomPayrollEntry(PayrollEntry):
|
class CustomPayrollEntry(PayrollEntry):
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
|
@ -24,7 +28,16 @@ class CustomPayrollEntry(PayrollEntry):
|
||||||
self._bank_entry_deductions.get(component, 0) + salary_detail.amount
|
self._bank_entry_deductions.get(component, 0) + salary_detail.amount
|
||||||
)
|
)
|
||||||
|
|
||||||
return super().make_bank_entry(for_withheld_salaries)
|
bank_entry = super().make_bank_entry(for_withheld_salaries)
|
||||||
|
|
||||||
|
if bank_entry:
|
||||||
|
update_document_title(
|
||||||
|
doctype="Journal Entry",
|
||||||
|
docname=bank_entry.name,
|
||||||
|
title=BANK_ENTRY_TITLE,
|
||||||
|
)
|
||||||
|
|
||||||
|
return bank_entry
|
||||||
|
|
||||||
def set_accounting_entries_for_bank_entry(
|
def set_accounting_entries_for_bank_entry(
|
||||||
self, je_payment_amount, user_remark, employee_wise_accounting_enabled
|
self, je_payment_amount, user_remark, employee_wise_accounting_enabled
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue