Commit 3b5a0bde authored by fahrur huzain's avatar fahrur huzain

Merge branch 'ENV-DEV' of http://103.44.149.204/d.arizona/tia-dev into dev/fahrur

parents f04a16af 8f108332
...@@ -393,7 +393,7 @@ export default class BalanceSheet extends Component { ...@@ -393,7 +393,7 @@ export default class BalanceSheet extends Component {
balance_sheet: payload, balance_sheet: payload,
status: 'submitted' status: 'submitted'
} }
// console.log(body) console.log(body)
this.setState({ payload: body, judul: resp.rows[1][0], judulColumn: resp.rows[2] }) this.setState({ payload: body, judul: resp.rows[1][0], judulColumn: resp.rows[2] })
} }
}); });
...@@ -440,6 +440,7 @@ export default class BalanceSheet extends Component { ...@@ -440,6 +440,7 @@ export default class BalanceSheet extends Component {
item.error item.error
] ]
}) })
console.log(dataTable);
this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true, errorPreview: false, saveDraft: true }, () => { this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true, errorPreview: false, saveDraft: true }, () => {
this.state.dataTable.map(item => { this.state.dataTable.map(item => {
if (item[26].length > 0) { if (item[26].length > 0) {
...@@ -1125,7 +1126,7 @@ export default class BalanceSheet extends Component { ...@@ -1125,7 +1126,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && String(tableMeta.rowData[5]).toLocaleLowerCase() == "r/e (cummulative)" && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && String(tableMeta.rowData[5]).toLocaleLowerCase() == "r/e (cummulative)" && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={this.props.defaultCurrency.id == 1 ? (String(tableMeta.rowData[5]).toLocaleLowerCase() == "r/e (cummulative)" ? fixNumber(Number(value.value), 1) : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)) : (String(tableMeta.rowData[5]).toLocaleLowerCase() == "r/e (cummulative)" ? Number(value.value) : Number(handleValueFormula(value, tableMeta)))} value={this.props.defaultCurrency.id == 1 ? String(tableMeta.rowData[5]).toLocaleLowerCase() == "r/e (cummulative)" ? fixNumber(Number(value.value), 1) : fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : String(tableMeta.rowData[5]).toLocaleLowerCase() == "r/e (cummulative)" ? Number(value.value) : Number(handleValueFormula(value, tableMeta))}
onBlur={(event) => { onBlur={(event) => {
handleChange(event.target.value, tableMeta, 'r/e') handleChange(event.target.value, tableMeta, 'r/e')
// console.log(dataTable2) // console.log(dataTable2)
......
This diff is collapsed.
...@@ -66,7 +66,7 @@ export default class BalanceSheetMR extends Component { ...@@ -66,7 +66,7 @@ export default class BalanceSheetMR extends Component {
componentDidMount() { componentDidMount() {
this.getSettingControl() this.getSettingControl()
this.getLatestUpdate() this.getLatestUpdate()
// this.handleViewOnly() this.handleViewOnly()
} }
handleViewOnly() { handleViewOnly() {
......
...@@ -97,7 +97,7 @@ export default class CashFlowMR extends Component { ...@@ -97,7 +97,7 @@ export default class CashFlowMR extends Component {
componentDidMount() { componentDidMount() {
// this.getItemHierarki() // this.getItemHierarki()
console.log(this.props.PLBSFAMSubmitted) console.log(this.props.PLBSFAMSubmitted)
// this.handleViewOnly() this.handleViewOnly()
this.getSettingControl() this.getSettingControl()
} }
......
...@@ -2565,9 +2565,9 @@ export default class MonthlyReport extends Component { ...@@ -2565,9 +2565,9 @@ export default class MonthlyReport extends Component {
: :
// { // {
// (tableMeta.rowData[5] ? (tableMeta.rowData[5] ?
this.clickDetail(tableMeta.rowData[1], tableMeta.rowData[4], tableMeta.rowData[2], tableMeta.rowData[3]) this.clickDetail(tableMeta.rowData[1], tableMeta.rowData[4], tableMeta.rowData[2], tableMeta.rowData[3])
// : null) : null)
// console.log(tableMeta.rowData) // console.log(tableMeta.rowData)
// } // }
......
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