[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/gnue-config/accounting/gl classes/gl_acct....
From: |
Neil Tiffin |
Subject: |
gnue/gnue-config/accounting/gl classes/gl_acct.... |
Date: |
Wed, 27 Jun 2001 08:43:57 -0700 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Neil Tiffin <address@hidden> 01/06/27 08:43:57
Modified files:
gnue-config/accounting/gl/classes: gl_acct.gcd
gnue-config/accounting/gl/doc: gl_acct.sgml
Log message:
Add natural account code definitions from Louis's doc.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/accounting/gl/classes/gl_acct.gcd.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/accounting/gl/doc/gl_acct.sgml.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue/gnue-config/accounting/gl/classes/gl_acct.gcd
diff -u gnue/gnue-config/accounting/gl/classes/gl_acct.gcd:1.1
gnue/gnue-config/accounting/gl/classes/gl_acct.gcd:1.2
--- gnue/gnue-config/accounting/gl/classes/gl_acct.gcd:1.1 Wed Jun 27
07:56:45 2001
+++ gnue/gnue-config/accounting/gl/classes/gl_acct.gcd Wed Jun 27 08:43:57 2001
@@ -24,7 +24,7 @@
# Based on concepts and documents from Louis Charbonneau and
# Stanley A. Klein.
#
-# $Id: gl_acct.gcd,v 1.1 2001/06/27 14:56:45 ntiffin Exp $
+# $Id: gl_acct.gcd,v 1.2 2001/06/27 15:43:57 ntiffin Exp $
#
module gl_acct
@@ -38,12 +38,54 @@
bool fund_segment; # Fund Segment This segment defines a
# balancing subset of the chart of
# accounts
-
+ bool natural; # defines this segment as the natural
+ # account code. May only occur in
+ # one segment.
};
- class account
+ # the type class defines all of the types of g/l accounts
+ # that can be entered into the system.
+ class type
{
+ char code<16>; # GL Account Type +Assets,
+ # -Liabilities, -Capital, -Revenues,
+ # +Expenses
+ char description<80>;
+ };
+
+ class gvt_code
+ {
+ # TODO name should be a pointer to something?
+ char name<25>; # name of the government involved
+ char code<10>; # Government Code Coding required for
+ # government reporting
+ char description<80>;
+ };
- boolean validate_acct( text full_acct_ );
- }
+ # the account class defines the natural account code exclusive
+ # of the other segments of the full account code.
+ class account
+ {
+ char enterprise_code<8>; # Enterprise Code
+
+ char gl_acct<10>; # General Ledger Account Key for the
+ # user to access the account, can be
+ # updated by the user
+ char gl_title<60>; # General Ledger Account Title General
+ # Ledger Account Title
+ char activity_status<16>; # GL Account Activity Status Active,
+ # Inactive, Deactivated
+
+ gl_acct::type *type; # GL Account Type +Assets,
+ # -Liabilities, -Capital, -Revenues,
+ # +Expenses
+ gl_acct::gvt_code *gvt_code; # Government Code Coding required for
+ # government reporting
+
+ # TODO in my opinion this should be a pointer to the subledger
+ boolean ctrl_acct; # Control Account Yes= This account
+ # controls a subledger
+
+ boolean validate_acct( text full_acct_num );
+ };
};
Index: gnue/gnue-config/accounting/gl/doc/gl_acct.sgml
diff -u gnue/gnue-config/accounting/gl/doc/gl_acct.sgml:1.1
gnue/gnue-config/accounting/gl/doc/gl_acct.sgml:1.2
--- gnue/gnue-config/accounting/gl/doc/gl_acct.sgml:1.1 Wed Jun 27 07:56:45 2001
+++ gnue/gnue-config/accounting/gl/doc/gl_acct.sgml Wed Jun 27 08:43:57 2001
@@ -3,7 +3,7 @@
<sect1>
<title>Requirements</title>
<para>
- This chapter is $Revision: 1.1 $ $Date: 2001/06/27
14:56:45 $. This section was intitially conceived by Louis Charbonneau and
discussions were coordinated by Stanley A. Klein.
+ This chapter is $Revision: 1.2 $ $Date: 2001/06/27
15:43:57 $. This section was intitially conceived by Louis Charbonneau and
discussions were coordinated by Stanley A. Klein.
</para>
<sect2>
<title>Business Requirements</title>
@@ -20,7 +20,7 @@
</para>
<para>
For example the first segment is 2
-characters and represents de company, second segment is 3 characters and
+characters and represents the company, second segment is 3 characters and
represents the division within the company, third segment is 2 characters
and represents the department, fourth segment is 2 digits and represents a
group of accounts, fifth segment is 2 digits and represents a sub-group of
- gnue/gnue-config/accounting/gl classes/gl_acct....,
Neil Tiffin <=