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
542416fd
Commit
542416fd
authored
Aug 15, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RO
parent
55cb53a9
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
467 additions
and
266 deletions
+467
-266
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+413
-266
TaxPlanningRO.js
src/container/RollingOutlook/TaxPlanningRO.js
+54
-0
No files found.
src/container/RollingOutlook/BalanceSheetRO.js
View file @
542416fd
This diff is collapsed.
Click to expand it.
src/container/RollingOutlook/TaxPlanningRO.js
View file @
542416fd
...
...
@@ -1088,6 +1088,37 @@ export default class TaxPlanning extends Component {
}
}
handleValidateSimulasi
()
{
// let data = []
let
errorContrl
=
this
.
state
.
buttonError
let
editAble
=
this
.
state
.
editAble
// console.log(this.state.dataTable)
this
.
state
.
dataTable
.
map
((
i
,
index
)
=>
{
if
(
String
(
i
[
8
])
==
"Control (should be nil)"
)
{
this
.
setState
({
loading
:
true
})
let
n
=
0
for
(
n
=
(
this
.
props
.
quarter
==
'q1'
?
12
:
(
this
.
props
.
quarter
==
'q2'
?
15
:
18
));
n
<=
20
;
n
++
)
{
if
((
Number
(
i
[
n
].
tbf
.
value
)
<
Number
(
this
.
state
.
minValue
)
||
Number
(
i
[
n
].
tbf
.
value
)
>
Number
(
this
.
state
.
maxValue
)))
{
errorContrl
=
true
editAble
=
true
break
}
else
{
errorContrl
=
false
editAble
=
false
}
}
}
})
console
.
log
(
errorContrl
)
console
.
log
(
editAble
)
if
(
errorContrl
===
false
&&
editAble
===
false
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
}
else
{
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
false
})
}
}
downloadTemplate
=
async
()
=>
{
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/tax_planning/rolling_outlook/download_template?report_id=
${
this
.
props
.
report_id
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&quartal=
${
this
.
props
.
quarter
}
&¤cy_id=
${
this
.
props
.
defaultCurrency
.
id
}
`
console
.
log
(
url
);
...
...
@@ -6607,6 +6638,29 @@ export default class TaxPlanning extends Component {
<
/button
>
<
/div
>
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
<
button
className
=
"button"
type
=
"button"
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
marginRight
:
20
}}
onClick
=
{()
=>
{
// this.forceUpdate()
this
.
setState
({
loading
:
true
,
buttonDraft
:
false
},
()
=>
{
setTimeout
(()
=>
{
this
.
handleValidateSimulasi
()
},
100
);
})
}}
>
<
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
>
<
/div
>
<
/button
>
<
button
type
=
"button"
// disabled={this.state.buttonError}
...
...
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