Merge pull request #24264 from AfshanKhan/fix-sal-struc-assign-payroll-acc

fix: setting correct account for sal struct assignment if not specified.
This commit is contained in:
Anurag Mishra 2020-12-31 18:26:46 +05:30 committed by GitHub
commit b901d4002a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ class SalaryStructureAssignment(Document):
def set_payroll_payable_account(self):
if not self.payroll_payable_account:
payroll_payable_account = frappe.db.get_value('Company', self.company, 'default_payable_account')
payroll_payable_account = frappe.db.get_value('Company', self.company, 'default_payroll_payable_account')
if not payroll_payable_account:
payroll_payable_account = frappe.db.get_value(
"Account", {