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
9f1486a0
Commit
9f1486a0
authored
Sep 18, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
apdet pl See merge request
!326
parents
bd3ccc53
a81d9c62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
BudgetTahunan.js
src/container/BudgetTahunan.js
+0
-1
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+7
-6
No files found.
src/container/BudgetTahunan.js
View file @
9f1486a0
...
@@ -668,7 +668,6 @@ export default class BudgetTahunan extends Component {
...
@@ -668,7 +668,6 @@ export default class BudgetTahunan extends Component {
saveToMasterBudget
=
{
this
.
saveToMasterBudget
.
bind
(
this
)}
saveToMasterBudget
=
{
this
.
saveToMasterBudget
.
bind
(
this
)}
onClickClose
=
{()
=>
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
})}
onClickClose
=
{()
=>
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
})}
getReport
=
{
this
.
getReport
.
bind
(
this
)}
getReport
=
{
this
.
getReport
.
bind
(
this
)}
getReportAttachment
=
{
this
.
getReportAttachment
.
bind
(
this
)}
/
>
/
>
)}
)}
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
9f1486a0
...
@@ -33,7 +33,8 @@ export default class ProfitLoss extends Component {
...
@@ -33,7 +33,8 @@ export default class ProfitLoss extends Component {
this
.
state
=
{
this
.
state
=
{
dataTable
:
[],
dataTable
:
[],
visibleProfitLoss
:
true
,
visibleProfitLoss
:
true
,
disabledSave
:
true
disabledSave
:
true
,
editable
:
false
}
}
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
@@ -193,7 +194,7 @@ export default class ProfitLoss extends Component {
...
@@ -193,7 +194,7 @@ export default class ProfitLoss extends Component {
"status"
:
type
,
"status"
:
type
,
"profit_loss"
:
data
"profit_loss"
:
data
}
}
console
.
log
(
payload
);
console
.
log
(
data
);
this
.
props
.
saveToMasterBudget
(
payload
)
this
.
props
.
saveToMasterBudget
(
payload
)
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
}
}
...
@@ -245,7 +246,7 @@ export default class ProfitLoss extends Component {
...
@@ -245,7 +246,7 @@ export default class ProfitLoss extends Component {
december
:
i
[
15
]
===
undefined
?
""
:
String
(
i
[
15
]).
trim
(),
december
:
i
[
15
]
===
undefined
?
""
:
String
(
i
[
15
]).
trim
(),
total_current_year
:
i
[
16
]
===
undefined
?
""
:
String
(
i
[
16
]).
trim
(),
total_current_year
:
i
[
16
]
===
undefined
?
""
:
String
(
i
[
16
]).
trim
(),
total_next_year
:
i
[
17
]
===
undefined
?
""
:
String
(
i
[
17
]).
trim
(),
total_next_year
:
i
[
17
]
===
undefined
?
""
:
String
(
i
[
17
]).
trim
(),
total_more_year
:
i
[
1
8
]
===
undefined
?
""
:
String
(
i
[
18
]).
trim
()
total_more_year
:
i
[
1
7
]
===
undefined
?
""
:
String
(
i
[
18
]).
trim
()
})
})
}
}
})
})
...
@@ -2066,7 +2067,7 @@ export default class ProfitLoss extends Component {
...
@@ -2066,7 +2067,7 @@ export default class ProfitLoss extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
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
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
{
!
this
.
state
.
loading
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
<
MUIDataTable
data
=
{
dataTable2
}
data
=
{
dataTable2
}
...
@@ -2080,7 +2081,7 @@ export default class ProfitLoss extends Component {
...
@@ -2080,7 +2081,7 @@ export default class ProfitLoss extends Component {
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
<
button
<
button
type
=
"button"
type
=
"button"
onClick
=
{()
=>
this
.
backToMasterBudget
(
'draft'
)}
onClick
=
{()
=>
this
.
state
.
editable
===
true
?
this
.
backToMasterBudget
(
'draft'
)
:
this
.
props
.
onClickClose
(
)}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
cursor
:
'pointer'
,
...
@@ -2140,7 +2141,7 @@ export default class ProfitLoss extends Component {
...
@@ -2140,7 +2141,7 @@ export default class ProfitLoss extends Component {
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
,
disabledSave
:
false
})
this
.
setState
({
loading
:
false
,
disabledSave
:
false
,
editable
:
true
})
},
100
);
},
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