* Add enclair_db option to UserDB.pm. Allows logging of enclair password
[interchange.git] / code / UI_Tag / read_shipping.coretag
1 # Copyright 2002-2007 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.  See the LICENSE file for details.
7
8 # $Id: read_shipping.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
9
10 UserTag read-shipping Order      file
11 UserTag read-shipping PosNumber  1
12 UserTag read-shipping addAttr
13 UserTag read-shipping Version    $Revision: 1.4 $
14 UserTag read-shipping Routine    <<EOR
15 sub {
16         my ($file, $opt) = @_;
17         my $status = read_shipping($file, $opt);
18         if(
19                 $Vend::Cfg->{Shipping_line}[0]->[0] eq 'code'
20                         and
21                 $Vend::Cfg->{Shipping_line}[0]->[1] eq 'description'
22                 )
23         {
24                 shift (@{ $Vend::Cfg->{Shipping_line} });
25                 delete $Vend::Cfg->{Shipping_desc}{code};
26         }
27         return $status;
28 }
29 EOR