Commit 6cc12f40 authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/riri' into 'ENV-DEV'

Fixing Finantial Ratio

See merge request !1760
parents b85fc9c7 aca0fb78
...@@ -551,17 +551,17 @@ export default class BalanceSheetMR extends Component { ...@@ -551,17 +551,17 @@ export default class BalanceSheetMR extends Component {
if (response.data.status === "success") { if (response.data.status === "success") {
if (type == 'submitted') { if (type == 'submitted') {
this.props.saveToMonthlyReport('BS') this.props.saveToMonthlyReport('BS')
let bodyRatioBs = { // let bodyRatioBs = {
"report": 'ratio', // "report": 'ratio',
"monthlyReportId": this.props.monthlyReportId, // "monthlyReportId": this.props.monthlyReportId,
"periode": this.props.periode, // "periode": this.props.periode,
"companyId": this.props.company.company_id, // "companyId": this.props.company.company_id,
"months": this.props.month.month_id // "months": this.props.month.month_id
} // }
api.create().triggerRatioFromLOCF(bodyRatioBs).then((res) => { // api.create().triggerRatioFromLOCF(bodyRatioBs).then((res) => {
console.log(res) // console.log(res)
this.setState({ loading: false }) // this.setState({ loading: false })
}) // })
} else { } else {
this.props.saveToMonthlyReport() this.props.saveToMonthlyReport()
} }
......
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