commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/gnue-config base/currency/classes/currency...


From: Neil Tiffin
Subject: gnue/gnue-config base/currency/classes/currency...
Date: Sun, 23 Sep 2001 17:06:33 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/09/23 17:06:33

Modified files:
        gnue-config/base/currency/classes: currency.gcd 
        gnue-config/test: gcd_pass_test.py 
Added files:
        gnue-config/base/currency/methods: currency.py 

Log message:
        Add placeholder for currency methods to further flush out methods and 
schema problems.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/base/currency/classes/currency.gcd.diff?cvsroot=OldCVS&tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/base/currency/methods/currency.py?cvsroot=OldCVS&rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/test/gcd_pass_test.py.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/gnue-config/base/currency/classes/currency.gcd
diff -u gnue/gnue-config/base/currency/classes/currency.gcd:1.18 
gnue/gnue-config/base/currency/classes/currency.gcd:1.19
--- gnue/gnue-config/base/currency/classes/currency.gcd:1.18    Sun Sep 16 
05:27:42 2001
+++ gnue/gnue-config/base/currency/classes/currency.gcd Sun Sep 23 17:06:33 2001
@@ -22,7 +22,7 @@
 #
 # This file originally written by Neil Tiffin (address@hidden).
 #
-# $Revision: 1.18 $ $Date: 2001/09/16 09:27:42 $ $Author: reinhard $
+# $Revision: 1.19 $ $Date: 2001/09/23 21:06:33 $ $Author: ntiffin $
 #
 
 # ===========================================================================
@@ -42,6 +42,7 @@
     INDEX   (code);
   };
 
+
   # -------------------------------------------------------------------------
   # money - TYPE definition of money.
   # -------------------------------------------------------------------------
@@ -72,21 +73,22 @@
     currency::currency  *to;
     float                numerator = 1.0;   # the conversion
     float                denominator = 1.0; # factor = numerator/denominator
-    date                 begin not null;
-    date                 end   not null;
+    date                 begin;
+    date                 end;
     
   };
   
+  
   # -------------------------------------------------------------------------
   # conversion - convert between different currencies.
-  #
-  # TODO need to add conversion methods
   # -------------------------------------------------------------------------
   class conversion
   {
     currency::currency           *from;
     
     currency::conversion_rule [] rule;
+    
+    text convert_to( char to_currency, char from_value);
   };
   
 };
Index: gnue/gnue-config/test/gcd_pass_test.py
diff -u gnue/gnue-config/test/gcd_pass_test.py:1.1 
gnue/gnue-config/test/gcd_pass_test.py:1.2
--- gnue/gnue-config/test/gcd_pass_test.py:1.1  Sun Sep 23 10:18:12 2001
+++ gnue/gnue-config/test/gcd_pass_test.py      Sun Sep 23 17:06:33 2001
@@ -1,3 +1,28 @@
+#!/usr/bin/env python
+
+# Copyright (C) 2001 Free Software Foundation, Inc.
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+# 
+# GNU Enterprise is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Enterprise; see the file COPYING.  If not, write to the
+# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+#
+# This file originally written by Neil Tiffin (address@hidden).
+#
+# $Revision: 1.2 $ $Date: 2001/09/23 21:06:33 $ $Author: ntiffin $
+#
 
 import string
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]