Commit 84c32c50 authored by Deni Rinaldi's avatar Deni Rinaldi

++

parent 9278f9ea
......@@ -218,6 +218,18 @@ const create = (type = "") => {
const getDashboard = (body) => api.get('transaction/get_dashboard')
const historyApproval = (body) => api.post('transaction/master_budget/history_approval', body)
//OUTLOOK PA
const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body)
const getLastPeriodOLPA = (idCompany) => api.get(`/transaction/outlook_pa/get_last_periode/${idCompany}`)
const getCompanySubmittedOLPA = (body) => api.post('transaction/outlook_pa/get_company_submitted', body)
const getRevisionOLPA = (body) => api.post('transaction/outlook_pa/get_revision', body)
const historyApprovalOLPA = (body) => api.post('transaction/outlook_pa/history_approval', body)
const getSubmitOLPA = (body) => api.post('transaction/outlook_pa/get_latest_periode_submit', body)
const getOLPAAtt = (body) => api.post('transaction/outlook_pa/get_report_attachment', body)
const submitOLPA = (body) => api.post('transaction/outlook_pa/submit_outlook_pa', body)
const getLastestUpdateOLPA = (body) => api.post('transaction/outlook_pa/get_latest_update', body)
const createReportOLPA = (body) => api.post('transaction/outlook_pa/create_outlook_report', body)
//Template
const downloadTemplate = (fileName, fileType) => api.get(`attachment/download_file?fileName=${fileName}&&fileType=${fileType}`)
......@@ -373,7 +385,17 @@ const create = (type = "") => {
getCompanySubmitted,
getLastPeriod,
getSubmitMasterBudget,
createPeriodeRevision
createPeriodeRevision,
getOutlookPAID,
getLastPeriodOLPA,
getCompanySubmittedOLPA,
getRevisionOLPA,
historyApprovalOLPA,
getSubmitOLPA,
getOLPAAtt,
submitOLPA,
getLastestUpdateOLPA,
createReportOLPA
}
}
......
......@@ -43,7 +43,7 @@ export default class OutlookPA extends Component {
alert: false,
tipeAlert: '',
messageAlert: '',
submissionID: null,
outlook_pa_id: null,
isSubmit: false,
visibleTableHistory: false,
isApprover: false,
......@@ -91,7 +91,7 @@ export default class OutlookPA extends Component {
let body = {
"periode": this.state.periode.periode
}
api.create().getCompanySubmitted(body).then(response => {
api.create().getCompanySubmittedOLPA(body).then(response => {
console.log(response);
if (response.data) {
if (response.data.status === 'success') {
......@@ -138,7 +138,7 @@ export default class OutlookPA extends Component {
"periode": this.state.periode.periode,
"revision": this.state.revision.revision,
}
api.create().getMasterBudgetAtt(payload).then(response => {
api.create().getOLPAAtt(payload).then(response => {
console.log(response)
if (response.data) {
if (response.data.status === "success") {
......@@ -191,7 +191,7 @@ export default class OutlookPA extends Component {
"company_id": this.state.company.company_id,
"periode": this.state.periode.periode
}
api.create().getSubmitMasterBudget(body).then(response => {
api.create().getSubmitOLPA(body).then(response => {
console.log(response);
if (response.data) {
if (response.data.status === "success") {
......@@ -266,7 +266,7 @@ export default class OutlookPA extends Component {
}
getLastPeriod() {
api.create().getLastPeriod(this.state.company.company_id).then(response => {
api.create().getLastPeriodOLPA(this.state.company.company_id).then(response => {
console.log(response);
if (response.data.status === "success") {
this.setState({ lastPeriod: response.data.data.last_periode, latestPeriode: response.data.data.latest_periode }, () => {
......@@ -342,26 +342,26 @@ export default class OutlookPA extends Component {
getOptionLabel: (option) => option.revision,
};
this.setState({ listRevision: defaultProps, revision: revisionData[0] }, () => {
this.getSubmission()
this.getOutlookPAID()
})
}
}
})
}
getSubmission() {
getOutlookPAID() {
this.setState({ loading: true })
let payload = {
"company_id": this.state.company.company_id,
"periode": this.state.periode.periode,
"is_approver": this.state.isApprover
}
api.create().getSubmission(payload).then(response => {
api.create().getOutlookPAID(payload).then(response => {
console.log(response)
if (response) {
if (response.data.status === "success") {
this.setState({
submissionID: response.data.data.submission_id,
outlook_pa_id: response.data.data.outlook_pa_id,
submitter: response.data.data.submitter,
approverID: response.data.data.approve_id, pic: response.data.data.approver == null ? '' : response.data.data.approver,
lastStatus: response.data.data.last_status === null ? 'SUBMIT' : response.data.data.last_status,
......@@ -382,7 +382,7 @@ export default class OutlookPA extends Component {
})
})
} else {
this.setState({ submissionID: null, loading: false })
this.setState({ outlook_pa_id: null, loading: false })
}
}
})
......@@ -393,7 +393,7 @@ export default class OutlookPA extends Component {
"company_id": this.state.company.company_id,
"periode": this.state.periode.periode
}
api.create().historyApproval(body).then(response => {
api.create().historyApprovalOLPA(body).then(response => {
console.log(response);
if (response.data.data.length > 0) {
let dataTableHistory = response.data.data.map(item => {
......@@ -420,7 +420,7 @@ export default class OutlookPA extends Component {
api.create().approvalSubmission(body).then((res) => {
console.log(res)
this.setState({ loading: false }, () => {
this.getSubmission()
this.getOutlookPAID()
})
})
}
......@@ -496,7 +496,7 @@ export default class OutlookPA extends Component {
if (response.data) {
if (response.data.status === "success") {
this.setState({ visibleUpload: false }, () => {
this.getSubmission()
this.getOutlookPAID()
})
}
}
......@@ -507,7 +507,7 @@ export default class OutlookPA extends Component {
api.create().deleteAttachment(item.attachment_id).then(response => {
if (response.data) {
if (response.data.status === "success") {
this.getSubmission()
this.getOutlookPAID()
}
}
})
......@@ -517,22 +517,22 @@ export default class OutlookPA extends Component {
this.setState({ alert: false })
}
saveToMasterBudget(data) {
saveToOLPA(data) {
this.setState({ loading: true })
// console.log(JSON.stringify(data));
api.create('UPLOAD').createSubmitReport(data).then(response => {
api.create('UPLOAD').createReportOLPA(data).then(response => {
console.log(response);
if (response.data) {
if (response.data.status === "success") {
this.getSubmission()
this.getOutlookPAID()
} else {
this.setState({ loading: false }, () => {
this.getSubmission()
this.getOutlookPAID()
})
}
} else {
this.setState({ loading: false }, () => {
this.getSubmission()
this.getOutlookPAID()
})
}
})
......@@ -577,13 +577,13 @@ export default class OutlookPA extends Component {
})
if (canSubmit === true) {
let body = {
submission_id: this.state.submissionID
outlook_pa_id: this.state.outlook_pa_id
}
api.create().submitMasterBudget(body).then(response => {
api.create().submitOLPA(body).then(response => {
console.log(response);
if (response.data) {
if (response.data.status === "Success") {
this.getSubmission()
this.getOutlookPAID()
}
}
})
......@@ -1147,10 +1147,10 @@ export default class OutlookPA extends Component {
company={this.state.company}
revision={this.state.revisionTable}
periode={this.state.periode.periode}
submissionID={this.state.submissionID}
saveToMasterBudget={this.saveToMasterBudget.bind(this)}
outlook_pa_id={this.state.outlook_pa_id}
saveToOLPA={this.saveToOLPA.bind(this)}
onClickClose={() => this.setState({ visibleBS: false, visibleOutlookPA: true })}
getReport={this.getSubmission.bind(this)}
getReport={this.getOutlookPAID.bind(this)}
isApprover={this.state.isApprover}
lastStatus={this.state.lastStatus}
prevRevision={this.state.prevRevision}
......@@ -1166,10 +1166,10 @@ export default class OutlookPA extends Component {
company={this.state.company}
revision={this.state.revisionTable}
periode={this.state.periode.periode}
submissionID={this.state.submissionID}
saveToMasterBudget={this.saveToMasterBudget.bind(this)}
outlook_pa_id={this.state.outlook_pa_id}
saveToOLPA={this.saveToOLPA.bind(this)}
onClickClose={() => this.setState({ visiblePL: false, visibleOutlookPA: true })}
getReport={this.getSubmission.bind(this)}
getReport={this.getOutlookPAID.bind(this)}
status={this.state.status}
isApprover={this.state.isApprover}
lastStatus={this.state.lastStatus}
......@@ -1186,10 +1186,10 @@ export default class OutlookPA extends Component {
company={this.state.company}
revision={this.state.revisionTable}
periode={this.state.periode.periode}
submissionID={this.state.submissionID}
saveToMasterBudget={this.saveToMasterBudget.bind(this)}
outlook_pa_id={this.state.outlook_pa_id}
saveToOLPA={this.saveToOLPA.bind(this)}
onClickClose={() => this.setState({ visibleTP: false, visibleOutlookPA: true })}
getReport={this.getSubmission.bind(this)}
getReport={this.getOutlookPAID.bind(this)}
status={this.state.status}
isApprover={this.state.isApprover}
lastStatus={this.state.lastStatus}
......
......@@ -53,17 +53,37 @@ export default class BalanceSheetOLPA extends Component {
componentDidMount() {
this.getItemHierarki()
this.lastUpdate()
console.log(this.props);
}
lastUpdate(){
let payload = {
"outlook_pa_id": this.props.outlook_pa_id,
"report_id": this.props.report_id,
"revision": this.props.revision,
"periode": this.props.periode,
"company_id": this.props.company.company_id
}
api.create().getLastestUpdateOLPA(payload).then(response => {
if (response.data) {
if (response.data.status === "success") {
this.setState({
updateBy: response.data.data.latest_update === null ? '-' : response.data.data.latest_update
})
}
}
})
}
async getItemHierarki() {
this.setState({ loading: true, judulColumn: null })
let payload = {
"outlook_pa_id": this.props.outlook_pa_id,
"report_id": this.props.report_id,
"revision": Number(this.props.revision),
"revision": this.props.revision,
"periode": this.props.periode,
"company_id": this.props.company.company_id,
"submission_id": this.props.submissionID
"company_id": this.props.company.company_id
}
let response = await api.create().getDetailReportMB(payload)
console.log(response);
......@@ -93,10 +113,9 @@ export default class BalanceSheetOLPA extends Component {
item.balance_sheet.october,
item.balance_sheet.november,
item.balance_sheet.december,
item.balance_sheet.total_current_year,
item.balance_sheet.total_next_year,
item.balance_sheet.total_more_year,
item.order,
item.condition_it_should_be,
item.condition_if_wrong
])
}
if (item.children !== null) {
......@@ -164,13 +183,10 @@ export default class BalanceSheetOLPA extends Component {
october: String(Number(i[16]).toFixed(1)),
november: String(Number(i[17]).toFixed(1)),
december: String(Number(i[18]).toFixed(1)),
total_current_year: String(Number(i[19]).toFixed(1)),
total_next_year: String(Number(i[20]).toFixed(1)),
total_more_year: String(Number(i[21]).toFixed(1))
})
})
let payload = {
"submission_id": this.props.submissionID,
"outlook_pa_id": this.props.outlook_pa_id,
"company_id": this.props.company.company_id,
"periode": this.props.periode,
"report_id": this.props.report_id,
......@@ -179,7 +195,7 @@ export default class BalanceSheetOLPA extends Component {
}
// console.log(data);
this.setState({ loading: false })
this.props.saveToMasterBudget(payload)
this.props.saveToOLPA(payload)
this.props.onClickClose()
}
......@@ -274,9 +290,6 @@ export default class BalanceSheetOLPA extends Component {
item.october,
item.november,
item.december,
item.total_current_year,
item.total_next_year,
item.total_more_year,
item.orders,
item.condition_it_should_be,
item.condition_if_wrong,
......@@ -285,7 +298,7 @@ export default class BalanceSheetOLPA extends Component {
})
this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => {
this.state.dataTable.map(item => {
if (item[25].length > 0) {
if (item[22].length > 0) {
console.log('masuk')
this.setState({ buttonError: true, errorPreview: true, editable: true })
}
......@@ -315,9 +328,6 @@ export default class BalanceSheetOLPA extends Component {
october: String(Number(i[16]).toFixed(1)),
november: String(Number(i[17]).toFixed(1)),
december: String(Number(i[18]).toFixed(1)),
total_current_year: String(Number(i[19]).toFixed(1)),
total_next_year: String(Number(i[20]).toFixed(1)),
total_more_year: String(Number(i[21]).toFixed(1))
})
})
let body = {
......@@ -381,9 +391,6 @@ export default class BalanceSheetOLPA extends Component {
october: i[0] === 3 && i[16] === "" ? "0" : String(i[16]),
november: i[0] === 3 && i[17] === "" ? "0" : String(i[17]),
december: i[0] === 3 && i[18] === "" ? "0" : String(i[18]),
total_current_year: i[0] === 3 && i[19] === "" ? "0" : String(i[19]),
total_next_year: i[0] === 3 && i[20] === "" ? "0" : String(i[20]),
total_more_year: i[0] === 3 && i[21] === "" ? "0" : String(i[21]),
})
})
// console.log(JSON.stringify(data))
......@@ -427,11 +434,7 @@ export default class BalanceSheetOLPA extends Component {
}
}
}
const handleTotal = (tableMeta) => {
let total = dataTable2[tableMeta.rowIndex][19] = dataTable2[tableMeta.rowIndex][18]
return total
// console.log(total);
}
const handleValue = (data) => {
let total = 0
dataTable2.map((item, index) => {
......@@ -448,7 +451,7 @@ export default class BalanceSheetOLPA extends Component {
let arrayFormula = tableMeta.rowData[3].match(/[a-zA-Z]+|[0-9]+|[-!$%^&*()_+|~=`{}\[\]:";'<>?,.\/]+(?:\.[0-9]+@|)/g)
let arrayJumlah = []
arrayFormula.map((item, indexs) => {
let index = dataTable2.findIndex((val) => val[22] == item)
let index = dataTable2.findIndex((val) => val[19] == item)
if (index > 0) {
arrayJumlah.push(dataTable2[index][tableMeta.columnIndex])
} else {
......@@ -493,7 +496,7 @@ export default class BalanceSheetOLPA extends Component {
let arrayFormula = tableMeta.rowData[3].match(/[a-zA-Z]+|[0-9]+|[-!$%^&*()_+|~=`{}\[\]:";'<>?,.\/]+(?:\.[0-9]+@|)/g)
let arrayJumlah = []
arrayFormula.map((item, indexs) => {
let index = dataTable2.findIndex((val) => val[22] == item)
let index = dataTable2.findIndex((val) => val[19] == item)
if (index > 0) {
arrayJumlah.push(dataTable2[index][tableMeta.columnIndex])
} else {
......@@ -700,7 +703,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -716,8 +719,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -735,7 +738,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -843,7 +846,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -859,8 +862,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -878,7 +881,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -986,7 +989,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1002,8 +1005,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1021,7 +1024,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1129,7 +1132,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1145,8 +1148,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1164,7 +1167,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1272,7 +1275,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1288,8 +1291,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1307,7 +1310,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1415,7 +1418,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1431,8 +1434,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1450,7 +1453,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1558,7 +1561,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1574,8 +1577,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1593,7 +1596,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1701,7 +1704,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1717,8 +1720,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1736,7 +1739,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1844,7 +1847,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1860,8 +1863,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1879,7 +1882,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -1987,7 +1990,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2003,8 +2006,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2022,7 +2025,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2130,7 +2133,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2146,8 +2149,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2165,7 +2168,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2273,7 +2276,7 @@ export default class BalanceSheetOLPA extends Component {
null
:
tableMeta.rowData[0] === 7 ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[23]).toFixed(1) ?
Number(handleValidation(value, tableMeta)).toFixed(1) === Number(tableMeta.rowData[20]).toFixed(1) ?
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2289,8 +2292,8 @@ export default class BalanceSheetOLPA extends Component {
placeholder=""
disabled={true}
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/> : tableMeta.rowData[24] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
/> : tableMeta.rowData[21] === "STOPPER" ?
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......@@ -2308,7 +2311,7 @@ export default class BalanceSheetOLPA extends Component {
value={Number(handleValidation(value, tableMeta)).toFixed(1)}
/>
</LightTooltip> :
<LightTooltip title={`Value Should be ${tableMeta.rowData[23]}`} arrow>
<LightTooltip title={`Value Should be ${tableMeta.rowData[20]}`} arrow>
<NumberFormat
thousandSeparator={true}
style={{
......
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