Merge pull request #7888 from KanchanChauhan/payroll-fix
[Fix] JV entry for Employee Loan only if Loan exists
This commit is contained in:
commit
a0fb3e5128
@ -292,17 +292,18 @@ class ProcessPayroll(Document):
|
|||||||
"project": self.project
|
"project": self.project
|
||||||
})
|
})
|
||||||
#employee loan
|
#employee loan
|
||||||
account_amt_list.append({
|
if loan_amounts.total_loan_repayment:
|
||||||
"account": loan_accounts.employee_loan_account,
|
account_amt_list.append({
|
||||||
"credit_in_account_currency": loan_amounts.total_principal_amount
|
"account": loan_accounts.employee_loan_account,
|
||||||
})
|
"credit_in_account_currency": loan_amounts.total_principal_amount
|
||||||
account_amt_list.append({
|
})
|
||||||
"account": loan_accounts.interest_income_account,
|
account_amt_list.append({
|
||||||
"credit_in_account_currency": loan_amounts.total_interest_amount,
|
"account": loan_accounts.interest_income_account,
|
||||||
"cost_center": self.cost_center,
|
"credit_in_account_currency": loan_amounts.total_interest_amount,
|
||||||
"project": self.project
|
"cost_center": self.cost_center,
|
||||||
})
|
"project": self.project
|
||||||
adjustment_amt = adjustment_amt-(loan_amounts.total_loan_repayment)
|
})
|
||||||
|
adjustment_amt = adjustment_amt-(loan_amounts.total_loan_repayment)
|
||||||
|
|
||||||
account_amt_list.append({
|
account_amt_list.append({
|
||||||
"account": default_payroll_payable_account,
|
"account": default_payroll_payable_account,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user