Purchase Rate Issue while duplicating Purchase Order

Hi,

I have been seeing some strange issues with Purchase Order rate. The scenario is like this:

Cancelled one Purchase Order. Now when I’m duplicating this, the Items purchase rate is fetching some unknown values. These rates are not from the Standard Buying Prices, nor the last Purchase Price, nor the Valuation Price.

Please check this screenshot. Versions:

ERPNext: v12.17.0 (version-12)
Frappe Framework: v12.14.0 (version-12)

https://s2.gifyu.com/images/PO-rate.gif

No one else found this issue? Or am I doing something wrong?

Same thing is happening to me. I hate this!