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
66de34a7
Commit
66de34a7
authored
Dec 22, 2020
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
bc6454b9
199e4c90
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
96 additions
and
32 deletions
+96
-32
BudgetTahunan.js
src/container/BudgetTahunan.js
+1
-1
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+1
-1
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+1
-1
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+1
-1
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+1
-1
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+1
-1
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+1
-0
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+38
-11
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+48
-13
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+3
-2
No files found.
src/container/BudgetTahunan.js
View file @
66de34a7
...
...
@@ -762,7 +762,7 @@ export default class BudgetTahunan extends Component {
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Data is not saved, please check your Connectio
n'
,
tipeAlert
:
'error'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Error saving data. Please try agai
n'
,
tipeAlert
:
'error'
,
loading
:
false
},
()
=>
{
this
.
getSubmission
()
document
.
body
.
style
.
overflow
=
'unset'
;
})
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
66de34a7
...
...
@@ -442,7 +442,7 @@ export default class BalanceSheet extends Component {
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Data is not saved, please check your Connectio
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Error saving data. Please try agai
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
66de34a7
...
...
@@ -670,7 +670,7 @@ export default class CorporateAnnualTarget extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Data is not saved, please check your Connectio
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Error saving data. Please try agai
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
66de34a7
...
...
@@ -447,7 +447,7 @@ export default class FixedAssetsMovement extends Component {
}
else
{
// this.setState({ loading: false })
// alert(response.problem)
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Data is not saved, please check your Connectio
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Error saving data. Please try agai
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
66de34a7
...
...
@@ -447,7 +447,7 @@ export default class ProfitLoss extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Data is not saved, please check your Connectio
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'
Error saving data. Please try agai
n'
,
tipeAlert
:
'error'
,
loading
:
false
})
}
})
}
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
66de34a7
...
...
@@ -632,7 +632,7 @@ export default class TaxPlanning extends Component {
// alert(response.data.status)
}
}
else
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
'
Data is not saved, please check your Connectio
n'
,
tipeAlert
:
'error'
})
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
'
Error saving data. Please try agai
n'
,
tipeAlert
:
'error'
})
}
})
}
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
66de34a7
...
...
@@ -430,6 +430,7 @@ export default class BalanceSheetMR extends Component {
}
api
.
create
(
'UPLOAD'
).
createMonthlyReportBS
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
JSON
.
stringify
(
payload
))
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
saveToMonthlyReport
()
...
...
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
66de34a7
...
...
@@ -46,7 +46,8 @@ export default class FixedAssetsMovementMR extends Component {
dataTable
:
[],
loading
:
true
,
visibleFAMMR
:
true
,
updateBy
:
'-'
updateBy
:
'-'
,
notesUpdate
:
'-'
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
...
...
@@ -69,7 +70,8 @@ export default class FixedAssetsMovementMR extends Component {
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
,
notesUpdate
:
response
.
data
.
data
.
notes_update
===
null
?
'-'
:
response
.
data
.
data
.
notes_update
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
typeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
@@ -873,7 +875,7 @@ export default class FixedAssetsMovementMR extends Component {
<
NumberFormat
thousandSeparator
=
{
true
}
// style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
style
=
{{
color
:
this
.
props
.
isApprover
?
'black'
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
this
.
props
.
isApprover
?
'black'
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
this
.
props
.
isApprover
}
...
...
@@ -1360,9 +1362,10 @@ export default class FixedAssetsMovementMR extends Component {
)}
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
{
this
.
state
.
updateBy
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
5
}}
>
Notes
:
{
this
.
state
.
notesUpdate
}
<
/Typography
>
<
/div
>
<
div
className
=
"grid grid-2x"
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"col-1"
>
<
div
className
=
"grid grid-2x"
style
=
{{
padding
:
20
}}
>
<
div
className
=
"col-1"
style
=
{{
paddingLeft
:
0
,
}}
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
...
...
@@ -1385,7 +1388,7 @@ export default class FixedAssetsMovementMR extends Component {
{
this
.
props
.
isApprover
===
true
?
<
div
className
=
"col-2"
><
/div>
:
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
,
paddingRight
:
5
}}
>
<
button
className
=
"button"
type
=
"button"
...
...
@@ -1414,13 +1417,13 @@ export default class FixedAssetsMovementMR extends Component {
type
=
"button"
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
editable
!==
true
?
'pointer'
:
'default'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
state
.
saveDraft
===
true
?
null
:
this
.
state
.
handleTekTekTek
===
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
},
()
=>
{
...
...
@@ -1429,7 +1432,13 @@ export default class FixedAssetsMovementMR extends Component {
}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
saveDraft
===
true
?
<
LightTooltip
title
=
{
"Data Incomplete"
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
}
<
/div
>
<
/button
>
<
button
...
...
@@ -1451,7 +1460,13 @@ export default class FixedAssetsMovementMR extends Component {
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
buttonError
?
<
LightTooltip
title
=
{
"Data Incomplete"
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
}
<
/div
>
<
/button
>
<
/div>
...
...
@@ -1483,7 +1498,7 @@ export default class FixedAssetsMovementMR extends Component {
<
div
className
=
"col-1"
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
onClick
=
{()
=>
this
.
setState
({
loading
:
true
,
visibleFAMMR
:
true
},
()
=>
{
setTimeout
(()
=>
{
this
.
getItemHierarki
()
},
100
);
...
...
@@ -1546,7 +1561,13 @@ export default class FixedAssetsMovementMR extends Component {
}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
saveDraft
===
true
?
<
LightTooltip
title
=
{
"Data Incomplete"
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
}
<
/div
>
<
/button
>
<
button
...
...
@@ -1568,7 +1589,13 @@ export default class FixedAssetsMovementMR extends Component {
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
buttonError
?
<
LightTooltip
title
=
{
"Data Incomplete"
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
}
<
/div
>
<
/button
>
<
/div>
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
66de34a7
...
...
@@ -1202,6 +1202,7 @@ export default class ListOfCreditFacilities extends Component {
let
loading
=
this
.
state
.
loading
let
dataTampungBank
=
[]
let
indexNyasar
=
false
let
totalLoan
=
0
const
handleAction
=
(
typeReport
,
tableMeta
,
typeButton
)
=>
{
// console.log(typeReport)
...
...
@@ -1221,6 +1222,7 @@ export default class ListOfCreditFacilities extends Component {
}
const
handleChange
=
(
value
,
tableMeta
,
column
,
typeChange
,
typeDrop
)
=>
{
let
val
=
''
if
(
typeChange
==
'date'
)
{
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
format
(
value
,
'yyyy-MM-dd'
)
this
.
setState
({
loading
:
true
},
()
=>
{
...
...
@@ -1228,12 +1230,13 @@ export default class ListOfCreditFacilities extends Component {
})
}
else
{
if
(
column
!=
8
&&
column
!=
11
&&
column
!=
18
&&
column
!=
25
&&
column
!=
27
&&
column
!=
29
&&
column
!=
31
&&
column
!=
33
&&
column
!=
36
&&
column
!=
39
&&
column
!=
42
&&
column
!=
45
)
{
val
ue
=
String
(
value
).
split
(
","
).
join
(
""
)
val
ue
=
Number
(
value
).
toFixed
(
2
)
val
=
String
(
value
).
split
(
","
).
join
(
""
)
val
=
Number
(
val
).
toFixed
(
2
)
}
else
{
value
=
String
(
value
).
split
(
","
).
join
(
""
)
val
=
String
(
value
).
split
(
","
).
join
(
""
)
}
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
value
if
(
value
.
value
!==
undefined
)
{
if
(
value
.
value
==
'Investment Loan'
)
{
dataTable2
[
tableMeta
.
rowIndex
][
16
]
=
0
...
...
@@ -1253,8 +1256,14 @@ export default class ListOfCreditFacilities extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
16
]
=
0
dataTable2
[
tableMeta
.
rowIndex
][
17
]
=
0
}
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
value
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
val
}
}
console
.
log
(
dataTable2
[
tableMeta
.
rowIndex
][
column
]);
console
.
log
(
value
)
console
.
log
(
String
(
value
).
split
(
","
).
join
(
""
))
}
const
handleValueDropDown
=
(
value
,
type
,
tableMeta
)
=>
{
...
...
@@ -1306,6 +1315,9 @@ export default class ListOfCreditFacilities extends Component {
valuez
+=
Number
(
item
[
column
])
}
})
if
(
column
==
22
)
{
totalLoan
=
valuez
}
}
else
{
if
(
column
==
21
)
{
valuez
=
Number
(
tableMeta
.
rowData
[
14
])
+
Number
(
tableMeta
.
rowData
[
16
])
+
Number
(
tableMeta
.
rowData
[
19
])
...
...
@@ -1317,7 +1329,6 @@ export default class ListOfCreditFacilities extends Component {
valuez
=
Number
(
tableMeta
.
rowData
[
13
])
-
Number
(
tableMeta
.
rowData
[
22
])
}
}
dataTable2
[
tableMeta
.
rowIndex
][
column
]
=
valuez
return
valuez
}
...
...
@@ -3593,7 +3604,7 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
marginLeft
:
10
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Back
<
/Typography
>
<
/div
>
<
/button
>
...
...
@@ -3611,7 +3622,9 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
this
.
handleCalculate
()}
onClick
=
{()
=>
this
.
setState
({
totalOutStand
:
totalLoan
},
()
=>
{
this
.
handleCalculate
()
})}
>
<
div
style
=
{{
backgroundColor
:
'#fff'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
border
:
'solid 1px #354960'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#354960'
,
textAlign
:
'center'
}}
>
Calculate
<
/Typography
>
...
...
@@ -3639,7 +3652,11 @@ export default class ListOfCreditFacilities extends Component {
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
saveDraft
?
<
LightTooltip
title
=
{
'Data Incomplete'
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography>
}
<
/div
>
<
/button
>
<
button
...
...
@@ -3664,7 +3681,11 @@ export default class ListOfCreditFacilities extends Component {
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
marginRight
:
20
}}
>
{
this
.
state
.
saveComp
?
<
LightTooltip
title
=
{
'Data Incomplete / Total Diff must be 0'
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography>
}
<
/div
>
<
/button
>
<
/div
>
...
...
@@ -3737,7 +3758,7 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
style
=
{{
backgroundColor
:
'#019ce5'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
marginLeft
:
10
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Back
<
/Typography
>
<
/div
>
<
/button
>
...
...
@@ -3755,7 +3776,9 @@ export default class ListOfCreditFacilities extends Component {
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
this
.
handleCalculate
()}
onClick
=
{()
=>
this
.
setState
({
totalOutStand
:
totalLoan
},
()
=>
{
this
.
handleCalculate
()
})}
>
<
div
style
=
{{
backgroundColor
:
'#fff'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
border
:
'solid 1px #354960'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#354960'
,
textAlign
:
'center'
}}
>
Calculate
<
/Typography
>
...
...
@@ -3783,7 +3806,13 @@ export default class ListOfCreditFacilities extends Component {
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
{
this
.
state
.
saveDraft
?
<
LightTooltip
title
=
{
'Data Incomplete'
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
}
<
/div
>
<
/button
>
<
button
...
...
@@ -3808,7 +3837,13 @@ export default class ListOfCreditFacilities extends Component {
}}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
marginRight
:
20
}}
>
{
this
.
state
.
saveComp
?
<
LightTooltip
title
=
{
'Data Incomplete / Total Diff must be 0'
}
arrow
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/LightTooltip
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
}
<
/div
>
<
/button
>
<
/div
>
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
66de34a7
...
...
@@ -113,7 +113,8 @@ export default class TaxPlanningMR extends Component {
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"monthly_report_id"
:
this
.
props
.
monthlyReportId
,
"months"
:
this
.
props
.
month
.
month_id
"months"
:
this
.
props
.
month
.
month_id
,
"get_for"
:
"edit"
}
api
.
create
().
getHierarkiMontlyReportTP
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
...
...
@@ -1526,7 +1527,7 @@ export default class TaxPlanningMR extends Component {
// disabled={this.state.buttonError}
onClick
=
{()
=>
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data i
s not complete !
'
,
tipeAlert
:
'warning'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data i
ncomplete
'
,
tipeAlert
:
'warning'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
...
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