Stock Ledger Entry hook

Hi,

Is there a hook which can be called whenever the item valuation rate is changed/updated?

I tried on_submit hook for Stock Ledger Entry, but its called before insert, and valuation_rate is 0.

We have an external system which has to updated with latest valuation rate, thanks.

I think you have to hook “on_submit” and “on_cancel” event for all individual stock transactions which includes Stock Entry, Purchase Receipt, Purchase Invoice, Delivery note, Sales Invoice, Stock Reconciliation.

I think the proper hook should be on_submit event on Stock Ledger Entry, instead of each transaction. The on_submit hook event on Stock Ledger Entry is fired, but the valuation rate is not calculated yet at that point. It calculates after Stock Ledger Entry submit, not on submit. Any suggestion would be helpful. thanks.