Purchase Order not Saved

I am not able to save the purchase order made with the reference of Material Request where Minimum Order quantity is defined for the Purchase Order.

I have created a purchase order for item X with 30 quantity with reference to Material Request ABC
Item Quantity in Material Request is 30
Minimum Order Quantity in Item Master is also 30
While Saving system says
“Item #310-000014: Ordered qty can not less than item’s minimum order qty (defined in item master).”

Whereas I can save the PO if I create the same without Material Request’s reference.
I am using ERPNext: v4.24.1.

Earlier it was working fine.

Please resolve this issue.

Fixed via V4.x.x by nabinhait · Pull Request #2985 · frappe/erpnext · GitHub