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

testing financial

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