feat: report to show difference between stock and account value (#20186)

This commit is contained in:
rohitwaghchaure
2020-01-09 15:05:05 +05:30
committed by Nabin Hait
parent 287f491f7b
commit d4d7d211ea
8 changed files with 230 additions and 3 deletions

View File

@@ -891,3 +891,9 @@ def get_allow_cost_center_in_entry_of_bs_account():
def generator():
return cint(frappe.db.get_value('Accounts Settings', None, 'allow_cost_center_in_entry_of_bs_account'))
return frappe.local_cache("get_allow_cost_center_in_entry_of_bs_account", (), generator, regenerate_if_none=True)
def get_stock_accounts(company):
return frappe.get_all("Account", filters = {
"account_type": "Stock",
"company": company
})