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
0e134140
Commit
0e134140
authored
Jan 19, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'didam' into 'master'
apdet See merge request
!987
parents
8779cbe4
ed8dbe73
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
23 deletions
+64
-23
MonthlyReport.js
src/container/MonthlyReport.js
+24
-3
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+8
-4
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+8
-4
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+8
-4
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+8
-4
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+8
-4
No files found.
src/container/MonthlyReport.js
View file @
0e134140
...
@@ -689,6 +689,21 @@ export default class MonthlyReport extends Component {
...
@@ -689,6 +689,21 @@ export default class MonthlyReport extends Component {
clickDetail
(
item
,
id
,
revision
,
status
)
{
clickDetail
(
item
,
id
,
revision
,
status
)
{
console
.
log
(
item
)
console
.
log
(
item
)
let
items
=
''
if
(
item
===
'Corporate Annual Target'
)
{
items
=
'CAT'
}
else
{
items
=
item
}
this
.
state
.
dataForRevision
.
map
(
i
=>
{
if
(
i
.
report_name
===
items
)
{
if
(
i
.
revision
!==
revision
)
{
this
.
setState
({
prevRevision
:
true
})
}
else
{
this
.
setState
({
prevRevision
:
false
})
}
}
})
this
.
setState
({
this
.
setState
({
report_id
:
id
,
report_id
:
id
,
revisionTable
:
revision
,
revisionTable
:
revision
,
...
@@ -1757,7 +1772,8 @@ export default class MonthlyReport extends Component {
...
@@ -1757,7 +1772,8 @@ export default class MonthlyReport extends Component {
isApprover
=
{
this
.
state
.
isApprover
}
isApprover
=
{
this
.
state
.
isApprover
}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
// getReport={this.getCompanyActive.bind(this)}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
// getReport={this.getCompanyActive.bind(this)}
/
>
/
>
)}
)}
{
this
.
state
.
visiblePL
&&
(
{
this
.
state
.
visiblePL
&&
(
...
@@ -1776,7 +1792,8 @@ export default class MonthlyReport extends Component {
...
@@ -1776,7 +1792,8 @@ export default class MonthlyReport extends Component {
isApprover
=
{
this
.
state
.
isApprover
}
isApprover
=
{
this
.
state
.
isApprover
}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
// getReport={this.getCompanyActive.bind(this)}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
// getReport={this.getCompanyActive.bind(this)}
/
>
/
>
)}
)}
...
@@ -1799,6 +1816,7 @@ export default class MonthlyReport extends Component {
...
@@ -1799,6 +1816,7 @@ export default class MonthlyReport extends Component {
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
// getReport={this.getCompanyActive.bind(this)}
// getReport={this.getCompanyActive.bind(this)}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
/
>
/
>
)}
)}
{
this
.
state
.
visibleFAM
&&
(
{
this
.
state
.
visibleFAM
&&
(
...
@@ -1817,6 +1835,7 @@ export default class MonthlyReport extends Component {
...
@@ -1817,6 +1835,7 @@ export default class MonthlyReport extends Component {
isApprover
=
{
this
.
state
.
isApprover
}
isApprover
=
{
this
.
state
.
isApprover
}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
/
>
/
>
)}
)}
{
this
.
state
.
visibleCAT
&&
(
{
this
.
state
.
visibleCAT
&&
(
...
@@ -1835,6 +1854,7 @@ export default class MonthlyReport extends Component {
...
@@ -1835,6 +1854,7 @@ export default class MonthlyReport extends Component {
isApprover
=
{
this
.
state
.
isApprover
}
isApprover
=
{
this
.
state
.
isApprover
}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
/
>
/
>
)}
)}
{
this
.
state
.
visibleLOCF
&&
(
{
this
.
state
.
visibleLOCF
&&
(
...
@@ -1853,7 +1873,7 @@ export default class MonthlyReport extends Component {
...
@@ -1853,7 +1873,7 @@ export default class MonthlyReport extends Component {
isApprover
=
{
this
.
state
.
isApprover
}
isApprover
=
{
this
.
state
.
isApprover
}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
/
>
/
>
)}
)}
...
@@ -1871,6 +1891,7 @@ export default class MonthlyReport extends Component {
...
@@ -1871,6 +1891,7 @@ export default class MonthlyReport extends Component {
onClickClose
=
{()
=>
this
.
setState
({
visibleOI
:
false
,
visibleMonthlyReport
:
true
})}
onClickClose
=
{()
=>
this
.
setState
({
visibleOI
:
false
,
visibleMonthlyReport
:
true
})}
status
=
{
this
.
state
.
status
}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
/
>
/
>
)}
)}
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
0e134140
...
@@ -70,6 +70,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -70,6 +70,7 @@ export default class BalanceSheetMR extends Component {
let
checkApprover
=
false
let
checkApprover
=
false
let
checkLastStatus
=
false
let
checkLastStatus
=
false
let
checkStatus
=
false
let
checkStatus
=
false
let
checkPrevRev
=
false
if
(
this
.
props
.
isApprover
)
{
if
(
this
.
props
.
isApprover
)
{
checkApprover
=
true
checkApprover
=
true
...
@@ -82,9 +83,12 @@ export default class BalanceSheetMR extends Component {
...
@@ -82,9 +83,12 @@ export default class BalanceSheetMR extends Component {
}
else
{
}
else
{
checkLastStatus
=
false
checkLastStatus
=
false
}
}
// else if (this.props.prevRevision) {
// viewOnly = false
if
(
this
.
props
.
prevRevision
)
{
// }
checkPrevRev
=
true
}
else
{
checkPrevRev
=
false
}
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
checkStatus
=
true
checkStatus
=
true
...
@@ -92,7 +96,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -92,7 +96,7 @@ export default class BalanceSheetMR extends Component {
checkStatus
=
false
checkStatus
=
false
}
}
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
getLatestUpdate
()
{
getLatestUpdate
()
{
...
...
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
0e134140
...
@@ -71,6 +71,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -71,6 +71,7 @@ export default class FixedAssetsMovementMR extends Component {
let
checkApprover
=
false
let
checkApprover
=
false
let
checkLastStatus
=
false
let
checkLastStatus
=
false
let
checkStatus
=
false
let
checkStatus
=
false
let
checkPrevRev
=
false
if
(
this
.
props
.
isApprover
)
{
if
(
this
.
props
.
isApprover
)
{
checkApprover
=
true
checkApprover
=
true
...
@@ -83,9 +84,12 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -83,9 +84,12 @@ export default class FixedAssetsMovementMR extends Component {
}
else
{
}
else
{
checkLastStatus
=
false
checkLastStatus
=
false
}
}
// else if (this.props.prevRevision) {
// viewOnly = false
if
(
this
.
props
.
prevRevision
)
{
// }
checkPrevRev
=
true
}
else
{
checkPrevRev
=
false
}
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
checkStatus
=
true
checkStatus
=
true
...
@@ -93,7 +97,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -93,7 +97,7 @@ export default class FixedAssetsMovementMR extends Component {
checkStatus
=
false
checkStatus
=
false
}
}
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
getLatestUpdate
()
{
getLatestUpdate
()
{
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
0e134140
...
@@ -145,6 +145,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -145,6 +145,7 @@ export default class ListOfCreditFacilities extends Component {
let
checkApprover
=
false
let
checkApprover
=
false
let
checkLastStatus
=
false
let
checkLastStatus
=
false
let
checkStatus
=
false
let
checkStatus
=
false
let
checkPrevRev
=
false
if
(
this
.
props
.
isApprover
)
{
if
(
this
.
props
.
isApprover
)
{
checkApprover
=
true
checkApprover
=
true
...
@@ -157,9 +158,12 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -157,9 +158,12 @@ export default class ListOfCreditFacilities extends Component {
}
else
{
}
else
{
checkLastStatus
=
false
checkLastStatus
=
false
}
}
// else if (this.props.prevRevision) {
// viewOnly = false
if
(
this
.
props
.
prevRevision
)
{
// }
checkPrevRev
=
true
}
else
{
checkPrevRev
=
false
}
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
checkStatus
=
true
checkStatus
=
true
...
@@ -167,7 +171,7 @@ export default class ListOfCreditFacilities extends Component {
...
@@ -167,7 +171,7 @@ export default class ListOfCreditFacilities extends Component {
checkStatus
=
false
checkStatus
=
false
}
}
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
getItemHierarki
()
{
getItemHierarki
()
{
...
...
src/container/MonthlyReport/ProfitLossMR.js
View file @
0e134140
...
@@ -110,6 +110,7 @@ export default class ProfitLossMR extends Component {
...
@@ -110,6 +110,7 @@ export default class ProfitLossMR extends Component {
let
checkApprover
=
false
let
checkApprover
=
false
let
checkLastStatus
=
false
let
checkLastStatus
=
false
let
checkStatus
=
false
let
checkStatus
=
false
let
checkPrevRev
=
false
if
(
this
.
props
.
isApprover
)
{
if
(
this
.
props
.
isApprover
)
{
checkApprover
=
true
checkApprover
=
true
...
@@ -122,9 +123,12 @@ export default class ProfitLossMR extends Component {
...
@@ -122,9 +123,12 @@ export default class ProfitLossMR extends Component {
}
else
{
}
else
{
checkLastStatus
=
false
checkLastStatus
=
false
}
}
// else if (this.props.prevRevision) {
// viewOnly = false
if
(
this
.
props
.
prevRevision
)
{
// }
checkPrevRev
=
true
}
else
{
checkPrevRev
=
false
}
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
checkStatus
=
true
checkStatus
=
true
...
@@ -132,7 +136,7 @@ export default class ProfitLossMR extends Component {
...
@@ -132,7 +136,7 @@ export default class ProfitLossMR extends Component {
checkStatus
=
false
checkStatus
=
false
}
}
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
handleGetFor
(
type
)
{
handleGetFor
(
type
)
{
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
0e134140
...
@@ -72,6 +72,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -72,6 +72,7 @@ export default class TaxPlanningMR extends Component {
let
checkApprover
=
false
let
checkApprover
=
false
let
checkLastStatus
=
false
let
checkLastStatus
=
false
let
checkStatus
=
false
let
checkStatus
=
false
let
checkPrevRev
=
false
if
(
this
.
props
.
isApprover
)
{
if
(
this
.
props
.
isApprover
)
{
checkApprover
=
true
checkApprover
=
true
...
@@ -84,17 +85,20 @@ export default class TaxPlanningMR extends Component {
...
@@ -84,17 +85,20 @@ export default class TaxPlanningMR extends Component {
}
else
{
}
else
{
checkLastStatus
=
false
checkLastStatus
=
false
}
}
// else if (this.props.prevRevision) {
// viewOnly = false
// }
if
(
this
.
props
.
prevRevision
)
{
checkPrevRev
=
true
}
else
{
checkPrevRev
=
false
}
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
if
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
{
checkStatus
=
true
checkStatus
=
true
}
else
{
}
else
{
checkStatus
=
false
checkStatus
=
false
}
}
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
handleGetFor
(
type
)
{
handleGetFor
(
type
)
{
...
...
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