[Fix] JV entry for Loan only if Loan exists

This commit is contained in:
Kanchan Chauhan 2017-02-28 17:42:09 +05:30
parent 8312f1cd64
commit e6254b96c4

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