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
2ada2d57
Commit
2ada2d57
authored
Nov 25, 2021
by
syadziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update error calculate OLPA PL
parent
c7f03c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ProfitLossOLPA.js
src/container/OutlookPA/ProfitLossOLPA.js
+4
-3
No files found.
src/container/OutlookPA/ProfitLossOLPA.js
View file @
2ada2d57
...
...
@@ -542,7 +542,7 @@ export default class ProfitLossOLPA extends Component {
"profit_loss"
:
data
,
"status"
:
"submitted"
}
//
console.log(payload)
console
.
log
(
payload
)
api
.
create
().
validateSubmitReportOLPA
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
)
if
(
response
.
data
.
data
.
result
)
{
...
...
@@ -2032,9 +2032,10 @@ export default class ProfitLossOLPA extends Component {
marginRight
:
20
}}
onClick
=
{()
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
this
.
setState
({
loading
:
true
,
dataTable
:
dataTable2
,
buttonDraft
:
false
},
()
=>
{
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
,
buttonError
:
this
.
state
.
errorPreview
===
true
?
true
:
false
,
editable
:
false
})
this
.
handleValidate
()
// this.setState({ loading: false, buttonError: this.state.errorPreview === true ? true : false, editable: false })
},
100
);
})
}}
...
...
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