Commit 79c9fae8 authored by Riri Novita's avatar Riri Novita

Merge branch 'master' of http://103.44.149.204/d.arizona/tia-dev into riri

parents b4daa401 fa223e16
...@@ -323,7 +323,8 @@ export default class BalanceSheet extends Component { ...@@ -323,7 +323,8 @@ export default class BalanceSheet extends Component {
company_id: this.props.company.company_id, company_id: this.props.company.company_id,
periode: this.props.periode, periode: this.props.periode,
report_id: this.props.report_id, report_id: this.props.report_id,
balance_sheet: payload balance_sheet: payload,
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] })
......
...@@ -425,7 +425,8 @@ export default class CorporateAnnualTarget extends Component { ...@@ -425,7 +425,8 @@ export default class CorporateAnnualTarget extends Component {
periode: this.props.periode, periode: this.props.periode,
report_id: this.props.report_id, report_id: this.props.report_id,
status: '', status: '',
cat: payload cat: payload,
status: 'submitted'
} }
// // // // console.log(body) // // // // console.log(body)
this.setState({ payload: body, judul: resp.rows[1][0] }) this.setState({ payload: body, judul: resp.rows[1][0] })
......
...@@ -318,7 +318,8 @@ export default class FixedAssetsMovement extends Component { ...@@ -318,7 +318,8 @@ export default class FixedAssetsMovement extends Component {
company_id: this.props.company.company_id, company_id: this.props.company.company_id,
periode: this.props.periode, periode: this.props.periode,
report_id: this.props.report_id, report_id: this.props.report_id,
fixed_asset_movement: payload fixed_asset_movement: payload,
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] })
......
...@@ -332,7 +332,8 @@ export default class ProfitLoss extends Component { ...@@ -332,7 +332,8 @@ export default class ProfitLoss extends Component {
company_id: this.props.company.company_id, company_id: this.props.company.company_id,
periode: this.props.periode, periode: this.props.periode,
report_id: this.props.report_id, report_id: this.props.report_id,
profit_loss: payload profit_loss: payload,
status: 'submitted'
} }
// console.log(isi) // console.log(isi)
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] })
......
...@@ -454,7 +454,8 @@ export default class TaxPlanning extends Component { ...@@ -454,7 +454,8 @@ export default class TaxPlanning extends Component {
company_id: this.props.company.company_id, company_id: this.props.company.company_id,
periode: this.props.periode, periode: this.props.periode,
report_id: this.props.report_id, report_id: this.props.report_id,
tax_planning: payload tax_planning: payload,
status: 'submitted'
} }
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] })
} }
......
...@@ -801,17 +801,19 @@ export default class MonthlyReport extends Component { ...@@ -801,17 +801,19 @@ export default class MonthlyReport extends Component {
<span>COMPLETED</span> : <span>COMPLETED</span> :
val === "draft" ? val === "draft" ?
<span>DRAFT</span> : <span>DRAFT</span> :
val === "revision" ? val === "incomplete" ?
<span>REVISION</span> : <span>INCOMPLETE</span> :
val === "approval_proccess" ? val === "revision" ?
<span>APPROVAL PROCCESS</span> : <span>REVISION</span> :
val === "approval_review" ? val === "approval_proccess" ?
<span>APPROVAL REVIEW</span> : <span>APPROVAL PROCCESS</span> :
val === "not-yet" ? val === "approval_review" ?
<span>OPEN</span> : <span>APPROVAL REVIEW</span> :
val === "CLOSED" ? val === "not-yet" ?
<span>CLOSED</span> : <span>OPEN</span> :
<img src={Images.cross} style={{ width: 31, height: 24 }} /> val === "CLOSED" ?
<span>CLOSED</span> :
<img src={Images.cross} style={{ width: 31, height: 24 }} />
} }
</div > </div >
); );
......
...@@ -281,7 +281,8 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -281,7 +281,8 @@ export default class FixedAssetsMovementMR extends Component {
periode: this.props.periode, periode: this.props.periode,
report_id: this.props.report_id, report_id: this.props.report_id,
months: this.props.month.month_id, months: this.props.month.month_id,
fixed_asset_movement: payload fixed_asset_movement: payload,
status: 'submitted'
} }
// console.log(body) // console.log(body)
this.setState({ payload: body, judul: resp.rows[1][0], judulColumn: resp.rows[0][0] }) this.setState({ payload: body, judul: resp.rows[1][0], judulColumn: resp.rows[0][0] })
...@@ -293,7 +294,7 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -293,7 +294,7 @@ export default class FixedAssetsMovementMR extends Component {
api.create().checkUploadMonthlyReportFAM(this.state.payload).then(response => { api.create().checkUploadMonthlyReportFAM(this.state.payload).then(response => {
// console.log(JSON.stringify(this.state.payload)); // console.log(JSON.stringify(this.state.payload));
// console.log(this.state.payload) // console.log(this.state.payload)
// console.log(response) console.log(response)
if (response.data) { if (response.data) {
if (response.data.status === 'success') { if (response.data.status === 'success') {
this.setState({ visibleUpload: false, loading: true, visibleFAMMR: false }) this.setState({ visibleUpload: false, loading: true, visibleFAMMR: false })
...@@ -323,7 +324,7 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -323,7 +324,7 @@ export default class FixedAssetsMovementMR extends Component {
// console.log(dataTable) // console.log(dataTable)
this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => { this.setState({ dataTable, dataLoaded: true, loading: false, buttonError: false, editable: true }, () => {
this.state.dataTable.map(item => { this.state.dataTable.map(item => {
if (item[18].length > 0) { if (item[15].length > 0) {
console.log('masuk') console.log('masuk')
this.setState({ buttonError: true, errorPreview: true, editable: true }) this.setState({ buttonError: true, errorPreview: true, editable: true })
} }
...@@ -367,7 +368,8 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -367,7 +368,8 @@ export default class FixedAssetsMovementMR extends Component {
// console.log(response); // console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
this.props.onClickClose() // this.props.onClickClose()
this.props.saveToMonthlyReport()
// this.props.getReport() // this.props.getReport()
} else { } else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => { this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
...@@ -701,6 +703,8 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -701,6 +703,8 @@ export default class FixedAssetsMovementMR extends Component {
// console.log(tableMeta.rowData[7]); // console.log(tableMeta.rowData[7]);
// console.log(total) // console.log(total)
} }
// console.log(dex)
// console.log(Number(tableMeta.columnIndex) + Number(type))
return total return total
} }
...@@ -728,6 +732,8 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -728,6 +732,8 @@ export default class FixedAssetsMovementMR extends Component {
dataTable2[tableMeta.rowIndex][tableMeta.columnIndex + type] = Number(total).toFixed(1) dataTable2[tableMeta.rowIndex][tableMeta.columnIndex + type] = Number(total).toFixed(1)
// console.log(total); // console.log(total);
} }
// console.log(dex)
// console.log(Number(tableMeta.columnIndex) + Number(type))
return total * 100 return total * 100
} }
...@@ -1073,7 +1079,8 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -1073,7 +1079,8 @@ export default class FixedAssetsMovementMR extends Component {
placeholder="" placeholder=""
disabled={true} disabled={true}
suffix={'%'} suffix={'%'}
value={Number(handleVariancePercent(tableMeta, 2, 5)).toFixed(1)} // value={0}
value={Number(handleVariancePercent(tableMeta, 2, 3)).toFixed(1)}
/> />
} }
/> />
...@@ -1157,7 +1164,8 @@ export default class FixedAssetsMovementMR extends Component { ...@@ -1157,7 +1164,8 @@ export default class FixedAssetsMovementMR extends Component {
placeholder="" placeholder=""
disabled={true} disabled={true}
suffix={'%'} suffix={'%'}
value={Number(handleVariancePercent(tableMeta, 3, 7)).toFixed(1)} // value={0}
value={Number(handleVariancePercent(tableMeta, 3, 5)).toFixed(1)}
/> />
} }
/> />
......
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