Custom Script can be of help I guess.
https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples
and some discussions here:
Custom Script can be of help I guess.
https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-scripts/custom-script-examples
and some discussions here: