mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
[fix] get_party_gle_currency caching
This commit is contained in:
@@ -201,7 +201,8 @@ def get_party_gle_currency(party_type, party, company):
|
|||||||
|
|
||||||
return existing_gle_currency[0][0] if existing_gle_currency else None
|
return existing_gle_currency[0][0] if existing_gle_currency else None
|
||||||
|
|
||||||
return frappe.local_cache("party_gle_currency", (party_type, party, company), generator)
|
return frappe.local_cache("party_gle_currency", (party_type, party, company), generator,
|
||||||
|
regenerate_if_none=True)
|
||||||
|
|
||||||
def validate_party_gle_currency(party_type, party, company, party_account_currency=None):
|
def validate_party_gle_currency(party_type, party, company, party_account_currency=None):
|
||||||
"""Validate party account currency with existing GL Entry's currency"""
|
"""Validate party account currency with existing GL Entry's currency"""
|
||||||
|
|||||||
Reference in New Issue
Block a user