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
201b8414
Commit
201b8414
authored
Oct 21, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
a368618e
f6f26ae6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1034 additions
and
2735 deletions
+1034
-2735
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+27
-10
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+2
-1
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+38
-47
SubHolding.js
src/container/Laporan/SubHolding.js
+0
-2
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+954
-2672
MonthlyReport.js
src/container/MonthlyReport.js
+11
-1
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+1
-1
OperatingIndicatorDetail.js
src/container/OprIndicator/OperatingIndicatorDetail.js
+1
-1
No files found.
src/container/BudgetTahunan/CashFlow.js
View file @
201b8414
...
@@ -6,6 +6,7 @@ import ReactTooltip from 'react-tooltip';
...
@@ -6,6 +6,7 @@ import ReactTooltip from 'react-tooltip';
import
api
from
'../../api'
;
import
api
from
'../../api'
;
import
Images
from
'../../assets/Images'
;
import
Images
from
'../../assets/Images'
;
import
*
as
R
from
'ramda'
import
*
as
R
from
'ramda'
import
{
PropagateLoader
}
from
'react-spinners'
;
var
ct
=
require
(
"../../library/CustomTable"
);
var
ct
=
require
(
"../../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable3
());
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable3
());
...
@@ -35,7 +36,8 @@ export default class CashFlow extends Component {
...
@@ -35,7 +36,8 @@ export default class CashFlow extends Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
this
.
state
=
{
this
.
state
=
{
dataTable
:
[]
dataTable
:
[],
loading
:
false
}
}
}
}
...
@@ -142,22 +144,19 @@ export default class CashFlow extends Component {
...
@@ -142,22 +144,19 @@ export default class CashFlow extends Component {
// console.log(url);
// console.log(url);
let
resReal
=
`https://tia.eksad.com/tia-reporting-dev/public/transaction/cash_flow/export_master_budget?submission_id=
${
this
.
props
.
submissionID
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&report_id=
${
this
.
props
.
report_id
}
`
let
resReal
=
`https://tia.eksad.com/tia-reporting-dev/public/transaction/cash_flow/export_master_budget?submission_id=
${
this
.
props
.
submissionID
}
&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&report_id=
${
this
.
props
.
report_id
}
`
let
resNull
=
`https://tia.eksad.com/tia-reporting-dev/public/transaction/cash_flow/export_master_budget?submission_id=&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&report_id=
${
this
.
props
.
report_id
}
`
let
resNull
=
`https://tia.eksad.com/tia-reporting-dev/public/transaction/cash_flow/export_master_budget?submission_id=&&company_id=
${
this
.
props
.
company
.
company_id
}
&&year=
${
this
.
props
.
periode
}
&&revision=
${
this
.
props
.
revision
}
&&report_id=
${
this
.
props
.
report_id
}
`
if
(
this
.
props
.
submissionID
==
null
)
{
console
.
log
(
resNull
)
}
else
{
console
.
log
(
resReal
)
}
let
res
=
await
fetch
(
let
res
=
await
fetch
(
this
.
props
.
submissionID
==
null
?
resNull
:
resReal
this
.
props
.
submissionID
==
null
?
resNull
:
resReal
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
if
(
res
.
size
>
0
)
{
if
(
res
.
size
>
0
)
{
let
url
=
window
.
URL
.
createObjectURL
(
res
);
let
url
=
window
.
URL
.
createObjectURL
(
res
);
let
a
=
document
.
createElement
(
'a'
);
let
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
;
a
.
href
=
url
;
a
.
download
=
'Master Budget Cash Flow.xlsx'
;
a
.
download
=
'Master Budget Cash Flow.xlsx'
;
a
.
click
();
a
.
click
();
this
.
setState
({
loading
:
false
})
}
else
{
this
.
setState
({
loading
:
false
})
}
}
}
}
...
@@ -2143,6 +2142,18 @@ export default class CashFlow extends Component {
...
@@ -2143,6 +2142,18 @@ export default class CashFlow extends Component {
}
}
},
},
]
]
const
loadingComponent
=
(
<
div
style
=
{{
position
:
'absolute'
,
zIndex
:
110
,
top
:
0
,
left
:
0
,
width
:
'100%'
,
height
:
'100%'
,
display
:
'flex'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
background
:
'rgba(255,255,255,0.8)'
}}
>
<
PropagateLoader
// css={override}
size
=
{
20
}
color
=
{
"#274B80"
}
loading
=
{
this
.
state
.
loading
}
/
>
<
/div
>
);
return
(
return
(
<
div
style
=
{{
height
:
this
.
props
.
height
,
backgroundColor
:
'#f8f8f8'
,
marginBottom
:
100
,
minHeight
:
1000
}}
>
<
div
style
=
{{
height
:
this
.
props
.
height
,
backgroundColor
:
'#f8f8f8'
,
marginBottom
:
100
,
minHeight
:
1000
}}
>
<
div
className
=
{
"main-color"
}
style
=
{{
height
:
78
,
flex
:
1
,
display
:
'flex'
,
alignItems
:
'center'
,
paddingLeft
:
20
}}
>
<
div
className
=
{
"main-color"
}
style
=
{{
height
:
78
,
flex
:
1
,
display
:
'flex'
,
alignItems
:
'center'
,
paddingLeft
:
20
}}
>
...
@@ -2170,7 +2181,12 @@ export default class CashFlow extends Component {
...
@@ -2170,7 +2181,12 @@ export default class CashFlow extends Component {
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
margin
:
5
margin
:
5
}}
}}
onClick
=
{()
=>
this
.
downloadAllData
()}
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
downloadAllData
()
// setTimeout(() => {
// this.setState({loading: false})
// }, 500);
})}
>
>
<
img
src
=
{
Images
.
download
}
/
>
<
img
src
=
{
Images
.
download
}
/
>
<
/button
>
<
/button
>
...
@@ -2181,13 +2197,14 @@ export default class CashFlow extends Component {
...
@@ -2181,13 +2197,14 @@ export default class CashFlow extends Component {
<
/div
>
<
/div
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
{
!
this
.
state
.
loading
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
{
this
.
state
.
loading
&&
loadingComponent
}
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
<
MUIDataTable
data
=
{
dataTable2
}
data
=
{
dataTable2
}
columns
=
{
columns
}
columns
=
{
columns
}
options
=
{
options
}
options
=
{
options
}
/
>
/
>
<
/MuiThemeProvider>
}
<
/MuiThemeProvider
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Paper
>
<
/Paper
>
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
201b8414
...
@@ -90,6 +90,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -90,6 +90,7 @@ export default class CorporateAnnualTarget extends Component {
this
.
getKPIType
()
this
.
getKPIType
()
this
.
getMaxAch
()
this
.
getMaxAch
()
this
.
getLatestUpdate
()
this
.
getLatestUpdate
()
// console.log(this.props.status)
// // console.log(this.props.lastStatus);
// // console.log(this.props.lastStatus);
}
}
...
@@ -1119,7 +1120,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -1119,7 +1120,7 @@ export default class CorporateAnnualTarget extends Component {
setCellProps
:
()
=>
({
style
}),
setCellProps
:
()
=>
({
style
}),
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
tableMeta
.
rowData
[
1
]
==
""
?
handleAction
(
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
0
],
tableMeta
)
&&
(
tableMeta
.
rowData
[
1
]
==
""
||
String
(
this
.
props
.
status
).
toLocaleLowerCase
()
==
'draft'
||
String
(
this
.
props
.
status
).
toLocaleLowerCase
()
==
'submitted'
||
String
(
this
.
props
.
status
).
toLocaleLowerCase
()
==
'revision'
)
?
<
div
style
=
{{
textAlign
:
'left'
,
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
div
style
=
{{
textAlign
:
'left'
,
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
!
this
.
state
.
loading
&&
<
FormControlLabel
{
!
this
.
state
.
loading
&&
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
201b8414
...
@@ -93,7 +93,7 @@ export default class TaxPlanning extends Component {
...
@@ -93,7 +93,7 @@ export default class TaxPlanning extends Component {
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
}
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
// console.log(response
);
let
dataTable
=
[]
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
let
res
=
response
.
data
.
data
...
@@ -815,12 +815,8 @@ export default class TaxPlanning extends Component {
...
@@ -815,12 +815,8 @@ export default class TaxPlanning extends Component {
if
(
dataTable2
[
indexID
][
24
]
==
tableMeta
.
rowData
[
24
])
{
if
(
dataTable2
[
indexID
][
24
]
==
tableMeta
.
rowData
[
24
])
{
anjay
.
push
(
0
)
anjay
.
push
(
0
)
}
else
{
}
else
{
// console.log(dataTable2[indexID][tableMeta.columnIndex]);
let
data
=
dex
==
1
?
dataTable2
[
indexID
][
tableMeta
.
columnIndex
].
tbc
:
dex
==
2
?
dataTable2
[
indexID
][
tableMeta
.
columnIndex
].
fcp
:
dataTable2
[
indexID
][
tableMeta
.
columnIndex
].
tbf
let
data
=
dex
==
1
?
dataTable2
[
indexID
][
tableMeta
.
columnIndex
].
tbc
:
dex
==
2
?
dataTable2
[
indexID
][
tableMeta
.
columnIndex
].
fcp
:
dataTable2
[
indexID
][
tableMeta
.
columnIndex
].
tbf
let
valuezz
=
data
.
value
==
undefined
?
data
:
data
.
value
let
valuezz
=
data
.
value
==
undefined
?
data
:
data
.
value
// console.log(data);
// console.log(data.value);
// console.log(valuezz);
anjay
.
push
(
valuezz
==
""
?
0
:
valuezz
)
anjay
.
push
(
valuezz
==
""
?
0
:
valuezz
)
}
}
...
@@ -1010,23 +1006,32 @@ export default class TaxPlanning extends Component {
...
@@ -1010,23 +1006,32 @@ export default class TaxPlanning extends Component {
}
}
const
handleTotal
=
(
tableMeta
,
dex
)
=>
{
const
handleTotal
=
(
tableMeta
,
dex
)
=>
{
let
total
=
0
let
total
=
0
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
let
totalfcp
=
0
if
(
index
>=
9
&&
index
<=
20
)
{
if
(
String
(
tableMeta
.
rowData
[
8
]).
toLowerCase
()
===
"fiscal correction positive / (negative) year to date"
){
if
(
tableMeta
.
rowData
[
3
]
===
5
||
tableMeta
.
rowData
[
3
]
===
6
||
tableMeta
.
rowData
[
3
]
===
7
)
{
dataTable2
[
tableMeta
.
rowIndex
-
2
].
map
((
item
,
index
)
=>
{
let
valItem
=
item
.
tbf
.
value
==
undefined
||
item
.
tbf
.
value
==
""
||
item
.
tbf
.
value
==
"undefined"
?
0.0
:
item
.
tbf
.
value
if
(
index
>=
9
&&
index
<=
20
)
{
total
+=
Number
(
valItem
)
if
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
2
]
===
5
||
dataTable2
[
tableMeta
.
rowIndex
-
2
][
2
]
===
6
||
dataTable2
[
tableMeta
.
rowIndex
-
2
][
2
]
===
7
)
{
}
else
{
let
valItem
=
item
.
fcp
.
value
==
undefined
||
item
.
fcp
.
value
==
""
||
item
.
fcp
.
value
==
"undefined"
?
0.0
:
item
.
fcp
.
value
if
(
tableMeta
.
rowData
[
8
]
===
"Fiscal Correction positive / (negative) Year To Date"
){
total
+=
Number
(
valItem
)
}
else
{
let
valItem
=
item
.
fcp
==
undefined
||
item
.
fcp
==
""
||
item
.
fcp
==
"undefined"
?
0.0
:
item
.
fcp
let
valItem
=
item
.
fcp
==
undefined
||
item
.
fcp
==
""
||
item
.
fcp
==
"undefined"
?
0.0
:
item
.
fcp
total
+=
Number
(
valItem
)
total
+=
Number
(
valItem
)
}
}
})
}
else
{
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
if
(
index
>=
9
&&
index
<=
20
)
{
if
(
tableMeta
.
rowData
[
3
]
===
5
||
tableMeta
.
rowData
[
3
]
===
6
||
tableMeta
.
rowData
[
3
]
===
7
)
{
let
valItem
=
item
.
tbf
.
value
==
undefined
||
item
.
tbf
.
value
==
""
||
item
.
tbf
.
value
==
"undefined"
?
0.0
:
item
.
tbf
.
value
total
+=
Number
(
valItem
)
}
else
{
}
else
{
let
valItem
=
item
.
tbf
==
undefined
||
item
.
tbf
==
""
||
item
.
tbf
==
"undefined"
?
0.0
:
item
.
tbf
let
valItem
=
item
.
tbf
==
undefined
||
item
.
tbf
==
""
||
item
.
tbf
==
"undefined"
?
0.0
:
item
.
tbf
total
+=
Number
(
valItem
)
total
+=
Number
(
valItem
)
}
}
}
}
}
})
})
}
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
Number
(
total
).
toFixed
(
1
)
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
Number
(
total
).
toFixed
(
1
)
return
total
return
total
}
}
...
@@ -1150,20 +1155,6 @@ export default class TaxPlanning extends Component {
...
@@ -1150,20 +1155,6 @@ export default class TaxPlanning extends Component {
let
total
=
0
let
total
=
0
dataTable2
.
map
((
item
,
index
)
=>
{
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
item
[
5
]
==
tableMeta
.
rowData
[
4
])
{
if
(
item
[
5
]
==
tableMeta
.
rowData
[
4
])
{
// if (type == 1) {
// console.log(item[tableMeta.columnIndex].tbc.value)
// console.log(item[tableMeta.columnIndex].tbc)
// } else
// if (type == 2) {
// console.log(item[tableMeta.columnIndex].fcp.value)
// console.log(item[tableMeta.columnIndex].fcp)}
// console.log(type)
// if (type == 3) {
// console.log(item[tableMeta.columnIndex].tbf.value)
// console.log(item[tableMeta.columnIndex].tbf)
// }
// console.log(item[4])
// console.log(tableMeta.rowData[5])
total
+=
Number
(
type
==
1
?
total
+=
Number
(
type
==
1
?
item
[
tableMeta
.
columnIndex
].
tbc
.
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
].
tbc
==
""
||
item
[
tableMeta
.
columnIndex
].
tbc
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbc
)
:
Number
(
item
[
tableMeta
.
columnIndex
].
tbc
.
value
==
""
||
item
[
tableMeta
.
columnIndex
].
tbc
.
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbc
.
value
)
item
[
tableMeta
.
columnIndex
].
tbc
.
value
==
undefined
?
Number
(
item
[
tableMeta
.
columnIndex
].
tbc
==
""
||
item
[
tableMeta
.
columnIndex
].
tbc
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbc
)
:
Number
(
item
[
tableMeta
.
columnIndex
].
tbc
.
value
==
""
||
item
[
tableMeta
.
columnIndex
].
tbc
.
value
==
"0.0"
?
0
:
item
[
tableMeta
.
columnIndex
].
tbc
.
value
)
:
:
...
@@ -1310,7 +1301,7 @@ export default class TaxPlanning extends Component {
...
@@ -1310,7 +1301,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
// console.log(dataTable2)
//
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -2714,7 +2705,7 @@ export default class TaxPlanning extends Component {
...
@@ -2714,7 +2705,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -3140,7 +3131,7 @@ export default class TaxPlanning extends Component {
...
@@ -3140,7 +3131,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -3272,7 +3263,7 @@ export default class TaxPlanning extends Component {
...
@@ -3272,7 +3263,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -3567,7 +3558,7 @@ export default class TaxPlanning extends Component {
...
@@ -3567,7 +3558,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -3699,7 +3690,7 @@ export default class TaxPlanning extends Component {
...
@@ -3699,7 +3690,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -3994,7 +3985,7 @@ export default class TaxPlanning extends Component {
...
@@ -3994,7 +3985,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -4126,7 +4117,7 @@ export default class TaxPlanning extends Component {
...
@@ -4126,7 +4117,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -4421,7 +4412,7 @@ export default class TaxPlanning extends Component {
...
@@ -4421,7 +4412,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -4553,7 +4544,7 @@ export default class TaxPlanning extends Component {
...
@@ -4553,7 +4544,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -4848,7 +4839,7 @@ export default class TaxPlanning extends Component {
...
@@ -4848,7 +4839,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -4980,7 +4971,7 @@ export default class TaxPlanning extends Component {
...
@@ -4980,7 +4971,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -5275,7 +5266,7 @@ export default class TaxPlanning extends Component {
...
@@ -5275,7 +5266,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -5407,7 +5398,7 @@ export default class TaxPlanning extends Component {
...
@@ -5407,7 +5398,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -5702,7 +5693,7 @@ export default class TaxPlanning extends Component {
...
@@ -5702,7 +5693,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -5834,7 +5825,7 @@ export default class TaxPlanning extends Component {
...
@@ -5834,7 +5825,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
@@ -6129,7 +6120,7 @@ export default class TaxPlanning extends Component {
...
@@ -6129,7 +6120,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
1
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
...
@@ -6261,7 +6252,7 @@ export default class TaxPlanning extends Component {
...
@@ -6261,7 +6252,7 @@ export default class TaxPlanning extends Component {
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
handleChange
(
event
.
target
.
value
,
tableMeta
,
2
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
...
src/container/Laporan/SubHolding.js
View file @
201b8414
...
@@ -291,7 +291,6 @@ export default class SubHolding extends Component {
...
@@ -291,7 +291,6 @@ export default class SubHolding extends Component {
item
.
formula
,
item
.
formula
,
item
.
level
,
item
.
level
,
item
.
description
,
item
.
description
,
item
.
profit_loss
.
notes
===
""
?
null
:
item
.
profit_loss
.
notes
,
item
.
profit_loss
.
total_actual_before
===
null
?
"0"
:
item
.
profit_loss
.
total_actual_before
===
""
?
"0"
:
item
.
profit_loss
.
total_actual_before
,
item
.
profit_loss
.
total_actual_before
===
null
?
"0"
:
item
.
profit_loss
.
total_actual_before
===
""
?
"0"
:
item
.
profit_loss
.
total_actual_before
,
item
.
profit_loss
.
january
,
item
.
profit_loss
.
january
,
item
.
profit_loss
.
february
,
item
.
profit_loss
.
february
,
...
@@ -327,7 +326,6 @@ export default class SubHolding extends Component {
...
@@ -327,7 +326,6 @@ export default class SubHolding extends Component {
item
.
formula
,
item
.
formula
,
item
.
level
,
item
.
level
,
item
.
description
,
item
.
description
,
item
.
profit_loss
.
notes
===
""
?
null
:
item
.
profit_loss
.
notes
,
item
.
profit_loss
.
total_actual_before
===
null
?
"0"
:
item
.
profit_loss
.
total_actual_before
===
""
?
"0"
:
item
.
profit_loss
.
total_actual_before
,
item
.
profit_loss
.
total_actual_before
===
null
?
"0"
:
item
.
profit_loss
.
total_actual_before
===
""
?
"0"
:
item
.
profit_loss
.
total_actual_before
,
item
.
profit_loss
.
january
,
item
.
profit_loss
.
january
,
item
.
profit_loss
.
february
,
item
.
profit_loss
.
february
,
...
...
src/container/Laporan/TableSubHolding.js
View file @
201b8414
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/MonthlyReport.js
View file @
201b8414
...
@@ -13,6 +13,7 @@ import UploadFile from "../library/Upload";
...
@@ -13,6 +13,7 @@ import UploadFile from "../library/Upload";
import
{
format
}
from
'date-fns'
;
import
{
format
}
from
'date-fns'
;
import
BalanceSheetMR
from
'./MonthlyReport/BalanceSheetMR'
;
import
BalanceSheetMR
from
'./MonthlyReport/BalanceSheetMR'
;
import
ProfitLossMR
from
'./MonthlyReport/ProfitLossMR'
;
import
ProfitLossMR
from
'./MonthlyReport/ProfitLossMR'
;
import
TaxPlanningMR
from
'./MonthlyReport/TaxPlanningMR'
;
export
default
class
MonthlyReport
extends
Component
{
export
default
class
MonthlyReport
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -545,9 +546,18 @@ export default class MonthlyReport extends Component {
...
@@ -545,9 +546,18 @@ export default class MonthlyReport extends Component {
)}
)}
{
this
.
state
.
visibleTP
&&
(
{
this
.
state
.
visibleTP
&&
(
<
TaxPlanning
<
TaxPlanning
open
=
{
this
.
props
.
open
}
report_id
=
{
this
.
state
.
report_id
}
report_id
=
{
this
.
state
.
report_id
}
height
=
{
this
.
props
.
height
}
width
=
{
this
.
props
.
width
}
company
=
{
this
.
state
.
company
}
company
=
{
this
.
state
.
company
}
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleMonthlyReport
:
true
})}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
submissionID
=
{
this
.
state
.
submissionID
}
// saveToMasterBudget={this.saveToMasterBudget.bind(this)}
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleBudgetTahunan
:
true
})}
// getReport={this.getCompanyActive.bind(this)}
// onClickClose={() => this.setState({ visibleTP: false, visibleMonthlyReport: true })}
/
>
/
>
)}
)}
{
this
.
state
.
visibleFAM
&&
(
{
this
.
state
.
visibleFAM
&&
(
...
...
src/container/
Laporan/LBTaxPlanning
.js
→
src/container/
MonthlyReport/TaxPlanningMR
.js
View file @
201b8414
...
@@ -39,7 +39,7 @@ const style2 = {
...
@@ -39,7 +39,7 @@ const style2 = {
top
:
0
top
:
0
};
};
export
default
class
TaxPlanning
extends
Component
{
export
default
class
TaxPlanning
MR
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
this
.
state
=
{
this
.
state
=
{
...
...
src/container/OprIndicator/OperatingIndicatorDetail.js
View file @
201b8414
...
@@ -1989,7 +1989,7 @@ export default class BalanceSheet extends Component {
...
@@ -1989,7 +1989,7 @@ export default class BalanceSheet extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
/div
>
{
this
.
state
.
dataLoaded
&&
(
{
this
.
state
.
dataLoaded
&&
(
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
,
height
:
this
.
props
.
height
-
400
}}
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)}}
>
{
this
.
state
.
loading
&&
loadingComponent
}
{
this
.
state
.
loading
&&
loadingComponent
}
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
<
MUIDataTable
...
...
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