change the name of the custom fields in each doctype
pabr for purchase invoice sabr for sales invoice etc
Regards