Hi Guys,
Im trying to Create a report Similar to the General Ledger Report , What i did is instead of getting the data from “tabGL Entry” I change it to “tabJournal Entry Accounts” it works fine but it was not balanced with the General Ledger Report
because Sales Invoice and Purchase Invoice entries are in a seperate table.
Im trying to figure out if a code something like this is possible to pull data from SI and PI
gl_entries = frappe.db.sql(" QUERY FOR tabJournal Entry Accounts ")
si_entries = frappe.db.sql(" QUERY FOR Sales invoice ")
pi_entries = frappe.db.sql(" QUERY FOR Purchase invoice ")
gl_entries.append(si_entries)
gl_entries.append(pi_entries)
return gl_entries