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
f35c51ea
Commit
f35c51ea
authored
Apr 22, 2021
by
Faisal Hamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
fixed bug issue total ro - bs! See merge request
!1441
parents
5cbaf397
b5f6ad27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+9
-8
No files found.
src/container/RollingOutlook/BalanceSheetRO.js
View file @
f35c51ea
...
@@ -707,16 +707,17 @@ export default class BalanceSheetRO extends Component {
...
@@ -707,16 +707,17 @@ export default class BalanceSheetRO extends Component {
return
a
return
a
}
}
const
handleTotal
=
(
val
,
tableMeta
)
=>
{
const
handleTotal
=
(
tableMeta
)
=>
{
let
total
=
0
let
total
=
0
tableMeta
.
rowData
.
map
((
item
,
index
)
=>
{
tableMeta
.
rowData
.
map
((
item
,
index
)
=>
{
if
(
index
>=
7
&&
index
<=
18
)
{
if
(
index
==
18
)
{
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"profit (loss) mtd"
)
{
total
=
isNaN
(
item
)
?
Number
(
item
.
value
)
:
Number
(
item
)
total
+=
Number
(
item
.
value
)
// if (String(tableMeta.rowData[5]).toLocaleLowerCase() == "profit (loss) mtd") {
}
else
{
// total = Number(item.value)
total
+=
Number
(
item
)
// } else {
}
// total = Number(item)
// }
}
}
})
})
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
...
@@ -2318,7 +2319,7 @@ export default class BalanceSheetRO extends Component {
...
@@ -2318,7 +2319,7 @@ export default class BalanceSheetRO extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
val
,
tableMeta
)).
toFixed
(
1
)}
value
=
{
Number
(
handleTotal
(
tableMeta
)).
toFixed
(
1
)}
/
>
/
>
<
/span
>
<
/span
>
}
}
...
...
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