Commit 47ff9154 authored by EKSAD's avatar EKSAD

OLPA copas

parent 220d5a45
...@@ -7,7 +7,7 @@ import api from '../api'; ...@@ -7,7 +7,7 @@ import api from '../api';
import Autocomplete from '@material-ui/lab/Autocomplete'; import Autocomplete from '@material-ui/lab/Autocomplete';
import MuiAlert from '@material-ui/lab/Alert'; import MuiAlert from '@material-ui/lab/Alert';
import { titleCase } from '../library/Utils'; import { titleCase } from '../library/Utils';
import ProfitLoss from './OutlookPA/ProfitLoss'; import ProfitLossOLPA from './OutlookPA/ProfitLossOLPA';
import TaxPlanning from './OutlookPA/TaxPlanning'; import TaxPlanning from './OutlookPA/TaxPlanning';
import { ExcelRenderer } from 'react-excel-renderer'; import { ExcelRenderer } from 'react-excel-renderer';
import UploadFile from "../library/Upload"; import UploadFile from "../library/Upload";
...@@ -425,46 +425,48 @@ export default class OutlookPA extends Component { ...@@ -425,46 +425,48 @@ export default class OutlookPA extends Component {
}) })
} }
// clickDetail(item, id, revision, status) { clickDetail(item, id, revision, status) {
// console.log(this.state.dataForRevision); console.log(this.state.dataForRevision);
// this.state.dataForRevision.map(i => { this.state.dataForRevision.map(i => {
// if (i.report_name === item) { if (i.report_name === item) {
// if (i.revision !== revision) { if (i.revision !== revision) {
// this.setState({ prevRevision: true }) this.setState({ prevRevision: true })
// } else { } else {
// this.setState({ prevRevision: false }) this.setState({ prevRevision: false })
// } }
// } }
// }) })
// this.setState({ this.setState({
// report_id: id, report_id: id,
// revisionTable: revision, revisionTable: revision,
// status: status status: status
// }, () => { }, () => {
// if (item === 'Balance Sheet') { if (item === 'Balance Sheet') {
// this.setState({ this.setState({
// visibleOutlookPA: false, visibleOutlookPA: false,
// visibleBS: true, visibleBS: true,
// visiblePL: false, visiblePL: false,
// visibleTP: false, visibleTP: false,
// }) })
// } else if (item === 'Profit Loss') { } else
// this.setState({ if (item === 'Profit Loss') {
// visibleOutlookPA: false, this.setState({
// visibleBS: false, visibleOutlookPA: false,
// visiblePL: true, visibleBS: false,
// visibleTP: false, visiblePL: true,
// }) visibleTP: false,
// } else if (item === 'Tax Planning') { })
// this.setState({ }
// visibleOutlookPA: false, else if (item === 'Tax Planning') {
// visibleBS: false, this.setState({
// visiblePL: false, visibleOutlookPA: false,
// visibleTP: true, visibleBS: false,
// }) visiblePL: false,
// } visibleTP: true,
// }) })
// } }
})
}
handleChange(value, tableMeta) { handleChange(value, tableMeta) {
let data = this.state.dataTable let data = this.state.dataTable
...@@ -1136,7 +1138,7 @@ export default class OutlookPA extends Component { ...@@ -1136,7 +1138,7 @@ export default class OutlookPA extends Component {
</div> </div>
)} )}
{/* {this.state.visibleBS && ( {this.state.visibleBS && (
<BalanceSheet <BalanceSheet
open={this.props.open} open={this.props.open}
report_id={this.state.report_id} report_id={this.state.report_id}
...@@ -1154,9 +1156,9 @@ export default class OutlookPA extends Component { ...@@ -1154,9 +1156,9 @@ export default class OutlookPA extends Component {
prevRevision={this.state.prevRevision} prevRevision={this.state.prevRevision}
status={this.state.status} status={this.state.status}
/> />
)} */} )}
{/* {this.state.visiblePL && ( {this.state.visiblePL && (
<ProfitLoss <ProfitLossOLPA
open={this.props.open} open={this.props.open}
report_id={this.state.report_id} report_id={this.state.report_id}
height={this.props.height} height={this.props.height}
...@@ -1193,7 +1195,7 @@ export default class OutlookPA extends Component { ...@@ -1193,7 +1195,7 @@ export default class OutlookPA extends Component {
lastStatus={this.state.lastStatus} lastStatus={this.state.lastStatus}
prevRevision={this.state.prevRevision} prevRevision={this.state.prevRevision}
/> />
)} */} )}
{this.state.visibleRevision && ( {this.state.visibleRevision && (
<div className="test app-popup-show"> <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