[Fix] JV entry for Loan only if Loan exists
This commit is contained in:
parent
8312f1cd64
commit
e6254b96c4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user