Add mirror based trial balance and financial statements
This commit is contained in:
@@ -1,2 +1 @@
|
||||
__version__ = "1.26.20"
|
||||
AGENT_NAME = "ERP Local Agent"
|
||||
__version__ = "1.26.21"
|
||||
|
||||
@@ -4566,6 +4566,11 @@ class AgentCommandProcessor:
|
||||
GROUP BY lm.ledger_guid,lm.ledger_name,lm.parent_group,lm.opening_balance,lm.closing_balance
|
||||
ORDER BY lm.parent_group,lm.ledger_name LIMIT ?""",(limit,)).fetchall()]
|
||||
return {"rows":rows,"count":len(rows)}
|
||||
if query == "group_master":
|
||||
rows=[dict(r) for r in db.execute(
|
||||
"""SELECT master_guid,name,parent,reserved_name,is_revenue,is_deemed_positive,is_active
|
||||
FROM group_master ORDER BY lower(name),name LIMIT ?""",(limit,)).fetchall()]
|
||||
return {"rows":rows,"count":len(rows)}
|
||||
if query == "stock_items":
|
||||
rows=[dict(r) for r in db.execute("SELECT * FROM stock_item_master ORDER BY product_name LIMIT ?",(limit,)).fetchall()]
|
||||
return {"rows":rows,"count":len(rows)}
|
||||
|
||||
Reference in New Issue
Block a user