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
864d1ff0
Commit
864d1ff0
authored
May 07, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'GGMAC' into 'master'
update BS See merge request
!1466
parents
3117fb94
f2b2151e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+12
-4
No files found.
src/container/RollingOutlook/BalanceSheetRO.js
View file @
864d1ff0
...
@@ -689,7 +689,7 @@ export default class BalanceSheetRO extends Component {
...
@@ -689,7 +689,7 @@ export default class BalanceSheetRO extends Component {
return
total
return
total
}
}
const
handleValueFormula
=
(
value
,
tableMeta
,
colIdx
)
=>
{
const
handleValueFormula
=
(
value
,
tableMeta
,
colIdx
,
periode
,
forecast
)
=>
{
let
splitFormula
=
String
(
tableMeta
.
rowData
[
3
]).
split
(
/
([
()@
])
/
)
let
splitFormula
=
String
(
tableMeta
.
rowData
[
3
]).
split
(
/
([
()@
])
/
)
let
baru
=
[]
let
baru
=
[]
let
anjay
=
[]
let
anjay
=
[]
...
@@ -722,7 +722,15 @@ export default class BalanceSheetRO extends Component {
...
@@ -722,7 +722,15 @@ export default class BalanceSheetRO extends Component {
anjay
.
push
(
item
)
anjay
.
push
(
item
)
}
else
{
}
else
{
if
(
String
(
item
).
includes
(
'#'
))
{
if
(
String
(
item
).
includes
(
'#'
))
{
if
(
String
(
item
).
includes
(
'[M-1]'
))
{
if
(
forecast
!==
undefined
)
{
let
forecastt
=
0
forecast
.
map
((
items
,
index
)
=>
{
if
(
items
.
periode
==
periode
)
{
forecastt
+=
Number
(
items
.
value
)
}
})
anjay
.
push
(
forecastt
)
}
else
if
(
String
(
item
).
includes
(
'[M-1]'
))
{
let
tst
=
String
(
item
).
replace
(
'[M-1]'
,
''
)
let
tst
=
String
(
item
).
replace
(
'[M-1]'
,
''
)
let
data
=
tableMeta
.
columnIndex
==
7
?
18
:
tableMeta
.
columnIndex
-
1
let
data
=
tableMeta
.
columnIndex
==
7
?
18
:
tableMeta
.
columnIndex
-
1
let
period
=
data
==
18
?
Number
(
this
.
props
.
periode
)
-
1
:
this
.
props
.
periode
let
period
=
data
==
18
?
Number
(
this
.
props
.
periode
)
-
1
:
this
.
props
.
periode
...
@@ -2336,8 +2344,8 @@ export default class BalanceSheetRO extends Component {
...
@@ -2336,8 +2344,8 @@ export default class BalanceSheetRO extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
//
value={Number(handleForecast(tableMeta, `${Number(this.props.periode)}`, 19)).toFixed(1)}
value
=
{
Number
(
handleForecast
(
tableMeta
,
`
${
Number
(
this
.
props
.
periode
)}
`
,
19
)).
toFixed
(
1
)}
value
=
{
Number
(
val
).
toFixed
(
1
)}
//
value={Number(val).toFixed(1)}
/
>
/
>
}
}
/
>
/
>
...
...
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