Commit 47ff9154 authored by EKSAD's avatar EKSAD

OLPA copas

parent 220d5a45
......@@ -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 ProfitLossOLPA 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 && (
<ProfitLossOLPA
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">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment