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
1a3ac253
Commit
1a3ac253
authored
Apr 19, 2021
by
Faisal Hamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
cat pq! See merge request
!1425
parents
35ccdbc7
5c6f60a4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
301 additions
and
228 deletions
+301
-228
SubHolding.js
src/container/Laporan/SubHolding.js
+19
-11
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+282
-217
No files found.
src/container/Laporan/SubHolding.js
View file @
1a3ac253
...
@@ -2906,26 +2906,30 @@ export default class SubHolding extends Component {
...
@@ -2906,26 +2906,30 @@ export default class SubHolding extends Component {
item
.
itemName
,
item
.
itemName
,
item
.
corporate_annual_target
.
weight
==
""
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
weight
).
toFixed
(
1
),
item
.
corporate_annual_target
.
weight
==
""
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
weight
).
toFixed
(
1
),
item
.
corporate_annual_target
.
uom
,
item
.
corporate_annual_target
.
uom
,
item
.
corporate_annual_target
.
kpiType
,
item
.
corporate_annual_target
.
maxAch
,
item
.
corporate_annual_target
.
formulaYtd
,
item
.
corporate_annual_target
.
lastYearActualQx
,
item
.
corporate_annual_target
.
lastYearActualQx
,
item
.
corporate_annual_target
.
thisYearPercentGrowthYoy
,
item
.
corporate_annual_target
.
lastYearActualFy
,
item
.
corporate_annual_target
.
lastYearActualFy
,
item
.
corporate_annual_target
.
thisYearbudgetQx
,
item
.
corporate_annual_target
.
thisYearbudgetQx
,
item
.
corporate_annual_target
.
thisYearActualQx
,
item
.
corporate_annual_target
.
thisYearActualQx
,
item
.
corporate_annual_target
.
thisYearPercentAch
,
item
.
corporate_annual_target
.
thisYearPercentAch
,
item
.
corporate_annual_target
.
thisYearPercentGrowthYoy
,
item
.
corporate_annual_target
.
thisYearScore
,
item
.
corporate_annual_target
.
thisYearScore
,
item
.
corporate_annual_target
.
thisYearScoreXWeight
,
item
.
corporate_annual_target
.
thisYearScoreXWeight
,
item
.
corporate_annual_target
.
thisYearBudgetYtd
,
item
.
corporate_annual_target
.
thisYearBudgetYtd
,
item
.
corporate_annual_target
.
thisYearActualYtd
,
item
.
corporate_annual_target
.
thisYearActualYtd
,
item
.
corporate_annual_target
.
thisYearPercentAchYtd
,
item
.
corporate_annual_target
.
thisYearPercentAchYtd
,
item
.
corporate_annual_target
.
thisYearScoreFy
,
item
.
corporate_annual_target
.
thisYearScoreXWeightFy
,
item
.
corporate_annual_target
.
thisYearBudgetFy
,
item
.
corporate_annual_target
.
thisYearBudgetFy
,
item
.
corporate_annual_target
.
thisYearOlFy
,
item
.
corporate_annual_target
.
thisYearOlFy
,
percentVar
,
item
.
corporate_annual_target
.
thisYearPercentAchFy
,
item
.
corporate_annual_target
.
thisYearScoreFy
,
item
.
corporate_annual_target
.
thisYearScoreXWeightFy
,
item
.
orders
item
.
orders
])
])
}
}
...
@@ -2947,26 +2951,30 @@ export default class SubHolding extends Component {
...
@@ -2947,26 +2951,30 @@ export default class SubHolding extends Component {
item
.
itemName
,
item
.
itemName
,
item
.
weight
==
''
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
Number
(
item
.
weight
)
*
100
).
toFixed
(
1
),
item
.
weight
==
''
?
Number
(
0
).
toFixed
(
1
)
:
Number
(
Number
(
item
.
weight
)
*
100
).
toFixed
(
1
),
item
.
uom
,
item
.
uom
,
item
.
typeKpi
,
item
.
maxAch
,
item
.
formulaYtd
,
item
.
corporate_annual_target
.
lastYearActualQx
,
item
.
corporate_annual_target
.
lastYearActualQx
,
item
.
corporate_annual_target
.
thisYearPercentGrowthYoy
,
item
.
corporate_annual_target
.
lastYearActualFy
,
item
.
corporate_annual_target
.
lastYearActualFy
,
item
.
corporate_annual_target
.
thisYearbudgetQx
,
item
.
corporate_annual_target
.
thisYearbudgetQx
,
item
.
corporate_annual_target
.
thisYearActualQx
,
item
.
corporate_annual_target
.
thisYearActualQx
,
item
.
corporate_annual_target
.
thisYearPercentAch
,
item
.
corporate_annual_target
.
thisYearPercentAch
,
item
.
corporate_annual_target
.
thisYearPercentGrowthYoy
,
item
.
corporate_annual_target
.
thisYearScore
,
item
.
corporate_annual_target
.
thisYearScore
,
item
.
corporate_annual_target
.
thisYearScoreXWeight
,
item
.
corporate_annual_target
.
thisYearScoreXWeight
,
item
.
corporate_annual_target
.
thisYearBudgetYtd
,
item
.
corporate_annual_target
.
thisYearBudgetYtd
,
item
.
corporate_annual_target
.
thisYearActualYtd
,
item
.
corporate_annual_target
.
thisYearActualYtd
,
item
.
corporate_annual_target
.
thisYearPercentAchYtd
,
item
.
corporate_annual_target
.
thisYearPercentAchYtd
,
item
.
corporate_annual_target
.
thisYearScoreFy
,
item
.
corporate_annual_target
.
thisYearScoreXWeightFy
,
item
.
corporate_annual_target
.
thisYearBudgetFy
,
item
.
corporate_annual_target
.
thisYearBudgetFy
,
item
.
corporate_annual_target
.
thisYearOlFy
,
item
.
corporate_annual_target
.
thisYearOlFy
,
""
,
item
.
corporate_annual_target
.
thisYearPercentAchFy
,
item
.
corporate_annual_target
.
thisYearScoreFy
,
item
.
corporate_annual_target
.
thisYearScoreXWeightFy
,
item
.
orders
item
.
orders
])
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
!==
null
)
{
...
@@ -3899,7 +3907,7 @@ export default class SubHolding extends Component {
...
@@ -3899,7 +3907,7 @@ export default class SubHolding extends Component {
}
}
}
else
if
(
this
.
state
.
report
.
value
===
11
)
{
}
else
if
(
this
.
state
.
report
.
value
===
11
)
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cat/quarterly/export_report?report_id=17&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&quarter=
${
this
.
state
.
quarter
}
`
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/cat/quarterly/export_report?report_id=17&&company_id=
${
this
.
state
.
company
.
company_id
}
&&year=
${
this
.
state
.
periode
.
periode
}
&&quarter=
${
this
.
state
.
quarter
.
name
}
`
)
)
console
.
log
(
res
);
console
.
log
(
res
);
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
...
...
src/container/Laporan/TableSubHolding.js
View file @
1a3ac253
This diff is collapsed.
Click to expand it.
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