Commit 743c2869 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

notes last update

See merge request !799
parents df9682b9 cf159aca
...@@ -49,6 +49,7 @@ export default class TaxPlanningMR extends Component { ...@@ -49,6 +49,7 @@ export default class TaxPlanningMR extends Component {
editable: false, editable: false,
judulColumn: null, judulColumn: null,
updateBy: '-', updateBy: '-',
notesUpdate: '-',
buttonDraft: true, buttonDraft: true,
handleTekTekTek: 0, handleTekTekTek: 0,
saveDraft: true, saveDraft: true,
...@@ -92,10 +93,12 @@ export default class TaxPlanningMR extends Component { ...@@ -92,10 +93,12 @@ export default class TaxPlanningMR extends Component {
"months": this.props.month.month_id "months": this.props.month.month_id
} }
api.create().getLastestUpdateMR(payload).then(response => { api.create().getLastestUpdateMR(payload).then(response => {
console.log(response)
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
}) })
} }
} }
...@@ -1525,6 +1528,7 @@ export default class TaxPlanningMR extends Component { ...@@ -1525,6 +1528,7 @@ export default class TaxPlanningMR extends Component {
{/* )} */} {/* )} */}
</div> </div>
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 20, marginLeft: 20 }}>Last Updated by : {this.state.updateBy}</Typography> <Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 20, marginLeft: 20 }}>Last Updated by : {this.state.updateBy}</Typography>
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 5, marginLeft: 20 }}>Notes : {this.state.notesUpdate}</Typography>
</div> </div>
<div className="grid grid-2x" style={{ marginTop: 20 }}> <div className="grid grid-2x" style={{ marginTop: 20 }}>
<div className="col-1"> <div className="col-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