Commit 2ada2d57 authored by syadziy's avatar syadziy

update error calculate OLPA PL

parent c7f03c84
......@@ -542,7 +542,7 @@ export default class ProfitLossOLPA extends Component {
"profit_loss": data,
"status": "submitted"
}
// console.log(payload)
console.log(payload)
api.create().validateSubmitReportOLPA(payload).then((response) => {
console.log(response)
if (response.data.data.result) {
......@@ -2032,9 +2032,10 @@ export default class ProfitLossOLPA extends Component {
marginRight: 20
}}
onClick={() => {
this.setState({ loading: true }, () => {
this.setState({ loading: true, dataTable: dataTable2, buttonDraft: false }, () => {
setTimeout(() => {
this.setState({ loading: false, buttonError: this.state.errorPreview === true ? true : false, editable: false })
this.handleValidate()
// this.setState({ loading: false, buttonError: this.state.errorPreview === true ? true : false, editable: false })
}, 100);
})
}}
......
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