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
c7f03c84
Commit
c7f03c84
authored
Nov 24, 2021
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update issue tia
parent
02463a4b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
59 deletions
+128
-59
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+28
-2
CashFlowOLPA.js
src/container/OutlookPA/CashFlowOLPA.js
+99
-56
ProfitLossOLPA.js
src/container/OutlookPA/ProfitLossOLPA.js
+1
-1
No files found.
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
c7f03c84
...
@@ -674,8 +674,34 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -674,8 +674,34 @@ export default class BalanceSheetOLPA extends Component {
return
a
return
a
}
}
const
handleTotal
=
(
tableMeta
)
=>
{
let
total
=
0
tableMeta
.
rowData
.
map
((
item
,
index
)
=>
{
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"profit (loss) mtd"
)
{
console
.
log
(
index
)
if
(
index
>=
7
&&
index
<=
18
)
{
console
.
log
(
item
.
value
+
"aaa"
)
if
(
item
.
value
==
undefined
)
{
total
+=
Number
(
item
)
}
else
{
total
+=
Number
(
item
.
value
)
}
}
}
})
if
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
value
==
undefined
)
{
// console.log([tableMeta.rowIndex][tableMeta.columnIndex])
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
value
=
total
}
console
.
log
(
total
)
return
total
}
const
handleValueFormula
=
(
value
,
tableMeta
,
column
,
periode
,
forecast
)
=>
{
const
handleValueFormula
=
(
value
,
tableMeta
,
column
,
periode
,
forecast
)
=>
{
// console.log(value)
// console.log(tableMeta.rowData[5])
let
splitFormula
=
String
(
tableMeta
.
rowData
[
3
]).
split
(
'@'
)
let
splitFormula
=
String
(
tableMeta
.
rowData
[
3
]).
split
(
'@'
)
let
baru
=
[]
let
baru
=
[]
let
anjay
=
[]
let
anjay
=
[]
...
@@ -769,7 +795,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -769,7 +795,7 @@ export default class BalanceSheetOLPA extends Component {
})
})
// console.log(baru)
// console.log(baru)
// console.log(anjay)
// console.log(anjay)
// if (tableMeta.rowData[5] == '
Profit (loss) MTD
') {
// if (tableMeta.rowData[5] == '
TOTAL CURRENT ASSETS
') {
// console.log(splitFormula)
// console.log(splitFormula)
// console.log(baru)
// console.log(baru)
// console.log(anjay)
// console.log(anjay)
...
@@ -1718,7 +1744,7 @@ export default class BalanceSheetOLPA extends Component {
...
@@ -1718,7 +1744,7 @@ export default class BalanceSheetOLPA extends Component {
type
=
"text"
type
=
"text"
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
value
=
{
Number
(
handleForecast
(
tableMeta
,
`
${
Number
(
this
.
props
.
periode
)}
`
,
19
)).
toFixed
(
1
)}
value
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"profit (loss) mtd"
?
Number
(
handleTotal
(
tableMeta
)).
toFixed
(
1
)
:
Number
(
handleForecast
(
tableMeta
,
`
${
Number
(
this
.
props
.
periode
)}
`
,
19
)).
toFixed
(
1
)}
/
>
/
>
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
...
...
src/container/OutlookPA/CashFlowOLPA.js
View file @
c7f03c84
This diff is collapsed.
Click to expand it.
src/container/OutlookPA/ProfitLossOLPA.js
View file @
c7f03c84
...
@@ -428,7 +428,7 @@ export default class ProfitLossOLPA extends Component {
...
@@ -428,7 +428,7 @@ export default class ProfitLossOLPA extends Component {
})
})
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
},
()
=>
{
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
2
3
].
length
>
0
)
{
if
(
item
[
2
4
].
length
>
0
)
{
console
.
log
(
'masuk'
)
console
.
log
(
'masuk'
)
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
})
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
})
}
}
...
...
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