[interchange] Refrain from updating latest_subtotal session key on [subtotal nodiscount=1].

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit e42f2e7513dcf3cd5d23cad1e3cf2727a8f5d248
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Thu Jul 22 10:37:23 2010 +0200

    Refrain from updating latest_subtotal session key on [subtotal nodiscount=1].

 lib/Vend/Interpolate.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Interpolate.pm b/lib/Vend/Interpolate.pm
index 4462632..c02f6f1 100644
--- a/lib/Vend/Interpolate.pm
+++ b/lib/Vend/Interpolate.pm
@@ -5784,12 +5784,13 @@ sub subtotal {
 			$subtotal = $cost;
 		}
 
+		$Vend::Session->{latest_subtotal} = $subtotal;
+		
 		# Switch to original discount space if an actual switch occured.
 		switch_discount_space($oldspace) if $dspace and defined $oldspace;
 	}
 	
 	$Vend::Items = $save if defined $save;
-	$Vend::Session->{latest_subtotal} = $subtotal;
 
     return $subtotal;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.