From 8fc2677452b51f0d9c8025abb97be39fe3f2d259 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 25 Jan 2021 08:42:24 +0800 Subject: [PATCH] * Finish task #9067. --- module/custom/view/estimate.html.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/module/custom/view/estimate.html.php b/module/custom/view/estimate.html.php index a22b601039..f1e2daa8ad 100644 --- a/module/custom/view/estimate.html.php +++ b/module/custom/view/estimate.html.php @@ -42,15 +42,20 @@ $lang->custom->system[] = 'estimate';
- custom->conceptOptions->hourPoint[0]; - if($unit == 1) echo $lang->custom->unitList['efficiency'] . $lang->custom->conceptOptions->hourPoint[1]; - if($unit == 2) echo $lang->custom->unitList['efficiency'] . $lang->custom->conceptOptions->hourPoint[2]; - ?> + custom->conceptOptions->hourPoint[0]; + } + else + { + echo $lang->custom->unitList['efficiency'] . $lang->custom->conceptOptions->hourPoint[$unit]; + } + ?>