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
0ef35edc
Commit
0ef35edc
authored
Jun 15, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
a2692ed4
f41f2e9d
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
689 additions
and
8 deletions
+689
-8
Home.js
src/container/Home.js
+12
-0
SubHolding.js
src/container/Laporan/SubHolding.js
+6
-6
ProgressReport.js
src/container/Progress/ProgressReport.js
+309
-0
TableProgressReport.js
src/container/Progress/TableProgressReport.js
+355
-0
CorporateAnnualTargetRO.js
src/container/RollingOutlook/CorporateAnnualTargetRO.js
+2
-2
homeRoutes.js
src/router/homeRoutes.js
+5
-0
No files found.
src/container/Home.js
View file @
0ef35edc
...
@@ -11,6 +11,7 @@ import IconButton from '@material-ui/core/IconButton';
...
@@ -11,6 +11,7 @@ import IconButton from '@material-ui/core/IconButton';
import
MenuIcon
from
'@material-ui/icons/Menu'
;
import
MenuIcon
from
'@material-ui/icons/Menu'
;
import
ExpandMore
from
'@material-ui/icons/ExpandMore'
import
ExpandMore
from
'@material-ui/icons/ExpandMore'
import
ExpandLess
from
'@material-ui/icons/ExpandLess'
import
ExpandLess
from
'@material-ui/icons/ExpandLess'
import
ReportIcon
from
'@material-ui/icons/PriorityHigh'
import
ChevronLeftIcon
from
'@material-ui/icons/ChevronLeft'
;
import
ChevronLeftIcon
from
'@material-ui/icons/ChevronLeft'
;
import
ListItem
from
'@material-ui/core/ListItem'
;
import
ListItem
from
'@material-ui/core/ListItem'
;
import
ListItemIcon
from
'@material-ui/core/ListItemIcon'
;
import
ListItemIcon
from
'@material-ui/core/ListItemIcon'
;
...
@@ -566,6 +567,17 @@ export default function MiniDrawer() {
...
@@ -566,6 +567,17 @@ export default function MiniDrawer() {
}
}
<
/div
>
<
/div
>
))}
))}
{
/* <Link to={`${url}/progress-reports`}>
<div style={{ paddingLeft: 5 }} className={selectedIndex === 'progress-reports' ? "active" : ""}>
<a data-tip={'progress-reports'} data-for={'progress-reports'}>
<ListItem button key={'progress-reports'} onClick={() => selectIndex('progress-reports')}>
<ListItemIcon style={{ minWidth: open ? 40 : 56}}><ReportIcon style={{marginLeft: -5}}/></ListItemIcon>
<Typography style={{ fontFamily: 'Nunito Sans, sans-serif', color: '#525355', fontSize: 14 }}>{'Progress Report'}</Typography>
</ListItem>
</a>
{!open && (<ReactTooltip border={true} id={'Progress Report'} place="bottom" type="light" effect="solid" />)}
</div>
</Link> */
}
<
/List
>
<
/List
>
{
open
&&
setting
.
length
>
0
&&
{
open
&&
setting
.
length
>
0
&&
<
div
style
=
{{
marginLeft
:
20
}}
>
<
div
style
=
{{
marginLeft
:
20
}}
>
...
...
src/container/Laporan/SubHolding.js
View file @
0ef35edc
...
@@ -1974,7 +1974,7 @@ export default class SubHolding extends Component {
...
@@ -1974,7 +1974,7 @@ export default class SubHolding extends Component {
}
}
let
quarter_actual
=
item
.
cash_flow
.
quarter_actual
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter_actual
)
let
quarter_actual
=
item
.
cash_flow
.
quarter_actual
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter_actual
)
let
quarter
=
item
.
cash_flow
.
quarter
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter
)
let
quarter
=
item
.
cash_flow
.
quarter
_mb
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter_mb
)
// let persenQuarter = Number(quarter_actual / quarter)
// let persenQuarter = Number(quarter_actual / quarter)
let
persenQuarter
=
0
let
persenQuarter
=
0
if
(
quarter
<
0
)
{
if
(
quarter
<
0
)
{
...
@@ -2015,8 +2015,8 @@ export default class SubHolding extends Component {
...
@@ -2015,8 +2015,8 @@ export default class SubHolding extends Component {
// isNaN(persenYtd)? 0 : persenYtd * 100,
// isNaN(persenYtd)? 0 : persenYtd * 100,
item
.
cash_flow
.
ytd_last_year
,
item
.
cash_flow
.
ytd_last_year
,
item
.
cash_flow
.
quarter_actual
,
item
.
cash_flow
.
quarter_actual
,
item
.
cash_flow
.
quarter
,
item
.
cash_flow
.
quarter
_mb
,
isNaN
(
persenQuarter
)
||
persenQuarter
==
'Infinity'
||
persenQuarter
==
'-Infinity'
?
(
item
.
cash_flow
.
quarter
==
''
||
item
.
cash_flow
.
quarter
==
0
?
-
0
:
0
)
:
(
item
.
cash_flow
.
quarter
==
''
||
item
.
cash_flow
.
quarter
==
0
?
persenQuarter
*
-
100
:
persenQuarter
*
100
),
isNaN
(
persenQuarter
)
||
persenQuarter
==
'Infinity'
||
persenQuarter
==
'-Infinity'
?
(
item
.
cash_flow
.
quarter
_mb
==
''
||
item
.
cash_flow
.
quarter_mb
==
0
?
-
0
:
0
)
:
(
item
.
cash_flow
.
quarter_mb
==
''
||
item
.
cash_flow
.
quarter_mb
==
0
?
persenQuarter
*
-
100
:
persenQuarter
*
100
),
// isNaN(persenQuarter)? 0 : persenQuarter * 100,
// isNaN(persenQuarter)? 0 : persenQuarter * 100,
item
.
cash_flow
.
quarter_last_year
,
item
.
cash_flow
.
quarter_last_year
,
item
.
cash_flow
.
fy_actual
,
item
.
cash_flow
.
fy_actual
,
...
@@ -2067,7 +2067,7 @@ export default class SubHolding extends Component {
...
@@ -2067,7 +2067,7 @@ export default class SubHolding extends Component {
}
}
let
quarter_actual
=
item
.
cash_flow
.
quarter_actual
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter_actual
)
let
quarter_actual
=
item
.
cash_flow
.
quarter_actual
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter_actual
)
let
quarter
=
item
.
cash_flow
.
quarter
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter
)
let
quarter
=
item
.
cash_flow
.
quarter
_mb
==
''
?
0
:
Number
(
item
.
cash_flow
.
quarter_mb
)
// let persenQuarter = Number(quarter_actual / quarter)
// let persenQuarter = Number(quarter_actual / quarter)
let
persenQuarter
=
0
let
persenQuarter
=
0
if
(
quarter
<
0
)
{
if
(
quarter
<
0
)
{
...
@@ -2108,8 +2108,8 @@ export default class SubHolding extends Component {
...
@@ -2108,8 +2108,8 @@ export default class SubHolding extends Component {
// isNaN(persenYtd)? 0 : persenYtd * 100,
// isNaN(persenYtd)? 0 : persenYtd * 100,
item
.
cash_flow
.
ytd_last_year
,
item
.
cash_flow
.
ytd_last_year
,
item
.
cash_flow
.
quarter_actual
,
item
.
cash_flow
.
quarter_actual
,
item
.
cash_flow
.
quarter
,
item
.
cash_flow
.
quarter
_mb
,
isNaN
(
persenQuarter
)
||
persenQuarter
==
'Infinity'
||
persenQuarter
==
'-Infinity'
?
(
item
.
cash_flow
.
quarter
==
''
||
item
.
cash_flow
.
quarter
==
0
?
-
0
:
0
)
:
(
item
.
cash_flow
.
quarter
==
''
||
item
.
cash_flow
.
quarter
==
0
?
persenQuarter
*
-
100
:
persenQuarter
*
100
),
isNaN
(
persenQuarter
)
||
persenQuarter
==
'Infinity'
||
persenQuarter
==
'-Infinity'
?
(
item
.
cash_flow
.
quarter
_mb
==
''
||
item
.
cash_flow
.
quarter_mb
==
0
?
-
0
:
0
)
:
(
item
.
cash_flow
.
quarter_mb
==
''
||
item
.
cash_flow
.
quarter_mb
==
0
?
persenQuarter
*
-
100
:
persenQuarter
*
100
),
// isNaN(persenQuarter)? 0 : persenQuarter * 100,
// isNaN(persenQuarter)? 0 : persenQuarter * 100,
item
.
cash_flow
.
quarter_last_year
,
item
.
cash_flow
.
quarter_last_year
,
item
.
cash_flow
.
fy_actual
,
item
.
cash_flow
.
fy_actual
,
...
...
src/container/Progress/ProgressReport.js
0 → 100644
View file @
0ef35edc
This diff is collapsed.
Click to expand it.
src/container/Progress/TableProgressReport.js
0 → 100644
View file @
0ef35edc
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/CorporateAnnualTargetRO.js
View file @
0ef35edc
...
@@ -189,8 +189,8 @@ export default class CorporateAnnualTargetRO extends Component {
...
@@ -189,8 +189,8 @@ export default class CorporateAnnualTargetRO extends Component {
item
.
formula
,
item
.
formula
,
item
.
level
,
item
.
level
,
item
.
description
,
item
.
description
,
// item.weight == '' ? Number(0
).toFixed(1) : Number(Number(item.weight) * 100).toFixed(1),
item
.
weight
==
''
?
Number
(
weight
).
toFixed
(
1
)
:
Number
(
Number
(
item
.
weight
)
*
100
).
toFixed
(
1
),
item
.
corporate_annual_target
.
weight
==
""
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
Number
(
weight
*
100
)).
toFixed
(
1
),
//
item.corporate_annual_target.weight == "" ? Number(0).toFixed(1) : Number(Number(weight * 100)).toFixed(1),
item
.
corporate_annual_target
.
uom
,
item
.
corporate_annual_target
.
uom
,
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
item
.
kpi_type
==
""
?
null
:
{
value
:
item
.
kpi_type
},
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
item
.
max_ach
==
""
?
null
:
{
value
:
titleCase
(
item
.
max_ach
)
},
...
...
src/router/homeRoutes.js
View file @
0ef35edc
...
@@ -20,6 +20,7 @@ import OutlookPA from '../container/OutlookPA';
...
@@ -20,6 +20,7 @@ import OutlookPA from '../container/OutlookPA';
import
SubHolding
from
'../container/Laporan/SubHolding'
;
import
SubHolding
from
'../container/Laporan/SubHolding'
;
import
SummaryTriputra
from
'../container/SummaryTriputra/SummaryOfTriputra'
;
import
SummaryTriputra
from
'../container/SummaryTriputra/SummaryOfTriputra'
;
import
MasterDataCAT
from
'../container/MasterData/MasterDataCAT/MasterDataCAT'
import
MasterDataCAT
from
'../container/MasterData/MasterDataCAT/MasterDataCAT'
import
ProgressReport
from
'../container/Progress/ProgressReport'
const
routes
=
[
const
routes
=
[
{
{
...
@@ -106,6 +107,10 @@ const routes = [
...
@@ -106,6 +107,10 @@ const routes = [
path
:
"/home/dashboard-financial"
,
path
:
"/home/dashboard-financial"
,
main
:
DashboardFinancial
main
:
DashboardFinancial
},
},
{
path
:
"/home/progress-reports"
,
main
:
ProgressReport
},
{
{
path
:
"*"
,
path
:
"*"
,
main
:
screen404
main
:
screen404
...
...
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