Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
16387840
Commit
16387840
authored
Jan 28, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blank ratio
parent
6ed80e3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
48 deletions
+48
-48
SubHolding.js
src/container/Laporan/SubHolding.js
+24
-24
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+24
-24
No files found.
src/container/Laporan/SubHolding.js
View file @
16387840
...
...
@@ -2051,18 +2051,18 @@ export default class SubHolding extends Component {
// console.log(indexIDzz)
if
(
indexIDzz
!=
-
1
)
{
dataTable2
.
push
([...
dataTable
[
indexIDzz
],
Number
(
items
.
ratio
.
monthly_january
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_february
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_march
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_april
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_may
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_june
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_july
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_august
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_september
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_october
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_november
).
toFixed
(
2
),
Number
(
items
.
ratio
.
monthly_december
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_january
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_january
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_february
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_february
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_march
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_march
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_april
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_april
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_may
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_may
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_june
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_june
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_july
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_july
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_august
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_august
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_september
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_september
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_october
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_october
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_november
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_november
).
toFixed
(
2
),
String
(
items
.
ratio
.
monthly_december
)
==
""
?
""
:
Number
(
items
.
ratio
.
monthly_december
).
toFixed
(
2
),
])
}
if
(
items
.
children
!==
null
)
{
...
...
@@ -2075,18 +2075,18 @@ export default class SubHolding extends Component {
}
dataTable2
.
push
([...
dataTable
[
indexID
],
Number
(
item
.
ratio
.
monthly_january
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_february
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_march
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_april
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_may
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_june
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_july
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_august
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_september
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_october
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_november
).
toFixed
(
2
),
Number
(
item
.
ratio
.
monthly_december
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_january
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_january
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_february
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_february
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_march
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_march
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_april
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_april
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_may
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_may
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_june
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_june
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_july
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_july
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_august
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_august
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_september
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_september
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_october
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_october
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_november
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_november
).
toFixed
(
2
),
String
(
item
.
ratio
.
monthly_december
)
==
""
?
""
:
Number
(
item
.
ratio
.
monthly_december
).
toFixed
(
2
),
])
if
(
item
.
children
!==
null
)
{
...
...
src/container/Laporan/TableSubHolding.js
View file @
16387840
...
...
@@ -8353,7 +8353,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[22]).toFixed(2)}
value={
String(tableMeta.rowData[22]) === "" ? "" :
Number(tableMeta.rowData[22]).toFixed(2)}
/>
}
/>
...
...
@@ -8396,7 +8396,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[23]).toFixed(2)}
value={
String(tableMeta.rowData[23]) === "" ? "" :
Number(tableMeta.rowData[23]).toFixed(2)}
/>
}
/>
...
...
@@ -8439,7 +8439,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[24]).toFixed(2)}
value={
String(tableMeta.rowData[24]) === "" ? "" :
Number(tableMeta.rowData[24]).toFixed(2)}
/>
}
/>
...
...
@@ -8482,7 +8482,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[25]).toFixed(2)}
value={
String(tableMeta.rowData[25]) === "" ? "" :
Number(tableMeta.rowData[25]).toFixed(2)}
/>
}
/>
...
...
@@ -8527,7 +8527,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[26]).toFixed(2)}
value={
String(tableMeta.rowData[26]) === "" ? "" :
Number(tableMeta.rowData[26]).toFixed(2)}
/>
}
/>
...
...
@@ -8570,7 +8570,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[27]).toFixed(2)}
value={
String(tableMeta.rowData[27]) === "" ? "" :
Number(tableMeta.rowData[27]).toFixed(2)}
/>
}
/>
...
...
@@ -8613,7 +8613,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[28]).toFixed(2)}
value={
String(tableMeta.rowData[28]) === "" ? "" :
Number(tableMeta.rowData[28]).toFixed(2)}
/>
}
/>
...
...
@@ -8656,7 +8656,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[29]).toFixed(2)}
value={
String(tableMeta.rowData[29]) === "" ? "" :
Number(tableMeta.rowData[29]).toFixed(2)}
/>
}
/>
...
...
@@ -8701,7 +8701,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[30]).toFixed(2)}
value={
String(tableMeta.rowData[30]) === "" ? "" :
Number(tableMeta.rowData[30]).toFixed(2)}
/>
}
/>
...
...
@@ -8744,7 +8744,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[31]).toFixed(2)}
value={
String(tableMeta.rowData[31]) === "" ? "" :
Number(tableMeta.rowData[31]).toFixed(2)}
/>
}
/>
...
...
@@ -8787,7 +8787,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[32]).toFixed(2)}
value={
String(tableMeta.rowData[32]) === "" ? "" :
Number(tableMeta.rowData[32]).toFixed(2)}
/>
}
/>
...
...
@@ -8830,7 +8830,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[33]).toFixed(2)}
value={
String(tableMeta.rowData[33]) === "" ? "" :
Number(tableMeta.rowData[33]).toFixed(2)}
/>
}
/>
...
...
@@ -8991,7 +8991,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[34]).toFixed(2)}
value={
String(tableMeta.rowData[34]) === "" ? "" :
Number(tableMeta.rowData[34]).toFixed(2)}
/>
}
/>
...
...
@@ -9034,7 +9034,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[35]).toFixed(2)}
value={
String(tableMeta.rowData[35]) === "" ? "" :
Number(tableMeta.rowData[35]).toFixed(2)}
/>
}
/>
...
...
@@ -9077,7 +9077,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[36]).toFixed(2)}
value={
String(tableMeta.rowData[36]) === "" ? "" :
Number(tableMeta.rowData[36]).toFixed(2)}
/>
}
/>
...
...
@@ -9120,7 +9120,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[37]).toFixed(2)}
value={
String(tableMeta.rowData[37]) === "" ? "" :
Number(tableMeta.rowData[37]).toFixed(2)}
/>
}
/>
...
...
@@ -9165,7 +9165,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[38]).toFixed(2)}
value={
String(tableMeta.rowData[38]) === "" ? "" :
Number(tableMeta.rowData[38]).toFixed(2)}
/>
}
/>
...
...
@@ -9208,7 +9208,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[39]).toFixed(2)}
value={
String(tableMeta.rowData[39]) === "" ? "" :
Number(tableMeta.rowData[39]).toFixed(2)}
/>
}
/>
...
...
@@ -9251,7 +9251,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[40]).toFixed(2)}
value={
String(tableMeta.rowData[40]) === "" ? "" :
Number(tableMeta.rowData[40]).toFixed(2)}
/>
}
/>
...
...
@@ -9294,7 +9294,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[41]).toFixed(2)}
value={
String(tableMeta.rowData[41]) === "" ? "" :
Number(tableMeta.rowData[41]).toFixed(2)}
/>
}
/>
...
...
@@ -9339,7 +9339,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[42]).toFixed(2)}
value={
String(tableMeta.rowData[42]) === "" ? "" :
Number(tableMeta.rowData[42]).toFixed(2)}
/>
}
/>
...
...
@@ -9382,7 +9382,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[43]).toFixed(2)}
value={
String(tableMeta.rowData[43]) === "" ? "" :
Number(tableMeta.rowData[43]).toFixed(2)}
/>
}
/>
...
...
@@ -9425,7 +9425,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[44]).toFixed(2)}
value={
String(tableMeta.rowData[44]) === "" ? "" :
Number(tableMeta.rowData[44]).toFixed(2)}
/>
}
/>
...
...
@@ -9468,7 +9468,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={0.0}
value={Number(tableMeta.rowData[45]).toFixed(2)}
value={
String(tableMeta.rowData[45]) === "" ? "" :
Number(tableMeta.rowData[45]).toFixed(2)}
/>
}
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment