/[drupal]/contributions/modules/ecommerce/ec_store/ec_store.module
ViewVC logotype

Diff of /contributions/modules/ecommerce/ec_store/ec_store.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.12.2.66, Sun Oct 25 02:32:55 2009 UTC revision 1.12.2.67, Mon Oct 26 01:36:00 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: ec_store.module,v 1.12.2.65 2009/10/20 02:55:29 davea Exp $  // $Id: ec_store.module,v 1.12.2.66 2009/10/25 02:32:55 davea Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 730  function ec_store_transaction_cache($txn Line 730  function ec_store_transaction_cache($txn
730   */   */
731  function ec_store_transaction_calc_gross($txn) {  function ec_store_transaction_calc_gross($txn) {
732    
   // no items exist on a pure donation transaction  
   if ($txn->type == 'ec_donate' && $txn->gross) {  
     return $txn->gross;  
   }  
   
733    $total = 0;    $total = 0;
734    foreach ((array)$txn->items as $item) {    foreach ((array)$txn->items as $item) {
735      $total+= ec_product_has_quantity($item) ? $item->price * $item->qty : $item->price;      $total+= ec_product_has_quantity($item) ? $item->price * $item->qty : $item->price;

Legend:
Removed from v.1.12.2.66  
changed lines
  Added in v.1.12.2.67

  ViewVC Help
Powered by ViewVC 1.1.2