Commit de70f159 authored by d.arizona's avatar d.arizona

apdet

parent c32d3821
...@@ -249,6 +249,7 @@ const create = (type = "") => { ...@@ -249,6 +249,7 @@ const create = (type = "") => {
//CASH FLOW //CASH FLOW
const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body) const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body)
//OUTLOOK PA //OUTLOOK PA
const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body) const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body)
...@@ -598,7 +599,8 @@ const create = (type = "") => { ...@@ -598,7 +599,8 @@ const create = (type = "") => {
getReportOIMB, getReportOIMB,
getReportOIMR, getReportOIMR,
getReportCFSumaMB, getReportCFSumaMB,
getReportCFSumaMR getReportCFSumaMR,
createReportCF
} }
} }
......
...@@ -1039,6 +1039,9 @@ export default class BudgetTahunan extends Component { ...@@ -1039,6 +1039,9 @@ export default class BudgetTahunan extends Component {
// console.log(listCF) // console.log(listCF)
this.setState({dbCF: listCF} , () => { this.setState({dbCF: listCF} , () => {
if (this.state.company.company_id == '13467') {
this.createCashFlow()
}
if (type != undefined) { if (type != undefined) {
if (type == 'BS' || type == 'FAM' || type == 'PL') { if (type == 'BS' || type == 'FAM' || type == 'PL') {
console.log('tarik sis') console.log('tarik sis')
...@@ -1057,7 +1060,9 @@ export default class BudgetTahunan extends Component { ...@@ -1057,7 +1060,9 @@ export default class BudgetTahunan extends Component {
"status": "submitted", "status": "submitted",
"cash_flow": this.state.dbCF "cash_flow": this.state.dbCF
} }
api.create().createMonthlyReportCF(payload).then((res) => { console.log(this.state.dbCF)
console.log(JSON.stringify(payload))
api.create().createReportCF(payload).then((res) => {
console.log(res) console.log(res)
// if (response.data) { // if (response.data) {
// if (response.data.status === "success") { // if (response.data.status === "success") {
......
This diff is collapsed.
This diff is collapsed.
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