+ $row = get_supplier($_POST['supplier_id']);
+ $_POST['dimension_id'] = @$row['dimension_id'];
+ $_POST['dimension2_id'] = @$row['dimension2_id'];
+ $dim = get_company_pref('use_dimension');
+ if ($dim > 0)
+ dimensions_list_row(_("Dimension").":", 'dimension_id',
+ null, true, ' ', false, 1, false);
+ else
+ hidden('dimension_id', 0);
+ if ($dim > 1)
+ dimensions_list_row(_("Dimension")." 2:", 'dimension2_id',
+ null, true, ' ', false, 2, false);
+ else
+ hidden('dimension2_id', 0);