Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
fcdd16f5
Commit
fcdd16f5
authored
Sep 18, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update issue tp
parent
1d7b66ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
211 additions
and
211 deletions
+211
-211
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+179
-179
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+32
-32
No files found.
src/container/BudgetTahunan/ProfitLoss.js
View file @
fcdd16f5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/BudgetTahunan/TaxPlanning.js
View file @
fcdd16f5
...
...
@@ -553,13 +553,13 @@ export default class TaxPlanning extends Component {
}
console.log(payload);
// console.log(JSON.stringify(data))
//
this.props.saveToMasterBudget(payload)
//
this.props.onClickClose()
//
if (type == 'submitted') {
//
this.props.saveToMasterBudget(payload, 'TP')
//
} else {
//
this.props.saveToMasterBudget(payload, 'DraftTP')
//
}
this.props.saveToMasterBudget(payload)
this.props.onClickClose()
if (type == 'submitted') {
this.props.saveToMasterBudget(payload, 'TP')
} else {
this.props.saveToMasterBudget(payload, 'DraftTP')
}
}
fileHandler = (event) => {
...
...
@@ -913,31 +913,31 @@ export default class TaxPlanning extends Component {
status: type
}
console.log(body);
//
api.create('UPLOAD').uploadMasterBudget(body).then(response => {
//
// console.log(response);
//
if (response.data) {
//
if (response.data.status === "success") {
//
this.props.onClickClose()
//
this.props.getReport()
//
} else {
//
if (response.data.message == "Please Set Up Rate Currency First") {
//
this.setState({ visibleAlertSave: true })
//
} else {
//
this.setState({ loading: false, alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
//
if (response.data.message.includes("Someone Logged In") || response.data.message.includes("Token Expired")) {
//
setTimeout(() => {
//
localStorage.removeItem(Constant.TOKEN)
//
window.location.reload();
//
}, 1000);
//
}
//
})
//
}
//
// alert(response.data.status)
//
}
//
} else {
//
this.setState({ loading: false, alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error' })
//
}
//
})
api.create('UPLOAD').uploadMasterBudget(body).then(response => {
// console.log(response);
if (response.data) {
if (response.data.status === "success") {
this.props.onClickClose()
this.props.getReport()
} else {
if (response.data.message == "Please Set Up Rate Currency First") {
this.setState({ visibleAlertSave: true })
} else {
this.setState({ loading: false, alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
if (response.data.message.includes("Someone Logged In") || response.data.message.includes("Token Expired")) {
setTimeout(() => {
localStorage.removeItem(Constant.TOKEN)
window.location.reload();
}, 1000);
}
})
}
// alert(response.data.status)
}
} else {
this.setState({ loading: false, alert: true, messageAlert: 'Error saving data. Please try again', tipeAlert: 'error' })
}
})
}
handleValidate() {
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment