Fixed bug 0000008
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 26 Jun 2008 19:15:43 +0000 (19:15 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 26 Jun 2008 19:15:43 +0000 (19:15 +0000)
CHANGELOG.txt
sales/includes/db/sales_types_db.inc

index f1d9676b70e371f5ca66accc804580a371e35f17..85bbb095ce85ba5a486ed40a6757ecb1877bd67a 100644 (file)
@@ -34,6 +34,8 @@ $ /includes/ui/ui_lists.inc
   /purchasing/po_entry_items.php
 ! Changes to items_cart API (line_items indexed by line# instead of stock_id)
 $ /includes/ui/items_cart.inc
+# Fixed bug 0000008 (call to no more existing function)
+$ /sales/includes/db/sales_types_db.inc
 
 25-Jun-2008 Joe Hunt
 # Fixed 'div end out of order' in invoice_ui.inc causing the newwave bug with missing menu
index 4bde37506bf08cc65b12fe54ff816b6fa8da8ec2..85c83420d3bacf5029f9224007d04d41dc860ecf 100644 (file)
@@ -2,11 +2,7 @@
 
 function add_sales_type($name, $tax_included, $factor)
 {
-       // maximum one base price list
-         clear_base_sales_type();
-
        $sql = "INSERT INTO ".TB_PREF."sales_types (sales_type,tax_included,factor) VALUES (".db_escape($name).",'$tax_included',$factor)";
-               
        db_query($sql, "could not add sales type");             
 }