Commit 4b0d7bea authored by Riri Novita's avatar Riri Novita

Merge branch 'riri' into 'master'

issue OIBS

See merge request !820
parents 5f1c12ec 1b7ee229
...@@ -1939,7 +1939,7 @@ export default class BalanceSheetMR extends Component { ...@@ -1939,7 +1939,7 @@ export default class BalanceSheetMR extends Component {
type="button" type="button"
onClick={() => this.setState({ loading: true }, () => { onClick={() => this.setState({ loading: true }, () => {
setTimeout(() => { setTimeout(() => {
this.props.onClickClose() this.getItemHierarki()
}, 100); }, 100);
})} })}
style={{ style={{
......
...@@ -83,11 +83,12 @@ export default class OperatingIndicatorMR extends Component { ...@@ -83,11 +83,12 @@ export default class OperatingIndicatorMR extends Component {
"months": this.props.data.report_id === 22 ? 1 : 23 ? 2 : 24 ? 3 : 25 ? 4 : 27 ? 5 : 28 ? 6 : 29 ? 7 : 31 ? 8 : 32 ? 9 : 33 ? 10 : 35 ? 11 : 36 ? 12 : null "months": this.props.data.report_id === 22 ? 1 : 23 ? 2 : 24 ? 3 : 25 ? 4 : 27 ? 5 : 28 ? 6 : 29 ? 7 : 31 ? 8 : 32 ? 9 : 33 ? 10 : 35 ? 11 : 36 ? 12 : null
} }
api.create().getLastestUpdateMROI(payload).then(response => { api.create().getLastestUpdateMROI(payload).then(response => {
// console.log(response.data) console.log(response.data)
if (response.data) { if (response.data) {
if (response.data.status === "success") { if (response.data.status === "success") {
this.setState({ this.setState({
updateBy: response.data.data.latest_update === null ? '-' : response.data.data.latest_update updateBy: response.data.data.latest_update === null ? '-' : response.data.data.latest_update,
notesUpdate: response.data.data.notes_update === null ? '-' : response.data.data.notes_update
}) })
} 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 }, () => {
...@@ -165,7 +166,7 @@ export default class OperatingIndicatorMR extends Component { ...@@ -165,7 +166,7 @@ export default class OperatingIndicatorMR extends Component {
item.description, item.description,
item.uom === "" ? null : item.uom, item.uom === "" ? null : item.uom,
item.monthly_report.rolling_outlook === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_outlook, item.monthly_report.rolling_outlook === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_outlook,
item.monthly_report.master_budget === null ? "10.0" : item.monthly_report.rolling_outlook === "" ? "10.0" : item.monthly_report.master_budget, item.monthly_report.master_budget === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.master_budget,
item.monthly_report.rolling_budget === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_budget, item.monthly_report.rolling_budget === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_budget,
item.monthly_report.actual === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.actual, item.monthly_report.actual === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.actual,
item.monthly_report.amount_act_vs_mb === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.amount_act_vs_mb, item.monthly_report.amount_act_vs_mb === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.amount_act_vs_mb,
...@@ -195,7 +196,7 @@ export default class OperatingIndicatorMR extends Component { ...@@ -195,7 +196,7 @@ export default class OperatingIndicatorMR extends Component {
item.description, item.description,
item.uom === "" ? null : item.uom, item.uom === "" ? null : item.uom,
item.monthly_report.rolling_outlook === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_outlook, item.monthly_report.rolling_outlook === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_outlook,
item.monthly_report.master_budget === null ? "10.0" : item.monthly_report.rolling_outlook === "" ? "10.0" : item.monthly_report.master_budget, item.monthly_report.master_budget === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.master_budget,
item.monthly_report.rolling_budget === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_budget, item.monthly_report.rolling_budget === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.rolling_budget,
item.monthly_report.actual === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.actual, item.monthly_report.actual === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.actual,
item.monthly_report.amount_act_vs_mb === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.amount_act_vs_mb, item.monthly_report.amount_act_vs_mb === null ? "0.0" : item.monthly_report.rolling_outlook === "" ? "0.0" : item.monthly_report.amount_act_vs_mb,
...@@ -1356,15 +1357,15 @@ export default class OperatingIndicatorMR extends Component { ...@@ -1356,15 +1357,15 @@ export default class OperatingIndicatorMR extends Component {
this.props.data.report_id === 22 ? 'Jan' : this.props.data.report_id === 22 ? 'Jan' :
this.props.data.report_id === 23 ? 'Feb' : this.props.data.report_id === 23 ? 'Feb' :
this.props.data.report_id === 24 ? 'Mar' : this.props.data.report_id === 24 ? 'Mar' :
this.props.data.report_id === 23 ? 'Apr' : this.props.data.report_id === 25 ? 'Apr' :
this.props.data.report_id === 23 ? 'May' : this.props.data.report_id === 26 ? 'May' :
this.props.data.report_id === 23 ? 'Jun' : this.props.data.report_id === 27 ? 'Jun' :
this.props.data.report_id === 23 ? 'Jul' : this.props.data.report_id === 28 ? 'Jul' :
this.props.data.report_id === 23 ? 'Aug' : this.props.data.report_id === 29 ? 'Aug' :
this.props.data.report_id === 23 ? 'Sep' : this.props.data.report_id === 30 ? 'Sep' :
this.props.data.report_id === 23 ? 'Oct' : this.props.data.report_id === 31 ? 'Oct' :
this.props.data.report_id === 23 ? 'Nov' : this.props.data.report_id === 32 ? 'Nov' :
this.props.data.report_id === 23 ? 'Dec' : "" } {this.props.data.periode} this.props.data.report_id === 33 ? 'Dec' : "" } {this.props.data.periode}
</Typography> </Typography>
<Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>in IDR mn</Typography> <Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>in IDR mn</Typography>
</div> </div>
...@@ -1427,6 +1428,7 @@ export default class OperatingIndicatorMR extends Component { ...@@ -1427,6 +1428,7 @@ export default class OperatingIndicatorMR extends Component {
</MuiThemeProvider> </MuiThemeProvider>
</div> </div>
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 20 }}>Last Updated by : {this.state.updateBy}</Typography> <Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 20 }}>Last Updated by : {this.state.updateBy}</Typography>
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 10 }}>Notes : {this.state.notesUpdate}</Typography>
</div> </div>
<div className="grid grid-2x"> <div className="grid grid-2x">
<div className="col-1"> <div className="col-1">
...@@ -1522,15 +1524,15 @@ export default class OperatingIndicatorMR extends Component { ...@@ -1522,15 +1524,15 @@ export default class OperatingIndicatorMR extends Component {
this.props.data.report_id === 22 ? 'Jan' : this.props.data.report_id === 22 ? 'Jan' :
this.props.data.report_id === 23 ? 'Feb' : this.props.data.report_id === 23 ? 'Feb' :
this.props.data.report_id === 24 ? 'Mar' : this.props.data.report_id === 24 ? 'Mar' :
this.props.data.report_id === 23 ? 'Apr' : this.props.data.report_id === 25 ? 'Apr' :
this.props.data.report_id === 23 ? 'May' : this.props.data.report_id === 26 ? 'May' :
this.props.data.report_id === 23 ? 'Jun' : this.props.data.report_id === 27 ? 'Jun' :
this.props.data.report_id === 23 ? 'Jul' : this.props.data.report_id === 28 ? 'Jul' :
this.props.data.report_id === 23 ? 'Aug' : this.props.data.report_id === 29 ? 'Aug' :
this.props.data.report_id === 23 ? 'Sep' : this.props.data.report_id === 30 ? 'Sep' :
this.props.data.report_id === 23 ? 'Oct' : this.props.data.report_id === 31 ? 'Oct' :
this.props.data.report_id === 23 ? 'Nov' : this.props.data.report_id === 32 ? 'Nov' :
this.props.data.report_id === 23 ? 'Dec' : "" } {this.props.data.periode} this.props.data.report_id === 33 ? 'Dec' : "" } {this.props.data.periode}
</Typography> </Typography>
<Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>in IDR mn</Typography> <Typography style={{ fontSize: '11px', color: '#4b4b4b' }}>in IDR mn</Typography>
</div> </div>
......
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