From 435ef3594a852db2ee2f24b57589aec39481a66e Mon Sep 17 00:00:00 2001 From: Philippe Grand Date: Mon, 22 Mar 2010 13:32:55 +0000 Subject: [PATCH] add volume unit and measure within products --- htdocs/html.formproduct.class.php | 7 +++++++ htdocs/langs/fr_FR/other.lang | 4 ++++ htdocs/product.class.php | 10 +++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/htdocs/html.formproduct.class.php b/htdocs/html.formproduct.class.php index 77ae6cd2ec7..e71a11c2477 100644 --- a/htdocs/html.formproduct.class.php +++ b/htdocs/html.formproduct.class.php @@ -159,6 +159,13 @@ class FormProduct $measuring_units[-6] = $langs->trans("VolumeUnitcm3"); $measuring_units[-9] = $langs->trans("VolumeUnitmm3"); } + else if ($measuring_style == 'volume_liquide') + { + $measuring_units[0] = $langs->trans("VolumeUnitm3"); + $measuring_units[-3] = $langs->trans("VolumeUnitl"); + $measuring_units[-4] = $langs->trans("VolumeUnitdl"); + $measuring_units[-6] = $langs->trans("VolumeUnitml"); + } print '