fix(stock): preserve zero return incoming rates (#58302)

This commit is contained in:
Mihir Kandoi
2026-08-19 17:15:29 +05:30
committed by GitHub
parent e5cd30c5ab
commit f4ef7fdbcc

View File

@@ -813,7 +813,7 @@ def get_rate_for_return(
if not (rate and return_against) and voucher_type in ["Sales Invoice", "Delivery Note"]:
rate = frappe.db.get_value(f"{voucher_type} Item", voucher_detail_no, "incoming_rate")
if not rate and sle:
if rate is None and sle:
rate = get_incoming_rate(
{
"item_code": sle.item_code,