diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 5a92116d44e..dd0d00c433c 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -444,7 +444,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) print ''; print ''; - print '
'.$langs->trans("Ref").''; + print ''.$langs->trans("Ref").''; if ($_error == 1) { print $langs->trans("RefAlreadyExists"); @@ -833,7 +833,7 @@ if ($_GET["id"] || $_GET["ref"]) print ''; print ''; print ''; - print ''; + print ''; print ''; print '
'.$langs->trans("Ref").'
'.$langs->trans("Ref").'
'.$langs->trans("Label").'
'.$langs->trans("VATRate").''; diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index ef500ae0fee..a890f73564e 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -518,4 +518,6 @@ insert into `llx_menu_const` (`rowid`, `fk_menu`, `fk_constraint`, `user`) value insert into `llx_menu_const` (`rowid`, `fk_menu`, `fk_constraint`, `user`) values (109, 5001, 6, 2); ALTER TABLE llx_product ADD COLUMN volume float DEFAULT NULL after weight_units; -ALTER TABLE llx_product ADD COLUMN volume_units tinyint DEFAULT NULL after volume; \ No newline at end of file +ALTER TABLE llx_product ADD COLUMN volume_units tinyint DEFAULT NULL after volume; + +ALTER TABLE llx_product modify ref varchar(32) NOT NULL; \ No newline at end of file diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index 7a0c1b49811..870345fce14 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -25,7 +25,7 @@ create table llx_product rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, tms timestamp, - ref varchar(16) NOT NULL, + ref varchar(32) NOT NULL, label varchar(255) NOT NULL, description text, note text,