Commit dd8358c9 authored by ardiansyah's avatar ardiansyah

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

tambah parameter master_report_type_id di cf mb

See merge request !2418
parents f01c2b5f c19bc168
...@@ -2770,6 +2770,13 @@ export default class BudgetTahunan extends Component { ...@@ -2770,6 +2770,13 @@ export default class BudgetTahunan extends Component {
return tableKey === 'CAT' ? lastStatusCat : lastStatus return tableKey === 'CAT' ? lastStatusCat : lastStatus
} }
getActiveMasterReportTypeId = () => {
const { tableKey, rowDataFinance, rowDataCAT } = this.state
const mstIdFinance = rowDataFinance?.length > 0 && rowDataFinance[0]?.master_report_type_id
const mstIdCAT = rowDataCAT?.length > 0 && rowDataCAT[0]?.master_report_type_id
return tableKey === 'CAT' ? mstIdCAT : mstIdFinance
}
getSubmissionObj = (tableKeyParam) => { getSubmissionObj = (tableKeyParam) => {
const { const {
tableKey, tableKey,
...@@ -3782,6 +3789,7 @@ export default class BudgetTahunan extends Component { ...@@ -3782,6 +3789,7 @@ export default class BudgetTahunan extends Component {
// PLBSFAMSubmitted={false} // PLBSFAMSubmitted={false}
PLBSFAMSubmitted={this.getLastStatus() === 'APPROVED' ? true : false} PLBSFAMSubmitted={this.getLastStatus() === 'APPROVED' ? true : false}
createCashFlow={this.createCashFlow.bind(this)} createCashFlow={this.createCashFlow.bind(this)}
master_report_type_id={this.getActiveMasterReportTypeId()}
/> />
) )
} }
......
...@@ -421,7 +421,8 @@ export default class CashFlow extends Component { ...@@ -421,7 +421,8 @@ export default class CashFlow extends Component {
"report_id": 6, "report_id": 6,
"currency_id": this.props.defaultCurrency.id, "currency_id": this.props.defaultCurrency.id,
"status": "submitted", "status": "submitted",
"cash_flow": dbcf "cash_flow": dbcf,
"master_report_type_id": this.props?.master_report_type_id
} }
console.log(dbcf) console.log(dbcf)
console.log(JSON.stringify(payload)) console.log(JSON.stringify(payload))
......
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