How child table is automatically filled in stock reconciliation

Hi everyone,

In some places the child table is automatically filled when we select a value in the form like in stock reconciliation.

Somebody please explain to me how it is done ?

@ninjas005 did you see the stock reconciliation code?

1 Like

yup… I saw it , but didn’t get how it’s done :smile:

What part?

@ninjas005 see bank reconciliation tool code to fetch details in table

Call your py code from js, will execute on click of Get Relevant Entry button
https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.js#L34

To append data in table
https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py#L32

2 Likes

Thanks
That was easier to understand compared to stock reconciliation