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
5f5db8a3
Commit
5f5db8a3
authored
Feb 24, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'
cf mb See merge request
!1718
parents
a595a633
3fa80b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+35
-1
No files found.
src/container/BudgetTahunan/CashFlow.js
View file @
5f5db8a3
...
@@ -739,6 +739,39 @@ export default class CashFlow extends Component {
...
@@ -739,6 +739,39 @@ export default class CashFlow extends Component {
return
total
return
total
}
}
const
handleFYTotal
=
(
val
,
tableMeta
)
=>
{
let
total
=
0
// dataTable2[tableMeta.rowIndex].map((item, index) => {
// if (index == 18) {
// if (index >= 6 && index <= 17) {
// let valItem = item.value == undefined || item.value == "" ? 0 : item.value
// total += Number(valItem)
// }
// }
// })
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
>=
7
&&
index
<=
18
)
{
let
valItem
=
item
.
value
==
undefined
||
item
.
value
==
""
?
0
:
item
.
value
total
+=
Number
(
valItem
)
}
})
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"cash at the beginning period"
)
{
let
totalBeginning
=
dataTable2
[
tableMeta
.
rowIndex
][
19
]
=
dataTable2
[
tableMeta
.
rowIndex
][
7
].
value
return
totalBeginning
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"cash at the end of the period"
)
{
let
totalEnd
=
dataTable2
[
tableMeta
.
rowIndex
][
19
]
=
dataTable2
[
tableMeta
.
rowIndex
][
18
].
value
return
totalEnd
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
19
]
=
total
return
total
}
// console.log(total);
}
let
columns
=
[
let
columns
=
[
{
{
name
:
""
,
name
:
""
,
...
@@ -3010,8 +3043,9 @@ export default class CashFlow extends Component {
...
@@ -3010,8 +3043,9 @@ export default class CashFlow extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
this
.
props
.
PLBSFAMSubmitted
?
Number
(
tableMeta
.
rowData
[
19
].
value
).
toFixed
(
1
)
:
Number
(
handleFYTotal
(
value
,
tableMeta
)).
toFixed
(
1
)}
// value={Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`, 20)).toFixed(1)}
// value={Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`, 20)).toFixed(1)}
value
=
{
value
}
//
value={value}
/
>
/
>
}
}
/
>
/
>
...
...
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