Commit 73e61de7 authored by rifkaki's avatar rifkaki

tp bug

parent 398d15f3
...@@ -67,7 +67,6 @@ export default class TaxPlanningMR extends Component { ...@@ -67,7 +67,6 @@ export default class TaxPlanningMR extends Component {
} }
handleGetFor(type) { handleGetFor(type) {
console.log(type)
this.setState({get_for: type}, () => { this.setState({get_for: type}, () => {
this.getSettingControl() this.getSettingControl()
this.getLatestUpdate() this.getLatestUpdate()
...@@ -82,8 +81,6 @@ export default class TaxPlanningMR extends Component { ...@@ -82,8 +81,6 @@ export default class TaxPlanningMR extends Component {
} }
api.create().getAllSettingByType(body).then(response => { api.create().getAllSettingByType(body).then(response => {
console.log(body);
console.log(response);
if (response.data) { if (response.data) {
if (response.data.status === 'success') { if (response.data.status === 'success') {
this.setState({ this.setState({
...@@ -132,8 +129,6 @@ export default class TaxPlanningMR extends Component { ...@@ -132,8 +129,6 @@ export default class TaxPlanningMR extends Component {
} }
getItemHierarki() { getItemHierarki() {
console.log("masuk hierarki")
console.log(this.state.get_for)
this.setState({ loading: true, judulColumn: null }) this.setState({ loading: true, judulColumn: null })
let payload = { let payload = {
"report_id": this.props.report_id, "report_id": this.props.report_id,
...@@ -608,7 +603,7 @@ export default class TaxPlanningMR extends Component { ...@@ -608,7 +603,7 @@ export default class TaxPlanningMR extends Component {
anjay.push(valuezz == "" ? 0 : valuezz) anjay.push(valuezz == "" ? 0 : valuezz)
} }
} else { } else {
let data = tableMeta.rowData[12] let data = tableMeta.rowData[12] === null ? [] : tableMeta.rowData[12]
let indexID = data.findIndex((val) => val.item_formula == String(`@${item}`) && val.periode == Number(this.props.periode)) let indexID = data.findIndex((val) => val.item_formula == String(`@${item}`) && val.periode == Number(this.props.periode))
if (indexID !== -1) { if (indexID !== -1) {
let valuezz = data[indexID].value let valuezz = data[indexID].value
......
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