commit-gnue
[Top][All Lists]
Advanced

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

gnue/gnue-config/supply-chain/purchasing classe...


From: Neil Tiffin
Subject: gnue/gnue-config/supply-chain/purchasing classe...
Date: Wed, 04 Jul 2001 15:57:24 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/07/04 15:57:24

Modified files:
        gnue-config/supply-chain/purchasing/classes: purchasing.gcd 
        gnue-config/supply-chain/purchasing/doc: purchasing.sgml 

Log message:
        Revise a lot of details in the class file.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/supply-chain/purchasing/classes/purchasing.gcd.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/supply-chain/purchasing/doc/purchasing.sgml.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text

Patches:
Index: gnue/gnue-config/supply-chain/purchasing/classes/purchasing.gcd
diff -u gnue/gnue-config/supply-chain/purchasing/classes/purchasing.gcd:1.8 
gnue/gnue-config/supply-chain/purchasing/classes/purchasing.gcd:1.9
--- gnue/gnue-config/supply-chain/purchasing/classes/purchasing.gcd:1.8 Fri Jun 
22 13:33:54 2001
+++ gnue/gnue-config/supply-chain/purchasing/classes/purchasing.gcd     Wed Jul 
 4 15:57:24 2001
@@ -22,7 +22,7 @@
 #
 # This file originally written by Neil Tiffin (address@hidden).
 #
-# $Revision: 1.8 $ $Date: 2001/06/22 20:33:54 $ $Author: ntiffin $
+# $Revision: 1.9 $ $Date: 2001/07/04 22:57:24 $ $Author: ntiffin $
 #
 include "../../../base/units/classes/units.gcd"
 include "../../../supply-chain/vendor/classes/vendor.gcd"
@@ -31,26 +31,26 @@
 {
 
   # -------------------------------------------------------------------------
-  # 
+  # Add purchasing info to vendor object.
   # -------------------------------------------------------------------------
-  # EXTEND vendor::vendor
-  class vendor : vendor::vendor
+  EXTEND vendor::vendor
   {
     text    notes;
         
     help en notes  "These notes will show up in the purchasing form"
-                              "with an option to print on the purchase order.";
+                   "with an option to print on the purchase order.";
   };
     
   # -------------------------------------------------------------------------
   # 
   # -------------------------------------------------------------------------
-  # EXTEND inventory::stock_item
-  class item : inventory::stock_item
+  class item : base_item::item
   {
     char    buyer_code<8>;
     text    purch_text;
     char    purch_desc<100>;
+    
+    [] recommended vendor;
    
     help en buyer_code  "The buyer code is a reference to the buyer 
responsible"
                         "for purchasing this product.";
@@ -59,14 +59,15 @@
                         "special notes.";
     help en purch_desc  "The purchasing description replaces the normal item"
                         "description for purchase orders only.";
-    };
+  };
         
   # -------------------------------------------------------------------------
-  # 
+  # buyer - employees responsible for this purchase group
   # -------------------------------------------------------------------------
-  class buyer {
-    char    employee_id<8>;
-    char    buyer_code<8>;
+  class buyer
+  {
+    char                group<8>;
+    person::employee [] buyers;
   };
     
   # -------------------------------------------------------------------------
@@ -79,47 +80,76 @@
     text      text;      # for keeping standard text that is not by item
                          # normally for various special conditions
   };
-        
+  
   # -------------------------------------------------------------------------
-  # 
+  # approval_list - a company wide list of all chains of approval.
+  # ------------------------------------------------------------------------
+  class approval_list
+  {
+    char                name<25>;
+    person::employee [] employee;
+  };
+  
   # -------------------------------------------------------------------------
-  class recommended_vendor
+  # approval - the status of this po/req chain of approval
+  # ------------------------------------------------------------------------
+  class approval
+  {
+    char              name<25>;  #list name
+    person::employee *employee;
+    boolean           approved     = false;
+    boolean           not_approved = false;
+    pur::header      *what;      # what was approved
+  };
+  
+  # -------------------------------------------------------------------------
+  # status - overall status of this document
+  #   req, approved req, po, approved po, sent po, closed po
+  #   not approved req, not approved po.
+  # ------------------------------------------------------------------------
+  class status
   {
-    char    item_number<25>;
-    char    vendor_id<5>;
+    char name<25>;
   };
 
   # -------------------------------------------------------------------------
   # 
   # -------------------------------------------------------------------------
-  class order_detail
+  class detail
   {
-    char             po_number<5>;
+    pur::header     *header;
+    
     int              line_number;      # the line on the po
     char             item_number<25>;  # the item ordered
+    pur::item       *item;             # optional
     char             purch_desc<100>;
     text             purch_text;       # for free form notes by item.
-    float            price;            # should be changed to currency
+    currency::money *price;
     unit::quantity   quantity;
-    char             units_code<3>;
     date             required_date;
   };
     
   # -------------------------------------------------------------------------
-  # 
+  # header - for requisitions or purchase orders
   # -------------------------------------------------------------------------
-  class order_header
+  class header
   {
-    char    po_number<5>;
-    char    vendor_id<5>;
+    char    id<10>;
+    
+    vendor::vendor *vendor;
         
-    char    payment_terms<25>;
-    char    delivery_terms<25>;
+    char    payment_terms<25>;  # TODO should be pointer
+    char    delivery_terms<25>; # TODO should be pointer
         
     date    date_placed;
     date    date_completed;
+    
+    pur::approval [] approval;
+    pur::status     *status;
         
     text    po_notes;        # free form notes for the total purchase order
+    
+    pur::detail [] detail;
 
     help en po_notes  "These notes will show up in the purchasing form"
                       "with an option to print on the purchase order.";
Index: gnue/gnue-config/supply-chain/purchasing/doc/purchasing.sgml
diff -u gnue/gnue-config/supply-chain/purchasing/doc/purchasing.sgml:1.4 
gnue/gnue-config/supply-chain/purchasing/doc/purchasing.sgml:1.5
--- gnue/gnue-config/supply-chain/purchasing/doc/purchasing.sgml:1.4    Tue Mar 
 6 08:12:51 2001
+++ gnue/gnue-config/supply-chain/purchasing/doc/purchasing.sgml        Wed Jul 
 4 15:57:24 2001
@@ -3,7 +3,7 @@
        <sect1>
                <title>Requirements</title> 
                <para>
-                       This chapter is $Revision: 1.4 $ $Date: 2001/03/06 
16:12:51 $. 
+                       This chapter is $Revision: 1.5 $ $Date: 2001/07/04 
22:57:24 $. 
                </para>
                <sect2>
                        <title>Business Requirements</title> 
@@ -222,6 +222,11 @@
                                <listitem>
                                        <para>
                                                Lead time calculation is the 
time from issuing of the purchase order to vendor to the time the item is 
received into inventory in calendar days. 
+                                       </para>
+                               </listitem>
+                               <listitem>
+                                       <para>
+                                               pur::approval - if approved and 
not_approved are false then the document has not been reviewed, upon review 
either approved can be selected or not_approved, but not both. 
                                        </para>
                                </listitem>
                        </orderedlist>



reply via email to

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