mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
added notes abut accounting periods
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2354 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4325bf68f7
commit
a6b661445f
@ -7,16 +7,17 @@ of the changes that will come soon to the interfaces.
|
||||
|
||||
Accounting Periods
|
||||
------------------
|
||||
Acconting periods are implemented by creating a structure that
|
||||
describes the accounting period, and then assigning every traansaction to
|
||||
at least one period.
|
||||
Acconting periods are implemented by creating an object that
|
||||
describes the accounting period, and then assigning every
|
||||
transaction to at least one period.
|
||||
|
||||
typedef struct _accountingPeriod {
|
||||
GUID guid; // id
|
||||
char *name; // user-selectable name
|
||||
int kind; // enum {none, week, month, quarter, year }
|
||||
start_date; //
|
||||
end_date;
|
||||
Timespec * start_date; //
|
||||
Timespec * end_date;
|
||||
AccountGroup *topgrp; // chart of accounts for this period.
|
||||
} AccountingPeriod;
|
||||
|
||||
The Transaction struct has to be extended with a period guid.
|
||||
@ -29,6 +30,17 @@ closed books. Basically, a new chart of accounts needs to be written
|
||||
out/read from the engine for each new accounting period.
|
||||
|
||||
|
||||
The xaccPeriodClose() subroutine performs the following:
|
||||
-- crawl over all transactions and mark them as being part of this
|
||||
accounting period (actually, new transactions should by default be
|
||||
getting put into the currently open period...)
|
||||
-- find the equity account (what if there is more than one equity account
|
||||
?? what if equity has sub-accounts ?? )
|
||||
-- transfer all income/expense to equity (shouldn't the equity account
|
||||
match the income/expense heirarchy?)
|
||||
-- return a new account group with new opening balances ...
|
||||
|
||||
|
||||
|
||||
Changes to Transaction Structure
|
||||
--------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user