[0000259] Item prices not transferring when using kit codes
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 6 Oct 2010 13:34:56 +0000 (13:34 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 6 Oct 2010 13:34:56 +0000 (13:34 +0000)
CHANGELOG.txt
sales/includes/sales_db.inc

index 8f22675535ad6ba78b011e5464586749b3b8f5c9..96f14374ec815fcefeae0d4f94f419bdff94a6f2 100644 (file)
@@ -26,6 +26,8 @@ $ /reporting/includes/reports_classes.inc
   config.default.php
 # Excel reports were missing their headers (due to change in report system).
 $ /reporting/includes/excel_report.inc
+# [0000259] Item prices not transferring when using kit codes 
+$ /sales/includes/sales_db.inc
 
 05-Oct-2010 Jusz Dobrowolski
 # [0000258] Broken src_id fields after sales document edition.
index a09311c6016a6d1ee119317e4a23097b1e6afc2a..260ba9b10b961c27c5740ccb74fb1d663bd847a6 100644 (file)
@@ -174,7 +174,7 @@ function get_kit_price($item_code, $currency, $sales_type_id, $factor=null,
                $kit_price = get_price( $item_code, $currency, $sales_type_id, 
                        $factor, $date);
 
-               if ($kit_price !== false) {
+               if ($kit_price !== 0) {
                        return $kit_price;
                }
        }