@@ -124,14 +125,19 @@ for {set i 1} {$i < $csv_files_len} {incr i} {
if {$task_type_id == 0}{ append errmsg "<li>Didn't find Task Type '$task_type'\n"}
}
set material_id [db_string get_uom_id "select category_id from im_categories where category_type='Intranet Translation Subject Area' and category=:material" -default ""]
if {![string equal ""$material]}{
set material_id [db_string matid "select material_id from im_materials where lower(trim(material_name)) = lower(trim(:material))" -default ""]
if {"" == $material_id}{
set material_id [db_string matid "select material_id from im_materials where lower(trim(material_nr)) = lower(trim(:material))" -default ""]
}
}
# It doesn't matter whether prices are given in European "," or American "." decimals