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
7af543de
Commit
7af543de
authored
Jul 26, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RO BS
parent
bcce0069
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
35 deletions
+64
-35
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+63
-34
RollingOutlook.js
src/container/RollingOutlook/RollingOutlook.js
+1
-1
No files found.
src/container/RollingOutlook/BalanceSheetRO.js
View file @
7af543de
...
@@ -212,18 +212,33 @@ export default class BalanceSheetRO extends Component {
...
@@ -212,18 +212,33 @@ export default class BalanceSheetRO extends Component {
item
.
level
,
item
.
level
,
item
.
description
,
item
.
description
,
item
.
balance_sheet
.
total_last_year
===
""
?
"0"
:
item
.
balance_sheet
.
total_last_year
,
item
.
balance_sheet
.
total_last_year
===
""
?
"0"
:
item
.
balance_sheet
.
total_last_year
,
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
january
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
january
,
formula
:
item
.
balance_sheet
.
january_formula
}
:
Number
(
item
.
balance_sheet
.
january
).
toFixed
(
1
),
// for simulasi
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
february
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
february
,
formula
:
item
.
balance_sheet
.
february_formula
}
:
Number
(
item
.
balance_sheet
.
february
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
january
,
formula
:
item
.
balance_sheet
.
january_formula
}
:
Number
(
item
.
balance_sheet
.
january
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
march
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
march
,
formula
:
item
.
balance_sheet
.
march_formula
}
:
Number
(
item
.
balance_sheet
.
march
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
february
,
formula
:
item
.
balance_sheet
.
february_formula
}
:
Number
(
item
.
balance_sheet
.
february
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
april
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
april
,
formula
:
item
.
balance_sheet
.
april_formula
}
:
Number
(
item
.
balance_sheet
.
april
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
march
,
formula
:
item
.
balance_sheet
.
march_formula
}
:
Number
(
item
.
balance_sheet
.
march
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
may
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
may
,
formula
:
item
.
balance_sheet
.
may_formula
}
:
Number
(
item
.
balance_sheet
.
may
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
april
,
formula
:
item
.
balance_sheet
.
april_formula
}
:
Number
(
item
.
balance_sheet
.
april
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
june
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
june
,
formula
:
item
.
balance_sheet
.
june_formula
}
:
Number
(
item
.
balance_sheet
.
june
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
may
,
formula
:
item
.
balance_sheet
.
may_formula
}
:
Number
(
item
.
balance_sheet
.
may
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
july
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
july
,
formula
:
item
.
balance_sheet
.
july_formula
}
:
Number
(
item
.
balance_sheet
.
july
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
june
,
formula
:
item
.
balance_sheet
.
june_formula
}
:
Number
(
item
.
balance_sheet
.
june
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
august
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
august
,
formula
:
item
.
balance_sheet
.
august_formula
}
:
Number
(
item
.
balance_sheet
.
august
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
july
,
formula
:
item
.
balance_sheet
.
july_formula
}
:
Number
(
item
.
balance_sheet
.
july
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
september
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
september
,
formula
:
item
.
balance_sheet
.
september_formula
}
:
Number
(
item
.
balance_sheet
.
september
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
august
,
formula
:
item
.
balance_sheet
.
august_formula
}
:
Number
(
item
.
balance_sheet
.
august
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
october
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
october
,
formula
:
item
.
balance_sheet
.
october_formula
}
:
Number
(
item
.
balance_sheet
.
october
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
september
,
formula
:
item
.
balance_sheet
.
september_formula
}
:
Number
(
item
.
balance_sheet
.
september
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
november
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
november
,
formula
:
item
.
balance_sheet
.
november_formula
}
:
Number
(
item
.
balance_sheet
.
november
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
october
,
formula
:
item
.
balance_sheet
.
october_formula
}
:
Number
(
item
.
balance_sheet
.
october
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
december
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
december
,
formula
:
item
.
balance_sheet
.
december_formula
}
:
Number
(
item
.
balance_sheet
.
december
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
november
,
formula
:
item
.
balance_sheet
.
november_formula
}
:
Number
(
item
.
balance_sheet
.
november
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
december
,
formula
:
item
.
balance_sheet
.
december_formula
}
:
Number
(
item
.
balance_sheet
.
december
).
toFixed
(
1
),
// yg asli
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.january).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.january, formula: item.balance_sheet.january_formula } : Number(item.balance_sheet.january).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.february).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.february, formula: item.balance_sheet.february_formula } : Number(item.balance_sheet.february).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.march).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.march, formula: item.balance_sheet.march_formula } : Number(item.balance_sheet.march).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.april).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.april, formula: item.balance_sheet.april_formula } : Number(item.balance_sheet.april).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.may).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.may, formula: item.balance_sheet.may_formula } : Number(item.balance_sheet.may).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.june).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.june, formula: item.balance_sheet.june_formula } : Number(item.balance_sheet.june).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.july).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.july, formula: item.balance_sheet.july_formula } : Number(item.balance_sheet.july).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.august).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.august, formula: item.balance_sheet.august_formula } : Number(item.balance_sheet.august).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.september).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.september, formula: item.balance_sheet.september_formula } : Number(item.balance_sheet.september).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.october).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.october, formula: item.balance_sheet.october_formula } : Number(item.balance_sheet.october).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.november).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.november, formula: item.balance_sheet.november_formula } : Number(item.balance_sheet.november).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.december).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.december, formula: item.balance_sheet.december_formula } : Number(item.balance_sheet.december).toFixed(1),
item
.
balance_sheet
.
total_current_year
===
""
?
"0"
:
Number
(
item
.
balance_sheet
.
total_current_year
).
toFixed
(
1
),
item
.
balance_sheet
.
total_current_year
===
""
?
"0"
:
Number
(
item
.
balance_sheet
.
total_current_year
).
toFixed
(
1
),
item
.
order
,
item
.
order
,
item
.
condition_it_should_be
,
item
.
condition_it_should_be
,
...
@@ -248,18 +263,34 @@ export default class BalanceSheetRO extends Component {
...
@@ -248,18 +263,34 @@ export default class BalanceSheetRO extends Component {
item
.
level
,
item
.
level
,
item
.
description
,
item
.
description
,
item
.
balance_sheet
.
total_last_year
===
""
?
"0"
:
item
.
balance_sheet
.
total_last_year
,
item
.
balance_sheet
.
total_last_year
===
""
?
"0"
:
item
.
balance_sheet
.
total_last_year
,
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
january
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
january
,
formula
:
item
.
balance_sheet
.
january_formula
}
:
Number
(
item
.
balance_sheet
.
january
).
toFixed
(
1
),
// for simulasi
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
february
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
february
,
formula
:
item
.
balance_sheet
.
february_formula
}
:
Number
(
item
.
balance_sheet
.
february
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
january
,
formula
:
item
.
balance_sheet
.
january_formula
}
:
Number
(
item
.
balance_sheet
.
january
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
march
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
march
,
formula
:
item
.
balance_sheet
.
march_formula
}
:
Number
(
item
.
balance_sheet
.
march
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
february
,
formula
:
item
.
balance_sheet
.
february_formula
}
:
Number
(
item
.
balance_sheet
.
february
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
april
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
april
,
formula
:
item
.
balance_sheet
.
april_formula
}
:
Number
(
item
.
balance_sheet
.
april
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
march
,
formula
:
item
.
balance_sheet
.
march_formula
}
:
Number
(
item
.
balance_sheet
.
march
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
may
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
may
,
formula
:
item
.
balance_sheet
.
may_formula
}
:
Number
(
item
.
balance_sheet
.
may
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
april
,
formula
:
item
.
balance_sheet
.
april_formula
}
:
Number
(
item
.
balance_sheet
.
april
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
june
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
june
,
formula
:
item
.
balance_sheet
.
june_formula
}
:
Number
(
item
.
balance_sheet
.
june
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
may
,
formula
:
item
.
balance_sheet
.
may_formula
}
:
Number
(
item
.
balance_sheet
.
may
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
july
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
july
,
formula
:
item
.
balance_sheet
.
july_formula
}
:
Number
(
item
.
balance_sheet
.
july
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
june
,
formula
:
item
.
balance_sheet
.
june_formula
}
:
Number
(
item
.
balance_sheet
.
june
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
august
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
august
,
formula
:
item
.
balance_sheet
.
august_formula
}
:
Number
(
item
.
balance_sheet
.
august
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
july
,
formula
:
item
.
balance_sheet
.
july_formula
}
:
Number
(
item
.
balance_sheet
.
july
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
september
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
september
,
formula
:
item
.
balance_sheet
.
september_formula
}
:
Number
(
item
.
balance_sheet
.
september
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
august
,
formula
:
item
.
balance_sheet
.
august_formula
}
:
Number
(
item
.
balance_sheet
.
august
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
october
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
october
,
formula
:
item
.
balance_sheet
.
october_formula
}
:
Number
(
item
.
balance_sheet
.
october
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
september
,
formula
:
item
.
balance_sheet
.
september_formula
}
:
Number
(
item
.
balance_sheet
.
september
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
november
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
november
,
formula
:
item
.
balance_sheet
.
november_formula
}
:
Number
(
item
.
balance_sheet
.
november
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
october
,
formula
:
item
.
balance_sheet
.
october_formula
}
:
Number
(
item
.
balance_sheet
.
october
).
toFixed
(
1
),
this
.
props
.
status
===
'CLOSED'
?
Number
(
item
.
balance_sheet
.
december
).
toFixed
(
1
)
:
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
december
,
formula
:
item
.
balance_sheet
.
december_formula
}
:
Number
(
item
.
balance_sheet
.
december
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
november
,
formula
:
item
.
balance_sheet
.
november_formula
}
:
Number
(
item
.
balance_sheet
.
november
).
toFixed
(
1
),
item
.
type_report_id
==
5
||
item
.
type_report_id
==
6
?
{
value
:
item
.
balance_sheet
.
december
,
formula
:
item
.
balance_sheet
.
december_formula
}
:
Number
(
item
.
balance_sheet
.
december
).
toFixed
(
1
),
// yg asli
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.january).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.january, formula: item.balance_sheet.january_formula } : Number(item.balance_sheet.january).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.february).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.february, formula: item.balance_sheet.february_formula } : Number(item.balance_sheet.february).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.march).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.march, formula: item.balance_sheet.march_formula } : Number(item.balance_sheet.march).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.april).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.april, formula: item.balance_sheet.april_formula } : Number(item.balance_sheet.april).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.may).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.may, formula: item.balance_sheet.may_formula } : Number(item.balance_sheet.may).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.june).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.june, formula: item.balance_sheet.june_formula } : Number(item.balance_sheet.june).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.july).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.july, formula: item.balance_sheet.july_formula } : Number(item.balance_sheet.july).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.august).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.august, formula: item.balance_sheet.august_formula } : Number(item.balance_sheet.august).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.september).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.september, formula: item.balance_sheet.september_formula } : Number(item.balance_sheet.september).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.october).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.october, formula: item.balance_sheet.october_formula } : Number(item.balance_sheet.october).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.november).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.november, formula: item.balance_sheet.november_formula } : Number(item.balance_sheet.november).toFixed(1),
// this.props.status === 'CLOSED' ? Number(item.balance_sheet.december).toFixed(1) : item.type_report_id == 5 || item.type_report_id == 6 ? { value: item.balance_sheet.december, formula: item.balance_sheet.december_formula } : Number(item.balance_sheet.december).toFixed(1),
item
.
balance_sheet
.
total_current_year
===
""
?
"0"
:
Number
(
item
.
balance_sheet
.
total_current_year
).
toFixed
(
1
),
item
.
balance_sheet
.
total_current_year
===
""
?
"0"
:
Number
(
item
.
balance_sheet
.
total_current_year
).
toFixed
(
1
),
item
.
balance_sheet
.
total_current_year
===
""
?
"0"
:
Number
(
item
.
balance_sheet
.
total_current_year
).
toFixed
(
1
),
item
.
order
,
item
.
order
,
item
.
condition_it_should_be
,
item
.
condition_it_should_be
,
...
@@ -725,7 +756,7 @@ export default class BalanceSheetRO extends Component {
...
@@ -725,7 +756,7 @@ export default class BalanceSheetRO extends Component {
if
(
response
.
ok
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
this
.
props
.
refresh
(
'BS'
)
this
.
props
.
refresh
(
'BS'
,
'simulasiBS'
)
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
...
@@ -927,7 +958,6 @@ export default class BalanceSheetRO extends Component {
...
@@ -927,7 +958,6 @@ export default class BalanceSheetRO extends Component {
// console.log(splitFormula)
// console.log(splitFormula)
// console.log(baru)
// console.log(baru)
// }
// }
console
.
log
(
baru
)
baru
.
map
((
item
,
index
)
=>
{
baru
.
map
((
item
,
index
)
=>
{
if
(
item
==
'-'
||
item
==
'+'
||
item
==
'/'
||
item
==
'*'
)
{
if
(
item
==
'-'
||
item
==
'+'
||
item
==
'/'
||
item
==
'*'
)
{
...
@@ -956,14 +986,13 @@ export default class BalanceSheetRO extends Component {
...
@@ -956,14 +986,13 @@ export default class BalanceSheetRO extends Component {
// console.log(valuezz)
// console.log(valuezz)
}
}
}
else
{
}
else
{
console
.
log
(
value
);
let
indexID
=
value
.
formula
.
findIndex
((
val
)
=>
val
.
item_formula
==
String
(
`@
${
item
}
`
)
&&
val
.
periode
==
Number
(
this
.
props
.
periode
))
// let indexID = value.formula.findIndex((val) => val.item_formula == String(`@${item}`) && val.periode == Number(this.props.periode))
// console.log(indexID)
// // console.log(indexID)
if
(
indexID
!==
-
1
)
{
// if (indexID !== -1) {
// console.log(value.formula[indexID].value)
// // console.log(value.formula[indexID].value)
let
valuezz
=
value
.
formula
[
indexID
].
value
// let valuezz = value.formula[indexID].value
anjay
.
push
(
valuezz
==
""
?
0
:
valuezz
)
// anjay.push(valuezz == "" ? 0 : valuezz)
}
// }
}
}
}
else
if
(
String
(
item
).
includes
(
'[M-1]'
))
{
}
else
if
(
String
(
item
).
includes
(
'[M-1]'
))
{
let
tst
=
String
(
item
).
replace
(
'[M-1]'
,
''
)
let
tst
=
String
(
item
).
replace
(
'[M-1]'
,
''
)
...
...
src/container/RollingOutlook/RollingOutlook.js
View file @
7af543de
...
@@ -663,7 +663,7 @@ export default class RollingOutlook extends Component {
...
@@ -663,7 +663,7 @@ export default class RollingOutlook extends Component {
"quartal"
:
this
.
state
.
quarter
.
value
,
"quartal"
:
this
.
state
.
quarter
.
value
,
"currency_id"
:
this
.
state
.
defaultCurrency
.
id
"currency_id"
:
this
.
state
.
defaultCurrency
.
id
}
}
if
(
trigger
===
"simulasi
PL
"
)
{
if
(
trigger
===
"simulasi
BS
"
)
{
api
.
create
().
triggerRatioROSimulasi
(
bodyRatioBs
).
then
((
res
)
=>
{
api
.
create
().
triggerRatioROSimulasi
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
this
.
setState
({
loading
:
false
})
...
...
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