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
47ff9154
Commit
47ff9154
authored
Oct 05, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OLPA copas
parent
220d5a45
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2440 additions
and
46 deletions
+2440
-46
OutlookPA.js
src/container/OutlookPA.js
+48
-46
ProfitLoss.js
src/container/OutlookPA/ProfitLoss.js
+0
-0
ProfitLossOLPA.js
src/container/OutlookPA/ProfitLossOLPA.js
+2392
-0
No files found.
src/container/OutlookPA.js
View file @
47ff9154
...
...
@@ -7,7 +7,7 @@ import api from '../api';
import
Autocomplete
from
'@material-ui/lab/Autocomplete'
;
import
MuiAlert
from
'@material-ui/lab/Alert'
;
import
{
titleCase
}
from
'../library/Utils'
;
import
ProfitLoss
from
'./OutlookPA/ProfitLoss
'
;
import
ProfitLoss
OLPA
from
'./OutlookPA/ProfitLossOLPA
'
;
import
TaxPlanning
from
'./OutlookPA/TaxPlanning'
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
UploadFile
from
"../library/Upload"
;
...
...
@@ -425,46 +425,48 @@ export default class OutlookPA extends Component {
})
}
// clickDetail(item, id, revision, status) {
// console.log(this.state.dataForRevision);
// this.state.dataForRevision.map(i => {
// if (i.report_name === item) {
// if (i.revision !== revision) {
// this.setState({ prevRevision: true })
// } else {
// this.setState({ prevRevision: false })
// }
// }
// })
// this.setState({
// report_id: id,
// revisionTable: revision,
// status: status
// }, () => {
// if (item === 'Balance Sheet') {
// this.setState({
// visibleOutlookPA: false,
// visibleBS: true,
// visiblePL: false,
// visibleTP: false,
// })
// } else if (item === 'Profit Loss') {
// this.setState({
// visibleOutlookPA: false,
// visibleBS: false,
// visiblePL: true,
// visibleTP: false,
// })
// } else if (item === 'Tax Planning') {
// this.setState({
// visibleOutlookPA: false,
// visibleBS: false,
// visiblePL: false,
// visibleTP: true,
// })
// }
// })
// }
clickDetail
(
item
,
id
,
revision
,
status
)
{
console
.
log
(
this
.
state
.
dataForRevision
);
this
.
state
.
dataForRevision
.
map
(
i
=>
{
if
(
i
.
report_name
===
item
)
{
if
(
i
.
revision
!==
revision
)
{
this
.
setState
({
prevRevision
:
true
})
}
else
{
this
.
setState
({
prevRevision
:
false
})
}
}
})
this
.
setState
({
report_id
:
id
,
revisionTable
:
revision
,
status
:
status
},
()
=>
{
if
(
item
===
'Balance Sheet'
)
{
this
.
setState
({
visibleOutlookPA
:
false
,
visibleBS
:
true
,
visiblePL
:
false
,
visibleTP
:
false
,
})
}
else
if
(
item
===
'Profit Loss'
)
{
this
.
setState
({
visibleOutlookPA
:
false
,
visibleBS
:
false
,
visiblePL
:
true
,
visibleTP
:
false
,
})
}
else
if
(
item
===
'Tax Planning'
)
{
this
.
setState
({
visibleOutlookPA
:
false
,
visibleBS
:
false
,
visiblePL
:
false
,
visibleTP
:
true
,
})
}
})
}
handleChange
(
value
,
tableMeta
)
{
let
data
=
this
.
state
.
dataTable
...
...
@@ -1136,7 +1138,7 @@ export default class OutlookPA extends Component {
<
/div
>
)}
{
/* {
this.state.visibleBS && (
{
this
.
state
.
visibleBS
&&
(
<
BalanceSheet
open
=
{
this
.
props
.
open
}
report_id
=
{
this
.
state
.
report_id
}
...
...
@@ -1154,9 +1156,9 @@ export default class OutlookPA extends Component {
prevRevision
=
{
this
.
state
.
prevRevision
}
status
=
{
this
.
state
.
status
}
/
>
)}
*/
}
{
/* {
this.state.visiblePL && (
<ProfitLoss
)}
{
this
.
state
.
visiblePL
&&
(
<
ProfitLoss
OLPA
open
=
{
this
.
props
.
open
}
report_id
=
{
this
.
state
.
report_id
}
height
=
{
this
.
props
.
height
}
...
...
@@ -1193,7 +1195,7 @@ export default class OutlookPA extends Component {
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
prevRevision
}
/
>
)}
*/
}
)}
{
this
.
state
.
visibleRevision
&&
(
<
div
className
=
"test app-popup-show"
>
...
...
src/container/OutlookPA/ProfitLoss.js
deleted
100644 → 0
View file @
220d5a45
src/container/OutlookPA/ProfitLossOLPA.js
0 → 100644
View file @
47ff9154
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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