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
ac9047de
Commit
ac9047de
authored
Jun 16, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Issue MB
parent
744102c0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
103 additions
and
50 deletions
+103
-50
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+10
-2
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+13
-7
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+28
-24
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+15
-6
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+10
-2
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+15
-5
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+11
-3
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+1
-1
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
ac9047de
...
...
@@ -3457,7 +3457,11 @@ export default class BalanceSheet extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
dataTable
.
length
==
0
?
null
:
this
.
props
.
isApprover
==
true
?
...
...
@@ -3671,7 +3675,11 @@ export default class BalanceSheet extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
ac9047de
...
...
@@ -360,7 +360,7 @@ export default class BudgetTahunan extends Component {
}
})
// // // console.log(dataTableRevision);
this
.
setState
({
dataTable
,
dataTableRevision
:
dataTableRevision
.
sort
((
a
,
b
)
=>
a
.
number
-
b
.
number
),
dataForRevision
:
response
.
data
.
data
},
()
=>
{
this
.
setState
({
loading
:
false
,
dataTable
,
dataTableRevision
:
dataTableRevision
.
sort
((
a
,
b
)
=>
a
.
number
-
b
.
number
),
dataForRevision
:
response
.
data
.
data
},
()
=>
{
document
.
body
.
style
.
overflow
=
'unset'
;
})
}
...
...
@@ -627,6 +627,11 @@ export default class BudgetTahunan extends Component {
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
type
===
"CAT"
)
{
this
.
setState
({
visibleCAT
:
false
,
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
else
{
this
.
setState
({
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
this
.
setState
({
submissionID
:
response
.
data
.
data
.
submission_id
,
submitter
:
response
.
data
.
data
.
submitter
,
...
...
@@ -634,7 +639,7 @@ export default class BudgetTahunan extends Component {
lastStatus
:
response
.
data
.
data
.
last_status
===
null
?
'SUBMIT'
:
response
.
data
.
data
.
last_status
,
lastRevision
:
response
.
data
.
data
.
last_revision
,
btnApprove
:
response
.
data
.
data
.
is_submit
,
//
loading: false
loading
:
false
},
()
=>
{
// // console.log(response.data.data.is_submit);
// // console.log(this.state.btnApprove)
...
...
@@ -2339,15 +2344,16 @@ export default class BudgetTahunan extends Component {
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
type
===
"PL"
||
"DraftPL"
)
{
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
})
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
,
loading
:
false
})
console
.
log
(
this
.
state
.
loading
);
}
else
if
(
type
===
"TP"
)
{
this
.
setState
({
visibleTP
:
false
,
visibleBudgetTahunan
:
true
})
this
.
setState
({
visibleTP
:
false
,
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
else
if
(
type
===
"BS"
)
{
this
.
setState
({
visibleBS
:
false
,
visibleBudgetTahunan
:
true
})
this
.
setState
({
visibleBS
:
false
,
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
else
if
(
type
===
"FAM"
)
{
this
.
setState
({
visibleFAM
:
false
,
visibleBudgetTahunan
:
true
})
this
.
setState
({
visibleFAM
:
false
,
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
else
if
(
type
===
"CAT"
)
{
this
.
setState
({
visibleFAM
:
false
,
visibleBudgetTahunan
:
true
})
this
.
setState
({
visibleFAM
:
false
,
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
else
{
this
.
setState
({
visibleBudgetTahunan
:
true
,
loading
:
false
})
}
...
...
src/container/BudgetTahunan/CashFlow.js
View file @
ac9047de
...
...
@@ -3277,7 +3277,11 @@ export default class CashFlow extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
{
/* <div style={{ width: '50%' }}>
<div style={{ justifyContent: 'flex-end', display: 'flex', flexFlow: 'wrap' }}>
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
ac9047de
...
...
@@ -663,10 +663,11 @@ export default class CorporateAnnualTarget extends Component {
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
type
==
'submitted'
)
{
this
.
props
.
saveToMasterBudge
t
(
body
,
'CAT'
)
this
.
props
.
getRepor
t
(
body
,
'CAT'
)
}
else
{
this
.
props
.
saveToMasterBudge
t
(
body
)
this
.
props
.
getRepor
t
(
body
)
}
this
.
setState
({
loading
:
false
})
// this.props.onClickClose()
// this.props.getReport()
}
else
{
...
...
@@ -1362,7 +1363,7 @@ export default class CorporateAnnualTarget extends Component {
// // // console.log(total)
total
=
R
.
equals
(
total
,
NaN
)
?
"0.0"
:
total
console
.
log
(
total
);
//
console.log(total);
// if (dataTable2[tableMeta.rowIndex][6] == "ROIC") {
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) {
// dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = "0"
...
...
@@ -3777,7 +3778,11 @@ export default class CorporateAnnualTarget extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
dataTable
.
length
==
0
?
null
:
this
.
props
.
isApprover
==
true
?
...
...
@@ -3983,7 +3988,11 @@ export default class CorporateAnnualTarget extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
ac9047de
...
...
@@ -2636,7 +2636,11 @@ export default class FixedAssetsMovement extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
dataTable
.
length
==
0
?
null
:
this
.
props
.
isApprover
==
true
?
...
...
@@ -2852,7 +2856,11 @@ export default class FixedAssetsMovement extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
ac9047de
...
...
@@ -107,6 +107,7 @@ export default class ProfitLoss extends Component {
}
getItemHierarki
()
{
console
.
log
(
this
.
props
);
this
.
setState
({
loading
:
true
,
judulColumn
:
null
})
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
...
...
@@ -471,9 +472,9 @@ export default class ProfitLoss extends Component {
}
}
else
{
if
(
response
.
data
.
message
==
"Please Set Up Rate Currency First"
)
{
this
.
setState
({
visibleAlertSave
:
true
})
this
.
setState
({
visibleAlertSave
:
true
})
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
...
...
@@ -2863,7 +2864,12 @@ export default class ProfitLoss extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
dataTable
.
length
==
0
?
null
:
this
.
props
.
isApprover
==
true
?
...
...
@@ -3049,7 +3055,7 @@ export default class ProfitLoss extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'warning'
})
:
this
.
state
.
handleDoubleClick
==
1
?
null
:
this
.
setState
({
handleDoubleClick
:
1
},
()
=>
{
this
.
setState
({
handleDoubleClick
:
1
,
loading
:
true
},
()
=>
{
this
.
backToMasterBudget
(
'submitted'
)
})}
style
=
{{
...
...
@@ -3074,7 +3080,11 @@ export default class ProfitLoss extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
ac9047de
...
...
@@ -8962,7 +8962,11 @@ export default class TaxPlanning extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
state
.
dataTable
.
length
==
0
?
null
:
this
.
props
.
isApprover
==
true
?
...
...
@@ -9153,7 +9157,7 @@ export default class TaxPlanning extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'warning'
})
:
this
.
state
.
handleDoubleClick
==
1
?
null
:
this
.
setState
({
handleDoubleClick
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleDoubleClick
:
1
},
()
=>
{
setTimeout
(()
=>
{
this
.
backToMasterBudget
(
'submitted'
)
},
100
);
...
...
@@ -9181,7 +9185,11 @@ export default class TaxPlanning extends Component {
<
div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
{
this
.
props
.
company
.
company_name
}
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
{
this
.
props
.
defaultCurrency
.
id
===
1
?
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
:
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
USD
thousand
<
/Typography
>
}
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
ac9047de
...
...
@@ -3426,7 +3426,7 @@ export default class TaxPlanningOLPA extends Component {
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete'
,
tipeAlert
:
'error'
})
:
this
.
state
.
handleDoubleClick
==
1
?
null
:
this
.
setState
({
handleDoubleClick
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleDoubleClick
:
1
},
()
=>
{
setTimeout
(()
=>
{
this
.
backToMasterBudget
(
'submitted'
)
},
100
);
...
...
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