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
|
Accounting Periods
|
||||||
------------------
|
------------------
|
||||||
Acconting periods are implemented by creating a structure that
|
Acconting periods are implemented by creating an object that
|
||||||
describes the accounting period, and then assigning every traansaction to
|
describes the accounting period, and then assigning every
|
||||||
at least one period.
|
transaction to at least one period.
|
||||||
|
|
||||||
typedef struct _accountingPeriod {
|
typedef struct _accountingPeriod {
|
||||||
GUID guid; // id
|
GUID guid; // id
|
||||||
char *name; // user-selectable name
|
char *name; // user-selectable name
|
||||||
int kind; // enum {none, week, month, quarter, year }
|
int kind; // enum {none, week, month, quarter, year }
|
||||||
start_date; //
|
Timespec * start_date; //
|
||||||
end_date;
|
Timespec * end_date;
|
||||||
|
AccountGroup *topgrp; // chart of accounts for this period.
|
||||||
} AccountingPeriod;
|
} AccountingPeriod;
|
||||||
|
|
||||||
The Transaction struct has to be extended with a period guid.
|
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.
|
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
|
Changes to Transaction Structure
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user