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
a9e4d769
Commit
a9e4d769
authored
Sep 17, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update balancesheet
parent
66094403
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
185 additions
and
172 deletions
+185
-172
BudgetTahunan.js
src/container/BudgetTahunan.js
+3
-6
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+182
-166
No files found.
src/container/BudgetTahunan.js
View file @
a9e4d769
...
...
@@ -316,8 +316,7 @@ export default class BudgetTahunan extends Component {
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
getReport
()
this
.
getSubmission
()
this
.
getCompanyActive
()
this
.
setState
({
loading
:
false
})
}
else
{
this
.
setState
({
loading
:
false
})
...
...
@@ -653,8 +652,7 @@ export default class BudgetTahunan extends Component {
submissionID
=
{
this
.
state
.
submissionID
}
saveToMasterBudget
=
{
this
.
saveToMasterBudget
.
bind
(
this
)}
onClickClose
=
{()
=>
this
.
setState
({
visibleBS
:
false
,
visibleBudgetTahunan
:
true
})}
getReport
=
{
this
.
getReport
.
bind
(
this
)}
getReportAttachment
=
{
this
.
getReportAttachment
.
bind
(
this
)}
getReport
=
{
this
.
getCompanyActive
.
bind
(
this
)}
/
>
)}
{
this
.
state
.
visiblePL
&&
(
...
...
@@ -684,8 +682,7 @@ export default class BudgetTahunan extends Component {
submissionID
=
{
this
.
state
.
submissionID
}
saveToMasterBudget
=
{
this
.
saveToMasterBudget
.
bind
(
this
)}
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleBudgetTahunan
:
true
})}
getReport
=
{
this
.
getReport
.
bind
(
this
)}
getReportAttachment
=
{
this
.
getReportAttachment
.
bind
(
this
)}
getReport
=
{
this
.
getCompanyActive
.
bind
(
this
)}
/
>
)}
{
this
.
state
.
visibleFAM
&&
(
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
a9e4d769
...
...
@@ -33,7 +33,8 @@ export default class BalanceSheet extends Component {
this
.
state
=
{
dataTable
:
[],
visibleBalanceSheet
:
true
,
disabledSave
:
true
disabledSave
:
true
,
editable
:
false
}
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
...
@@ -68,7 +69,7 @@ export default class BalanceSheet extends Component {
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
balance_sheet
.
total_actual_before
,
item
.
balance_sheet
.
total_actual_before
===
null
?
""
:
item
.
balance_sheet
.
total_actual_before
,
item
.
balance_sheet
.
january
,
item
.
balance_sheet
.
february
,
item
.
balance_sheet
.
march
,
...
...
@@ -102,7 +103,7 @@ export default class BalanceSheet extends Component {
item
.
formula
,
item
.
level
,
item
.
description
,
item
.
balance_sheet
.
total_actual_before
,
item
.
balance_sheet
.
total_actual_before
===
null
?
""
:
item
.
balance_sheet
.
total_actual_before
,
item
.
balance_sheet
.
january
,
item
.
balance_sheet
.
february
,
item
.
balance_sheet
.
march
,
...
...
@@ -341,7 +342,6 @@ export default class BalanceSheet extends Component {
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
this
.
props
.
getReport
()
this
.
props
.
getReportAttachment
()
}
else
{
alert
(
response
.
data
.
status
)
}
...
...
@@ -586,16 +586,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -672,16 +673,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -758,16 +760,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -844,16 +847,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -930,16 +934,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1016,16 +1021,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1102,16 +1108,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1188,16 +1195,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1274,16 +1282,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1360,16 +1369,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1446,16 +1456,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1532,16 +1543,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1618,16 +1630,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1704,16 +1717,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1790,16 +1804,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1876,16 +1891,17 @@ export default class BalanceSheet extends Component {
/
>
:
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
null
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
)}
/
>
// value === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value)}
// />
null
:
<
span
>
validasi
<
/span
>
}
...
...
@@ -1998,7 +2014,7 @@ export default class BalanceSheet extends Component {
<
div
className
=
"col-1"
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
backToMasterBudget
(
'draft'
)}
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
backToMasterBudget
(
'draft'
)
:
this
.
props
.
onClickClose
(
)}
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
...
...
@@ -2058,7 +2074,7 @@ export default class BalanceSheet extends Component {
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
,
disabledSave
:
false
})
this
.
setState
({
loading
:
false
,
disabledSave
:
false
,
editable
:
true
})
},
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