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
0265703b
Commit
0265703b
authored
Jun 10, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into GGMAC
parents
eab60727
7fcd3a61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
14 deletions
+46
-14
SubHolding.js
src/container/Laporan/SubHolding.js
+46
-14
No files found.
src/container/Laporan/SubHolding.js
View file @
0265703b
...
...
@@ -2544,16 +2544,34 @@ export default class SubHolding extends Component {
persenFyLY
=
fy_actual
/
fy_last_year
}
let
persenFyOLMB
=
Number
(
fy_ol
/
fy_mb
)
// if (item.id === 3297327) {
// console.log(fy_actual);
// console.log(fy_last_year);
// console.log(persenFyLY);
// }
// let persenFyOLMB = Number(fy_ol/fy_mb)
// if (fy_mb < 0) {
// if (fy_ol >= fy_mb) {
// persenFyLY = (fy_mb - fy_ol) / fy_mb + 1
// } else {
// persenFyLY = (fy_mb - fy_ol) / fy_mb
// }
// }
// else {
// persenFyLY = fy_ol / fy_mb
// }
let
persenFyOLMB
=
0
if
(
fy_mb
<
0
)
{
if
(
fy_ol
>=
fy_mb
)
{
persenFy
LY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
+
1
persenFy
OLMB
=
(
fy_mb
-
fy_ol
)
/
fy_mb
+
1
}
else
{
persenFy
LY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
persenFy
OLMB
=
(
fy_mb
-
fy_ol
)
/
fy_mb
}
}
else
{
persenFy
LY
=
fy_ol
/
fy_mb
persenFy
OLMB
=
fy_ol
/
fy_mb
}
dbSumaPL
.
push
([
...
...
@@ -2752,16 +2770,28 @@ export default class SubHolding extends Component {
persenFyLY
=
fy_actual
/
fy_last_year
}
let
persenFyOLMB
=
Number
(
fy_ol
/
fy_mb
)
// let persenFyOLMB = Number(fy_ol/fy_mb)
// if (fy_mb < 0) {
// if (fy_ol >= fy_mb) {
// persenFyLY = (fy_mb - fy_ol) / fy_mb + 1
// } else {
// persenFyLY = (fy_mb - fy_ol) / fy_mb
// }
// }
// else {
// persenFyLY = fy_ol / fy_mb
// }
let
persenFyOLMB
=
0
if
(
fy_mb
<
0
)
{
if
(
fy_ol
>=
fy_mb
)
{
persenFyLY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
+
1
persenFyOLMB
=
(
fy_mb
-
fy_ol
)
/
fy_mb
+
1
}
else
{
persenFyLY
=
(
fy_mb
-
fy_ol
)
/
fy_mb
persenFyOLMB
=
(
fy_mb
-
fy_ol
)
/
fy_mb
}
}
else
{
persenFyLY
=
fy_ol
/
fy_mb
persenFyOLMB
=
fy_ol
/
fy_mb
}
dbSumaPL
.
push
([
...
...
@@ -2806,6 +2836,7 @@ export default class SubHolding extends Component {
}
}
})
console
.
log
(
dbSumaPL
);
this
.
setState
({
dataTable
:
dbSumaPL
,
loading
:
false
,
previewTable
:
true
,
previewDownload
:
true
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
@@ -2820,6 +2851,7 @@ export default class SubHolding extends Component {
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
else
if
(
this
.
state
.
report
.
value
===
9
)
{
let
FRID
=
null
...
...
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