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
920c43d1
Commit
920c43d1
authored
Nov 18, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-' into 'master'
Deni See merge request
!674
parents
3e455b4d
47ec8f59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+29
-28
No files found.
src/container/BudgetTahunan/ProfitLoss.js
View file @
920c43d1
...
...
@@ -122,18 +122,18 @@ export default class ProfitLoss extends Component {
item
.
description
,
item
.
profit_loss
.
notes
===
""
?
null
:
item
.
profit_loss
.
notes
,
item
.
profit_loss
.
total_actual_before
===
null
?
"0"
:
item
.
profit_loss
.
total_actual_before
===
""
?
"0"
:
item
.
profit_loss
.
total_actual_before
,
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
january
,
formula
:
item
.
profit_loss
.
january_formula
}
:
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
february
,
formula
:
item
.
profit_loss
.
february_formula
}
:
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
march
,
formula
:
item
.
profit_loss
.
march_formula
}
:
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
april
,
formula
:
item
.
profit_loss
.
april_formula
}
:
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
may
,
formula
:
item
.
profit_loss
.
may_formula
}
:
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
june
,
formula
:
item
.
profit_loss
.
june_formula
}
:
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
july
,
formula
:
item
.
profit_loss
.
july_formula
}
:
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
august
,
formula
:
item
.
profit_loss
.
august_formula
}
:
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
september
,
formula
:
item
.
profit_loss
.
september_formula
}
:
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
october
,
formula
:
item
.
profit_loss
.
october_formula
}
:
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
november
,
formula
:
item
.
profit_loss
.
november_formula
}
:
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
december
,
formula
:
item
.
profit_loss
.
december_formula
}
:
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
),
item
.
profit_loss
.
total_current_year
,
item
.
profit_loss
.
total_next_year
,
item
.
profit_loss
.
total_more_year
,
...
...
@@ -158,18 +158,18 @@ export default class ProfitLoss extends Component {
item
.
description
,
item
.
profit_loss
.
notes
===
""
?
null
:
item
.
profit_loss
.
notes
,
item
.
profit_loss
.
total_actual_before
===
null
?
"0"
:
item
.
profit_loss
.
total_actual_before
===
""
?
"0"
:
item
.
profit_loss
.
total_actual_before
,
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
january
,
formula
:
item
.
profit_loss
.
january_formula
}
:
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
february
,
formula
:
item
.
profit_loss
.
february_formula
}
:
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
march
,
formula
:
item
.
profit_loss
.
march_formula
}
:
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
april
,
formula
:
item
.
profit_loss
.
april_formula
}
:
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
may
,
formula
:
item
.
profit_loss
.
may_formula
}
:
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
june
,
formula
:
item
.
profit_loss
.
june_formula
}
:
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
july
,
formula
:
item
.
profit_loss
.
july_formula
}
:
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
august
,
formula
:
item
.
profit_loss
.
august_formula
}
:
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
september
,
formula
:
item
.
profit_loss
.
september_formula
}
:
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
october
,
formula
:
item
.
profit_loss
.
october_formula
}
:
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
november
,
formula
:
item
.
profit_loss
.
november_formula
}
:
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
profit_loss
.
december
,
formula
:
item
.
profit_loss
.
december_formula
}
:
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
january
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
february
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
march
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
april
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
may
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
june
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
july
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
august
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
september
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
october
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
november
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
)
:
Number
(
item
.
profit_loss
.
december
).
toFixed
(
1
),
item
.
profit_loss
.
total_current_year
,
item
.
profit_loss
.
total_next_year
,
item
.
profit_loss
.
total_more_year
,
...
...
@@ -564,7 +564,7 @@ export default class ProfitLoss extends Component {
let
opet
=
""
arrayFormula
.
map
((
item
,
indexs
)
=>
{
if
(
item
==
'X'
)
{
tambahan
=
true
tambahan
=
true
}
else
if
(
item
==
'-'
||
item
==
'+'
||
item
==
'/'
||
item
==
'*'
)
{
arrayJumlah
.
push
(
item
)
}
else
{
...
...
@@ -588,9 +588,10 @@ export default class ProfitLoss extends Component {
// operator.push(item)
// }
})
// if (String(tableMeta.rowData[5]) == "Unit Business/ Brand/ SubCo 1") {
// console.log(arrayFormula)
// console.log(arrayJumlah)
// if (String(tableMeta.rowData[5]) == "Net Trading Profit (TPAT)") {
// console.log(tableMeta.rowData[3])
// console.log(arrayFormula)
// console.log(arrayJumlah)
// }
let
array
=
arrayJumlah
...
...
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