changeset 198:9f79ddd5175d misc

Subtotals were not calculated in some cases. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 19 Feb 2011 22:20:22 +0200
parents c7c9110b955a
children 6994c88ef1cd
files prices.php
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prices.php	Mon Feb 14 01:44:39 2011 +0200
+++ b/prices.php	Sat Feb 19 22:20:22 2011 +0200
@@ -696,6 +696,7 @@
       $val * ($base + $add) * $factor);
 
       $numItems += $val;
+      $subTotal += $val * ($base + $add) * $factor;
     }
   }
   if ($numItems > 0)