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
e79b130d
Commit
e79b130d
authored
Dec 07, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest update
parent
184c4ff8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+24
-1
No files found.
src/container/MonthlyReport/ProfitLossMR.js
View file @
e79b130d
...
@@ -60,12 +60,14 @@ export default class ProfitLossMR extends Component {
...
@@ -60,12 +60,14 @@ export default class ProfitLossMR extends Component {
visiblePLMR
:
true
,
visiblePLMR
:
true
,
// valueThreshold: 0,
// valueThreshold: 0,
minValue
:
0
,
minValue
:
0
,
maxValue
:
0
maxValue
:
0
,
updateBy
:
'-'
}
}
}
}
componentDidMount
()
{
componentDidMount
()
{
// this.getItemHierarki()
// this.getItemHierarki()
this
.
getLatestUpdate
()
this
.
getSettingControl
()
this
.
getSettingControl
()
}
}
...
@@ -104,6 +106,27 @@ export default class ProfitLossMR extends Component {
...
@@ -104,6 +106,27 @@ export default class ProfitLossMR extends Component {
})
})
}
}
getLatestUpdate
()
{
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"monthly_report_id"
:
this
.
props
.
monthlyReportId
,
"months"
:
this
.
props
.
month
.
month_id
}
api
.
create
().
getLastestUpdateMR
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
})
}
}
})
}
getItemHierarki
()
{
getItemHierarki
()
{
let
payload
=
{
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"report_id"
:
this
.
props
.
report_id
,
...
...
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