account statement view
This commit is contained in:
parent
2a0bda012b
commit
1c6fe0dd16
16
schema/account-statement.sql
Normal file
16
schema/account-statement.sql
Normal file
@ -0,0 +1,16 @@
|
||||
create or replace view account_statement_v as
|
||||
select ae.id as id,
|
||||
ae.description as description,
|
||||
ae.created_at::timestamp::date as created_at,
|
||||
ae.amount as amount,
|
||||
ae.document_no as document_no,
|
||||
ae.fiscal_year as fiscal_year,
|
||||
aec.description as category,
|
||||
ac.description as account
|
||||
from account_entry_t ae,
|
||||
account_entry_category_t aec,
|
||||
account_t ac
|
||||
where ae.account_entry_category = aec.id and
|
||||
ae.account = ac.id and
|
||||
aec.id not in (3, 4)
|
||||
order by created_at;
|
Loading…
x
Reference in New Issue
Block a user