mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
chore: patch correction
This commit is contained in:
@@ -374,4 +374,5 @@ erpnext.patches.v15_0.do_not_use_batchwise_valuation
|
|||||||
erpnext.patches.v15_0.drop_index_posting_datetime_from_sle
|
erpnext.patches.v15_0.drop_index_posting_datetime_from_sle
|
||||||
erpnext.patches.v15_0.add_disassembly_order_stock_entry_type #1
|
erpnext.patches.v15_0.add_disassembly_order_stock_entry_type #1
|
||||||
erpnext.patches.v15_0.set_standard_stock_entry_type
|
erpnext.patches.v15_0.set_standard_stock_entry_type
|
||||||
|
erpnext.patches.v15_0.set_difference_amount_in_asset_value_adjustment
|
||||||
erpnext.patches.v15_0.link_purchase_item_to_asset_doc
|
erpnext.patches.v15_0.link_purchase_item_to_asset_doc
|
||||||
|
|||||||
@@ -65,9 +65,10 @@ def get_linked_item(doctype, parent, item_code, amount, quantity):
|
|||||||
if quantity > 1:
|
if quantity > 1:
|
||||||
if item.amount + landed_cost == amount and item.qty == quantity:
|
if item.amount + landed_cost == amount and item.qty == quantity:
|
||||||
return item.name
|
return item.name
|
||||||
|
elif item.qty == quantity:
|
||||||
|
return item.name
|
||||||
else:
|
else:
|
||||||
if item.rate + landed_cost == amount:
|
if item.rate + (landed_cost / item.qty) == amount:
|
||||||
return item.name
|
return item.name
|
||||||
|
|
||||||
# If no exact match, return None
|
return items[0].name if items else None
|
||||||
return None
|
|
||||||
|
|||||||
Reference in New Issue
Block a user