add doc_events hook for Purchase Receipt and Purchase Invoice.
in the function, get_doc the related stock ledger entries and set values.
add doc_events hook for Purchase Receipt and Purchase Invoice.
in the function, get_doc the related stock ledger entries and set values.