Currently this is implemented on the sales ledger and it would be extremely good function to have on the purchase ledger as well.