added tittles to je

This commit is contained in:
Ali 2026-03-06 23:18:50 +04:00
parent a7deb77e09
commit f76b09116b
1 changed files with 3 additions and 3 deletions

View File

@ -34,12 +34,11 @@ class CustomPayrollEntry(PayrollEntry):
je_payment_amount, user_remark, employee_wise_accounting_enabled je_payment_amount, user_remark, employee_wise_accounting_enabled
) )
bank_entry.title = "Əmək həqqi və tutulmaların hesablanması" custom_title = "Əmək həqqi və tutulmaların hesablanması"
bank_entry.pay_to_recd_from = "Əmək həqqi və tutulmaların hesablanması"
deductions = getattr(self, "_bank_entry_deductions", {}) deductions = getattr(self, "_bank_entry_deductions", {})
if not deductions: if not deductions:
bank_entry.save(ignore_permissions=True) bank_entry.db_set({"title": custom_title, "pay_to_recd_from": custom_title})
return bank_entry return bank_entry
precision = frappe.get_precision("Journal Entry Account", "debit_in_account_currency") precision = frappe.get_precision("Journal Entry Account", "debit_in_account_currency")
@ -79,4 +78,5 @@ class CustomPayrollEntry(PayrollEntry):
bank_entry.append("accounts", credit_row) bank_entry.append("accounts", credit_row)
bank_entry.save(ignore_permissions=True) bank_entry.save(ignore_permissions=True)
bank_entry.db_set({"title": custom_title, "pay_to_recd_from": custom_title})
return bank_entry return bank_entry