mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 22:58:25 +00:00
fix(stock): preserve zero return incoming rates (#58302)
This commit is contained in:
@@ -813,7 +813,7 @@ def get_rate_for_return(
|
|||||||
if not (rate and return_against) and voucher_type in ["Sales Invoice", "Delivery Note"]:
|
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")
|
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(
|
rate = get_incoming_rate(
|
||||||
{
|
{
|
||||||
"item_code": sle.item_code,
|
"item_code": sle.item_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user