account statement stuff
This commit is contained in:
@ -6,12 +6,15 @@ create or replace view account_statement_v as
|
||||
ae.document_no as document_no,
|
||||
ae.fiscal_year as fiscal_year,
|
||||
aec.description as category,
|
||||
aec.income as income,
|
||||
ac.description as account
|
||||
from account_entry_t ae,
|
||||
ac.description as account,
|
||||
ae.is_reference as is_reference,
|
||||
bac.description as base_account
|
||||
from joined_account_entry_v ae,
|
||||
account_entry_category_t aec,
|
||||
account_t ac
|
||||
account_t ac,
|
||||
account_t bac
|
||||
where ae.account_entry_category = aec.id and
|
||||
ae.account = ac.id and
|
||||
aec.id not in (3, 4)
|
||||
ae.base_account = bac.id and
|
||||
ac.id = 1000
|
||||
order by created_at;
|
||||
|
@ -5,7 +5,7 @@ CREATE TABLE account_entry_reference_t (
|
||||
);
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW joined_account_entry_t AS
|
||||
CREATE OR REPLACE VIEW joined_account_entry_v AS
|
||||
SELECT ae.id as id,
|
||||
ae.description as description,
|
||||
ae.account as account,
|
||||
|
Reference in New Issue
Block a user