Fetching Data from another Doctype In Purchase Receipt

I need the fetch the bill_no from Purchase Invoice doctype to Purchase Receipt doctype and the field name id supplier_invoice_no. How to get fetch the value. Please help me to make this possible.

Thanks,
Bala S

Have you checked…

i think this is not correct way of thinking because you are making the invoice from the receipt so how you wants to copy the bill no from the invoice when it is not created yet ?

I think @Bassam_Mamdouh is exactly right. When I get confused about this I always go back to the docflow diagram. Even if you’re not new to ERPNext, I’d recommend keeping a copy nearby.

Somebody with a similar issue here:
https://discuss.frappe.io/t/posting-sales-invoice-by-restful-api/482/4