Chapter 10. Base Item Module

10.1. Requirements

This chapter is $Revision: 1.1 $ $Date: 2003/01/05 00:00:27 $.

10.1.7. Business Object Definition

					
# base_item.gcd
#                  
# 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 (neilt@gnue.org).
#
# $Revision: 1.1 $ $Date: 2003/01/05 00:00:27 $ $Author: psu_gnue $
#

module base_item
{

  # -------------------------------------------------------------------------
  # type -
  # -------------------------------------------------------------------------
  class i_type
  {
    char    code<8>;
    char    description<100>;
  };

  # -------------------------------------------------------------------------
  # item - 
  # -------------------------------------------------------------------------
  class item
  {
    char      item_code<23>;
    char      short_desc<30>;
    char      long_desc<100>;
    char      keywords<250>;   # free form keywords used to look up this item
                               # this is not meant to replace specifications
                               # defined in other classes.
    base_item::i_type *i_type;
    
    UNIQUE INDEX ( item_code );
  };

};