I’ve noticed that Purchase Invoice does not update the stock valuation in Purchase Receipts in the case when Purchase Invoice item’s valuation rate is different from Purchase Receipt item’s valuation rate.
So I’ve made a pull request for this feature: https://github.com/frappe/erpnext/pull/15154
This will override any Purchase Receipt item’s tax amounts only. You can’t simply change the valuation_rate of items since they are recalculated on submitting Landed Cost Vouchers. So I’ve included 2 fields in Purchase Receipt Item to achieve this: invoiced_item_tax_amount and invoiced_item_tax_portion. They’re used to recalculate the valuation_rate
There’s another case which I’ve not added a feature for in the PR that what if the items are invoiced at a different rate than Purchase Receipts. Should Purchase Invoice also override rate of items in Purchase Receipts?
What do you people think, are these necessary features?