Merge pull request #39745 from frappe/mergify/bp/version-15-hotfix/pr-39742

perf: timeout while submitting the purchase receipt entry (backport #39742)
This commit is contained in:
rohitwaghchaure 2024-02-05 21:17:59 +05:30 committed by GitHub
commit d3c4bd7f5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,6 +627,7 @@ class PurchaseOrder(BuyingController):
update_sco_status(sco, "Closed" if self.status == "Closed" else None)
@frappe.request_cache
def item_last_purchase_rate(name, conversion_rate, item_code, conversion_factor=1.0):
"""get last purchase rate for an item"""