added tittles to je
This commit is contained in:
parent
f300eb3083
commit
4a15e83498
|
|
@ -1,6 +1,7 @@
|
|||
import frappe
|
||||
from frappe.utils import flt
|
||||
|
||||
import erpnext
|
||||
from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import get_accounting_dimensions
|
||||
|
||||
from hrms.payroll.doctype.payroll_entry.payroll_entry import PayrollEntry
|
||||
|
|
@ -33,12 +34,15 @@ class CustomPayrollEntry(PayrollEntry):
|
|||
je_payment_amount, user_remark, employee_wise_accounting_enabled
|
||||
)
|
||||
|
||||
bank_entry.title = "Əmək həqqi və tutulmaların hesablanması"
|
||||
|
||||
deductions = getattr(self, "_bank_entry_deductions", {})
|
||||
if not deductions:
|
||||
bank_entry.save(ignore_permissions=True)
|
||||
return bank_entry
|
||||
|
||||
precision = frappe.get_precision("Journal Entry Account", "debit_in_account_currency")
|
||||
company_currency = frappe.db.get_value("Company", self.company, "default_currency")
|
||||
company_currency = erpnext.get_company_currency(self.company)
|
||||
accounting_dimensions = get_accounting_dimensions() or []
|
||||
currencies = [row.account_currency for row in bank_entry.accounts if row.get("account_currency")]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue