Skip to content

Commit 9539fd6

Browse files
committed
Changed a bit the position and the descriptions of the data shown in viewProjectDetails, to make it more clear.
1 parent ca085dd commit 9539fd6

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

web/viewProjectDetails.php

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,21 @@
133133

134134
?>
135135
},{
136-
id: 'invoice',
137-
name:'invoice',
138-
fieldLabel: 'Invoice',
136+
id: 'movedHours',
137+
name:'movedHours',
138+
fieldLabel: 'Moved Hours',
139139
<?php
140140

141-
echo "value:'" . $project->getInvoice() . "'";
141+
echo "value:'" . $project->getMovedHours() . "'";
142142

143143
?>
144144
},{
145-
id: 'estHourCost',
146-
name:'estHourCost',
147-
fieldLabel: 'Estimated Hour Cost',
145+
id: 'invoice',
146+
name:'invoice',
147+
fieldLabel: 'Invoice',
148148
<?php
149149

150-
echo "value:'" . round($project->getEstHourInvoice(), 2, PHP_ROUND_HALF_DOWN) . "'";
150+
echo "value:'" . $project->getInvoice() . "'";
151151

152152
?>
153153
},{
@@ -164,7 +164,7 @@
164164
},{
165165
xtype: 'fieldset',
166166
columnWidth: 0.5,
167-
title: 'Current Work Data',
167+
title: 'Work Hours Data',
168168
width: 200,
169169
collapsible: true,
170170
colspan: 1,
@@ -175,6 +175,15 @@
175175
},
176176
defaultType:'displayfield',
177177
items: [{
178+
id: 'estimatedHoursWithMoved',
179+
name:'estimatedHoursWithMoved',
180+
fieldLabel: 'Estimated Hours',
181+
<?php
182+
183+
echo "value:'" . ($project->getEstHours()-$project->getMovedHours()) . "'";
184+
185+
?>
186+
},{
178187
id: 'workedHours',
179188
name:'workedHours',
180189
fieldLabel: 'Worked Hours',
@@ -186,7 +195,7 @@
186195
},{
187196
id: 'workDeviation',
188197
name:'workDeviation',
189-
fieldLabel: 'Work Deviation',
198+
fieldLabel: 'Deviation',
190199
<?php
191200

192201
echo "value:'" . round($project->getAbsDev(), 2, PHP_ROUND_HALF_DOWN) . "'";
@@ -195,7 +204,7 @@
195204
},{
196205
id: 'workDeviationPercent',
197206
name:'workDeviationPercent',
198-
fieldLabel: 'Work Deviation %',
207+
fieldLabel: 'Deviation %',
199208
<?php
200209

201210
echo "value:'" . round($project->getPercDev(), 2, PHP_ROUND_HALF_DOWN) . "'";
@@ -207,7 +216,7 @@
207216
xtype: 'fieldset',
208217
columnWidth: 0.5,
209218
width: 200,
210-
title: 'Current Invoice Data',
219+
title: 'Price Per Hour Data',
211220
collapsible: true,
212221
colspan:1,
213222
autoHeight: true,
@@ -217,9 +226,18 @@
217226
},
218227
defaultType:'displayfield',
219228
items: [{
229+
id: 'estInvoice',
230+
name:'estInvoice',
231+
fieldLabel: 'Estimated Price',
232+
<?php
233+
234+
echo "value:'" . round($project->getEstHourInvoice(), 2, PHP_ROUND_HALF_DOWN) . "'";
235+
236+
?>
237+
},{
220238
id: 'currentInvoice',
221239
name:'currentInvoice',
222-
fieldLabel: 'Current Invoice',
240+
fieldLabel: 'Current Price',
223241
<?php
224242

225243
echo "value:'" . round($project->getWorkedHourInvoice(), 2, PHP_ROUND_HALF_DOWN) . "'";
@@ -228,7 +246,7 @@
228246
},{
229247
id: 'invoiceDeviation',
230248
name:'invoiceDeviation',
231-
fieldLabel: 'Invoice Deviation',
249+
fieldLabel: 'Deviation',
232250
<?php
233251

234252
echo "value:'" . round($project->getWorkedHourInvoiceAbsoluteDeviation(), 2, PHP_ROUND_HALF_DOWN) . "'";
@@ -237,7 +255,7 @@
237255
},{
238256
id: 'invoiceDeviationPercent',
239257
name:'invoiceDeviationPercent',
240-
fieldLabel: 'Invoice Deviation %',
258+
fieldLabel: 'Deviation %',
241259
<?php
242260

243261
echo "value:'" . round($project->getWorkedHourInvoiceRelativeDeviation(), 2, PHP_ROUND_HALF_DOWN) . "'";

0 commit comments

Comments
 (0)