Merge pull request #7888 from KanchanChauhan/payroll-fix

[Fix] JV entry for Employee Loan only if Loan exists
This commit is contained in:
Nabin Hait
2017-03-02 14:15:59 +05:30
committed by GitHub

View File

@@ -292,6 +292,7 @@ class ProcessPayroll(Document):
"project": self.project "project": self.project
}) })
#employee loan #employee loan
if loan_amounts.total_loan_repayment:
account_amt_list.append({ account_amt_list.append({
"account": loan_accounts.employee_loan_account, "account": loan_accounts.employee_loan_account,
"credit_in_account_currency": loan_amounts.total_principal_amount "credit_in_account_currency": loan_amounts.total_principal_amount