[interchange-cvs] interchange - heins modified lib/Vend/Order.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Thu Feb 10 01:45:42 EST 2005
User: heins
Date: 2005-02-10 06:45:40 GMT
Modified: lib/Vend Order.pm
Log:
* Refuse to increment quantity of free items.
Revision Changes Path
2.67 +3 -2 interchange/lib/Vend/Order.pm
rev 2.67, prev_rev 2.66
Index: Order.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Order.pm,v
retrieving revision 2.66
retrieving revision 2.67
diff -u -r2.66 -r2.67
--- Order.pm 7 Jun 2004 03:35:27 -0000 2.66
+++ Order.pm 10 Feb 2005 06:45:40 -0000 2.67
@@ -1,6 +1,6 @@
# Vend::Order - Interchange order routing routines
#
-# $Id: Order.pm,v 2.66 2004/06/07 03:35:27 mheins Exp $
+# $Id: Order.pm,v 2.67 2005/02/10 06:45:40 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -29,7 +29,7 @@
package Vend::Order;
require Exporter;
-$VERSION = substr(q$Revision: 2.66 $, 10);
+$VERSION = substr(q$Revision: 2.67 $, 10);
@ISA = qw(Exporter);
@@ -2515,6 +2515,7 @@
foreach $i (0 .. $#$cart) {
if ($cart->[$i]->{'code'} eq $code) {
next unless $base eq $cart->[$i]->{mv_ib};
+ next if $cart->[$i]->{mv_free_item};
$found = $i;
# Increment quantity. This is different than
# the standard handling because we are ordering
More information about the interchange-cvs
mailing list