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
b475c848
Commit
b475c848
authored
Jan 19, 2021
by
faisalhamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into faisal
parents
5b1cc3c3
647efe9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+9
-6
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+8
-7
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+1
-2
No files found.
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
b475c848
...
...
@@ -132,7 +132,7 @@ export default class CorporateAnnualTargetMR extends Component {
api
.
create
().
getParameterByGroupName
({
"group_name"
:
'ACHIEVEMENT_KPI'
}).
then
((
response
)
=>
{
//
console.log(response.data)
console
.
log
(
response
.
data
)
if
(
response
.
data
)
{
this
.
setState
({
parameterScore
:
response
.
data
.
data
})
}
...
...
@@ -693,10 +693,9 @@ export default class CorporateAnnualTargetMR extends Component {
if
(
item
[
12
]
==
''
||
String
(
item
[
12
])
==
'0'
||
String
(
item
[
12
])
==
'0.0'
)
{
totalSW
=
0
}
else
{
totalSW
=
Number
(
totalScore
)
*
Number
(
handlePercent
)
/
100
totalSW
=
Number
(
totalScore
)
*
Number
(
handlePercent
)
/
100
0
}
totalSW
=
Number
(
totalSW
).
toFixed
(
2
)
if
(
item
[
0
]
!==
1
&&
item
[
0
]
!==
4
)
{
total
+=
Number
(
totalSW
)
}
...
...
@@ -1183,9 +1182,13 @@ export default class CorporateAnnualTargetMR extends Component {
}
})
}
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
totalScore
).
toFixed
(
0
)
return
Number
(
totalScore
).
toFixed
(
0
)
if
(
Number
(
tableMeta
.
rowData
[
12
])
>
Number
(
0
)){
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
totalScore
).
toFixed
(
0
)
return
Number
(
totalScore
).
toFixed
(
0
)
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
0
).
toFixed
(
0
)
return
Number
(
0
).
toFixed
(
0
)
}
}
let
someXXX
=
this
.
state
.
aa
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
b475c848
...
...
@@ -117,7 +117,8 @@ export default class ListOfCreditFacilities extends Component {
updateBy
:
'-'
,
notes
:
""
,
viewOnly
:
true
,
dataDelete
:
[]
dataDelete
:
[],
saveTambahan
:
true
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
...
...
@@ -3975,7 +3976,7 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
this
.
setState
({
totalOutStand
:
totalLoan
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
totalOutStand
:
totalLoan
,
saveTambahan
:
false
},
()
=>
{
this
.
handleCalculate
()
})}
>
...
...
@@ -3987,7 +3988,7 @@ export default class ListOfCreditFacilities extends Component {
className
=
"button"
type
=
"button"
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
||
this
.
state
.
saveTambahan
?
this
.
setState
({
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
...
...
@@ -4013,7 +4014,7 @@ export default class ListOfCreditFacilities extends Component {
type
=
"button"
// disabled={this.state.buttonError}
onClick
=
{()
=>
this
.
state
.
saveComp
?
this
.
state
.
saveComp
||
this
.
state
.
saveTambahan
?
this
.
setState
({
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete / Diff must be 0'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
...
...
@@ -4149,7 +4150,7 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
this
.
setState
({
totalOutStand
:
totalLoan
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
totalOutStand
:
totalLoan
,
saveTambahan
:
false
},
()
=>
{
this
.
handleCalculate
()
})}
>
...
...
@@ -4161,7 +4162,7 @@ export default class ListOfCreditFacilities extends Component {
className
=
"button"
type
=
"button"
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
||
this
.
state
.
saveTambahan
?
this
.
setState
({
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
...
...
@@ -4187,7 +4188,7 @@ export default class ListOfCreditFacilities extends Component {
type
=
"button"
// disabled={this.state.buttonError}
onClick
=
{()
=>
this
.
state
.
saveComp
?
this
.
state
.
saveComp
||
this
.
state
.
saveTambahan
?
this
.
setState
({
snekbar
:
true
,
snekbarMsg
:
'Data Incomplete / Diff must be 0'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
b475c848
...
...
@@ -150,7 +150,7 @@ export default class TaxPlanningMR extends Component {
"months"
:
this
.
props
.
month
.
month_id
}
api
.
create
().
getLastestUpdateMR
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
...
...
@@ -806,7 +806,6 @@ export default class TaxPlanningMR extends Component {
const
handleTotal
=
(
value
,
tableMeta
,
dex
)
=>
{
// console.log(tableMeta)
let
total
=
0
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
==
9
)
{
let
valItemTBF
=
item
.
tbf
==
undefined
||
item
.
tbf
==
""
||
item
.
tbf
==
"undefined"
?
0.0
:
item
.
tbf
...
...
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