V12 Request Raw Material: TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Does anyone know the cause of this error? I encountered this when I was trying to Request Raw Material via Sales Order.

Report it on Github

Just reported: v12.04: Typeerror: unsupported operand type(s) for:- Float and Nonetype · Issue #19397 · frappe/erpnext · GitHub

I know it is kinda late as I was very busy lately.