Want to customize Stock Ledger Entry

add doc_events hook for Purchase Receipt and Purchase Invoice.

in the function, get_doc the related stock ledger entries and set values.