How to fetch Supplier Invoice no during Purchase return

During Purchase return, how to fetch Suppliers invoice details aganst which return is created.
I can get details of my purchase no. Return agenst purchase invoice

Skedia

You will need a bit of customization and bit of code.:

  1. In Purchase return doc type, Add a new field by using Edit Doctype.
  2. Write a hook code on Doc Save of Purchase Return, to load PO->PI and then load Supplier invoice and assign it on doc type and save again.

Hope it helps.

Regards,

Parth Joshi

2 Likes