Recurrent Invoices in 2.4 is not sending. Fixed by @Braath Waate.
[fa-stable.git] / inventory / includes / db / items_units_db.inc
index e1841f1cd8508a2fc8e1ae031639e5bd86fcae1f..d90b03b39e18944493aa4819da6826d756e49cb2 100644 (file)
@@ -43,9 +43,9 @@ function get_item_unit($unit)
 
 function get_unit_descr($unit)
 {
-       $sql = "SELECT description FROM ".TB_PREF."item_units WHERE abbr=".db_escape($unit);
+       $sql = "SELECT name FROM ".TB_PREF."item_units WHERE abbr=".db_escape($unit);
 
-       $result = db_query($sql, "could not unit description");
+       $result = db_query($sql, "could not retrieve unit description");
 
        $row = db_fetch_row($result);
        return $row[0];