[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: |
Mon, 02 Jul 2001 10:30:24 -0700 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Neil Tiffin <address@hidden> 01/07/02 10:30:23
Modified files:
gnue-config/accounting/gl/classes: gl_acct.gcd
gnue-config/accounting/gl/doc: gl_acct.sgml
gnue-config/base/parameter/classes: parameter.gcd
Log message:
Create parameter classes and example of initial_setup method.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/accounting/gl/classes/gl_acct.gcd.diff?cvsroot=OldCVS&tr1=1.6&tr2=1.7&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.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/base/parameter/classes/parameter.gcd.diff?cvsroot=OldCVS&tr1=1.3&tr2=1.4&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.6
gnue/gnue-config/accounting/gl/classes/gl_acct.gcd:1.7
--- gnue/gnue-config/accounting/gl/classes/gl_acct.gcd:1.6 Sun Jul 1
16:42:41 2001
+++ gnue/gnue-config/accounting/gl/classes/gl_acct.gcd Mon Jul 2 10:30:23 2001
@@ -24,7 +24,7 @@
# Based on concepts and documents from Louis Charbonneau and
# Stanley A. Klein.
#
-# $Id: gl_acct.gcd,v 1.6 2001/07/01 23:42:41 ntiffin Exp $
+# $Id: gl_acct.gcd,v 1.7 2001/07/02 17:30:23 ntiffin Exp $
#
module gl_acct
@@ -41,15 +41,17 @@
bool natural; # defines this segment as the natural
# account code. May only occur in
# one segment.
+
+ char initial_setup(char force); #define segment separaters.
};
# the type class defines all of the types of g/l accounts
- # that can be entered into the system.
+ # for placement in the financial statments
class type
{
- char code<16>; # GL Account Type +Assets,
- # -Liabilities, -Capital, -Revenues,
- # +Expenses
+ char name<16>; # GL Account Type +Assets,
+ # +Assets, -Liabilities, -Capital,
+ # -Revenues, +Expenses
char description<80>;
};
Index: gnue/gnue-config/accounting/gl/doc/gl_acct.sgml
diff -u gnue/gnue-config/accounting/gl/doc/gl_acct.sgml:1.3
gnue/gnue-config/accounting/gl/doc/gl_acct.sgml:1.4
--- gnue/gnue-config/accounting/gl/doc/gl_acct.sgml:1.3 Wed Jun 27 09:18:29 2001
+++ gnue/gnue-config/accounting/gl/doc/gl_acct.sgml Mon Jul 2 10:30:23 2001
@@ -3,56 +3,76 @@
<sect1>
<title>Requirements</title>
<para>
- This chapter is $Revision: 1.3 $ $Date: 2001/06/27
16:18:29 $. This section was intitially conceived by Louis Charbonneau and
discussions were coordinated by Stanley A. Klein.
+ This chapter is $Revision: 1.4 $ $Date: 2001/07/02
17:30:23 $. This section was intitially conceived by Louis Charbonneau and
discussions were coordinated by Stanley A. Klein.
</para>
<sect2>
<title>Business Requirements</title>
<orderedlist>
<listitem>
<para>
-The GL Account number can be segmented. The segment
-separator can be ``-`` or ``+'' or ``/'' or ``.'' or ``*'' as selected by
-the user in the GL parameters. For convenience of use and data entry speed,
-only characters from the
-numeric keypad are proposed as segment separator. Account segmentation is
-built after the hierachical structure of the organization. Every segment
-has a name within the organisation.
-</para>
-<para>
-For example the first segment is 2
-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
-accounts, sixth segment is 4 digits ans represents the account per se. The
-segmentation
-mask would be like this : ``XX-XXX-XX-99-99-9999''
- </para>
-<para>
- The maximum number of segments in an account number is 15.
-</para>
-<para>
- The maximum size of any one segments in an account number is 10.
-</para>
- </listitem>
- <listitem>
- <para>
- An account has 3 types of activity status.
- </para>
-<para>
- Active - Transactions can be posted to this account.
-</para>
-<para>
- InActive - This account has been created but has not been activated
yet. No
-transaction can be posted.
-</para>
-<para>
- DeActivated - This account has been used for awhile but the accountant
is phasing
-out the usage of this account. No transaction can be posted. An account
-goes from an InActive status, to an Active status, to a DeActivated status.
-It could also go from DeActivated back to Active.
-</para>
-</listitem>
+ The GL Account number can be
segmented. The segment separator can be "-" or "+" or "/" or "." or "*" as
selected by the user in the GL parameters. For convenience of use and data
entry speed, only characters from the numeric keypad are proposed as segment
separator. Account segmentation is built after the hierachical structure of the
organization. Every segment has a name within the organisation.
+ </para>
+ <para>
+ For example the first segment
is 2 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 accounts,
sixth segment is 4 digits ans represents the account per se. The segmentation
mask would be like this : ``XX-XXX-XX-99-99-9999''
+ </para>
+ <para>
+ The maximum number of segments
in an account number is 15.
+ </para>
+ <para>
+ The maximum size of any one
segments in an account number is 10.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ An account has 3 types of
activity status.
+ </para>
+ <para>
+ Active - Transactions can be
posted to this account.
+ </para>
+ <para>
+ InActive - This account has
been created but has not been activated yet. No transaction can be posted.
+ </para>
+ <para>
+ DeActivated - This account has
been used for awhile but the accountant is phasing out the usage of this
account. No transaction can be posted. An account goes from an InActive status,
to an Active status, to a DeActivated status. It could also go from DeActivated
back to Active.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ General Legder Accounts will
have an attribute to define placement in the financial statements. Initially
these attributes will default to:
+ <orderedlist>
+ <listitem>
+ <para>
+ Assets
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+
Liabilities
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+
Shareholder equity
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Revenue
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Cost of
Goods
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+
Expenses
+ </para>
+ </listitem>
+ </orderedlist>
+ </para>
+ </listitem>
</orderedlist>
</sect2>
<sect2>
@@ -63,7 +83,7 @@
<orderedlist>
<listitem>
<para>
- TODO
+ TODO
</para>
</listitem>
</orderedlist>
@@ -73,7 +93,7 @@
<para>
The following Business Objects are defined and
maintained by this module.
</para>
- <itemizedlist mark=bullet>
+ <itemizedlist mark="bullet">
<listitem>
<para>
TODO
@@ -83,7 +103,7 @@
</sect2>
<sect2>
<title>External Business Object References</title>
- <itemizedlist mark=bullet>
+ <itemizedlist mark="bullet">
<listitem>
<para>
TODO
@@ -93,7 +113,7 @@
</sect2>
<sect2>
<title>Forms</title>
- <itemizedlist mark=bullet>
+ <itemizedlist mark="bullet">
<listitem>
<para>
TODO
@@ -103,7 +123,7 @@
</sect2>
<sect2>
<title>Reports</title>
- <itemizedlist mark=bullet>
+ <itemizedlist mark="bullet">
<listitem>
<para>
TODO
@@ -113,10 +133,10 @@
</sect2>
<sect2>
<title>Business Rules</title>
- <itemizedlist mark=bullet>
+ <itemizedlist mark="bullet">
<listitem>
<para>
- TODO
+ gl_acct::segment.setup - During
initial setup if acct::param.name = "segment_separaters" does not exist then
create string of valid segment separaters with acct::param.value = "-+/.*"
</para>
</listitem>
</itemizedlist>
Index: gnue/gnue-config/base/parameter/classes/parameter.gcd
diff -u gnue/gnue-config/base/parameter/classes/parameter.gcd:1.3
gnue/gnue-config/base/parameter/classes/parameter.gcd:1.4
--- gnue/gnue-config/base/parameter/classes/parameter.gcd:1.3 Sat Jun 23
20:17:42 2001
+++ gnue/gnue-config/base/parameter/classes/parameter.gcd Mon Jul 2
10:30:23 2001
@@ -1,6 +1,6 @@
-# $RCSfile: parameter.gcd,v $ - company parameters for operating
-# the GNUe system.
+# parameter.gcd - base system public parameters for operating
+# the GNUe system.
#
# Copyright (C) 2001 Free Software Foundation, Inc.
#
@@ -23,15 +23,25 @@
#
# This file originally written by Neil Tiffin (address@hidden).
#
-# $Revision: 1.3 $ $Date: 2001/06/24 03:17:42 $ $Author: ntiffin $
+# $Revision: 1.4 $ $Date: 2001/07/02 17:30:23 $ $Author: ntiffin $
#
-include "../../../base/org/classes/org.gcd"
-include "../../../base/currency/classes/currency.gcd"
-
-class parameter
+module base
{
- org::organization * company;
- currency::currency * currency; # base currency for company.
-
+ class parameter
+ {
+ # class and module refer to the ones
+ # defining the parameter
+ char mod_name<128> ! not null; # fully qualified module/class name
+ char clas_name<64> ! not null; # last class name only
+ char name<64> ! not null; # name of the parameter
+
+ char value<128> ! not null; # value of the parameter
+ date created ! not null;
+ char created_by<64> ! not null; # user name that created parameter
+ date modified;
+ char modified_by<64>; # user name that modified parameter
+
+ unique index (module, class, name);
+ };
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/gnue-config accounting/gl/classes/gl_acct....,
Neil Tiffin <=