Commit 2bdd05fa authored by Riri Novita's avatar Riri Novita

testing financial

parent a24ad188
......@@ -266,16 +266,17 @@ export default class BalanceSheet extends Component {
this.setState({ loading: false })
if (type == 'submitted') {
this.props.saveToMasterBudget(payload, 'BS')
let bodyRatioBs = {
"report": 'ratio',
"submissionId": this.props.submissionID,
"periode": this.props.periode,
"companyId": this.props.company.company_id
}
api.create().triggerRatioMB(bodyRatioBs).then((res) => {
console.log(res)
this.setState({ loading: false })
})
// let bodyRatioBs = {
// "report": 'ratio',
// "submissionId": this.props.submissionID,
// "periode": this.props.periode,
// "companyId": this.props.company.company_id
// }
// console.log(bodyRatioBs);
// api.create().triggerRatioMB(bodyRatioBs).then((res) => {
// console.log(res)
// this.setState({ loading: false })
// })
} else {
this.props.saveToMasterBudget(payload)
}
......
......@@ -606,6 +606,7 @@ export default class BudgetTahunan extends Component {
"periode": this.state.periode.periode,
"companyId": this.state.company.company_id
}
console.log(bodyRatioBs);
api.create().triggerRatioMB(bodyRatioBs).then((res) => {
console.log(res)
this.setState({ loading: false })
......@@ -1760,6 +1761,7 @@ export default class BudgetTahunan extends Component {
}
getFR(type) {
console.log("get FR");
let FRID = null
let payloadID = {
"periode": this.state.periode.periode,
......@@ -1982,6 +1984,7 @@ export default class BudgetTahunan extends Component {
}
createDBFR() {
console.log("create FR");
let payload = {
// "submission_id": this.state.submissionID,
"company_id": this.state.company.company_id,
......@@ -2245,6 +2248,7 @@ export default class BudgetTahunan extends Component {
this.setState({ loading: true }, () => {
document.body.style.overflow = 'hidden';
})
console.log(data);
// // // console.log(JSON.stringify(data));
api.create('UPLOAD').createSubmitReport(data).then(response => {
......
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