Fetch total quantity from purchase invoice item to existing project doctype

  1. Suppose in project user selected 10 total quantities for the order.
  2. Now in purchase order item user just selects the 8 and submits it.
    3.We have to showcase status in project doctype as partially completed as user-submitted 8/10 only.
  3. How to fetch data from purchase order item to project doctype?


Can you help me?

Create custom field and use add_fetch to link field.