Commit d581e784 authored by faisalhamdi's avatar faisalhamdi

cat pq!

parent 5a6e4c01
...@@ -2883,7 +2883,7 @@ export default class SubHolding extends Component { ...@@ -2883,7 +2883,7 @@ export default class SubHolding extends Component {
}) })
} else if (this.state.report.value === 11) { } else if (this.state.report.value === 11) {
let dbCATPQ = []; let dbCATPQ = [];
let payloadCATPQ = {...payload, report_id: 17, quarter: this.state.quarter.name} let payloadCATPQ = {...payload, report_id: 10, quarter: this.state.quarter.name}
api.create().getReportCATPQ(payloadCATPQ).then(response => { api.create().getReportCATPQ(payloadCATPQ).then(response => {
console.log(payloadCATPQ); console.log(payloadCATPQ);
console.log(response); console.log(response);
...@@ -3931,7 +3931,7 @@ export default class SubHolding extends Component { ...@@ -3931,7 +3931,7 @@ export default class SubHolding extends Component {
} }
} else if (this.state.report.value === 11) { } else if (this.state.report.value === 11) {
let res = await fetch( let res = await fetch(
`${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/cat/quarterly/export_report?report_id=17&&company_id=${this.state.company.company_id}&&periode=${this.state.periode.periode}&&quarter=${this.state.quarter.name}` `${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/cat/quarterly/export_report?report_id=10&&company_id=${this.state.company.company_id}&&periode=${this.state.periode.periode}&&quarter=${this.state.quarter.name}`
) )
console.log(res); console.log(res);
res = await res.blob() res = await res.blob()
......
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