Skip to content

Commit d673d50

Browse files
committed
fixing formatters
1 parent 00a0124 commit d673d50

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

webapp/view/Detail.view.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@
2222
title="{TripActivityName}"
2323
number="{
2424
path: 'EstimatedCost/Value',
25-
type: 'sap.ui.model.type.Float'
25+
type: 'sap.ui.model.type.Float',
26+
formatOptions: {
27+
minFractionDigits: 2,
28+
maxFractionDigits: 2
29+
}
2630
}"
2731
numberUnit="{EstimatedCost/Currency}">
2832
<attributes>
29-
<ObjectAttribute text="{RequesterLastname}, {RequesterFirstName}" />
33+
<ObjectAttribute text="{RequesterLastName}, {RequesterFirstName}" />
3034
</attributes>
3135
<statuses>
3236
<ObjectStatus text="{

webapp/view/Master.view.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@
6565
title="{TripActivityName}"
6666
number="{
6767
path: 'EstimatedCost/Value',
68-
type: 'sap.ui.model.type.Float'
68+
type: 'sap.ui.model.type.Float',
69+
formatOptions: {
70+
minFractionDigits: 2,
71+
maxFractionDigits: 2
72+
}
6973
}"
7074
numberUnit="{EstimatedCost/Currency}">
7175
<attributes>

0 commit comments

Comments
 (0)