Challan Quantity

Hi All,

In Purchase Receipt we missed out Challan Quantity, which manually fed by user. And as per calculation new field will create Shortage Quantity..
can any one please guide me, how to calculate that field display on Purchase Receipt print format.

We can able to fetch all details in Print format. i,e accepted Quantity, Received Quantity, Rejected Quantity.
New field that is Shortage Quantity.

@dineshpanchal432
You will have to write a custom script fetch data in the Shortage field
https://frappe.github.io/erpnext/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples/update-date-field-based-on-value-in-other-date-field

For printing the custom field on the format you can use print format builder and fetch field in the print format.