Commit 0ac6733e authored by Riri Novita's avatar Riri Novita

Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'

Fixing Finantial Ratio

See merge request !1761
parents 34329f0a 6cc12f40
...@@ -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