Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Track Loan Repayment as Paid on submit of salary slip #8

Open
jigneshpshah opened this issue May 1, 2019 · 0 comments
Open

Comments

@jigneshpshah
Copy link
Owner

jigneshpshah commented May 1, 2019

Salary Slip (on submit) > Salary Slip Loan > Loan Repayment Schedule (paid = true)

Match fields to update as Paid : Loan , Payment Date , Total Payment.

Loan > Repayment Schedule Table

image

Loan > Repayment Schedule (Form View)
image

In Salary Slip > Salary Slip Loan (Table) add field Repayment Date from the Loan Repayment Schedule Table, this can be used as connecting key to match the installment

image

On submit of salary slip , match the Loan , Repayment Date, Total Payment field values to mark the loan installment as "paid" in the loan repayment schedule table.

Reload the Loan Doctype , to update the Total Amount (total_amount_paid) value = (Total Payment Column, paid = true)
image

Salary Slip (on cancel ) > Salary Slip Loan > Loan Repayment Schedule (paid = false)

Reload the Loan Doctype , to update the Total Amount (total_amount_paid) field value = (Total Payment Column, paid = true)

@jigneshpshah jigneshpshah changed the title feat: Update Loan Repayment Schedule as Paid on submit of salary slip. feat: Track Loan Repayment as Paid on submit of salary slip May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant