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
2fbed1f0
Commit
2fbed1f0
authored
Sep 28, 2020
by
faisalhamdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update fam 280920 sore
parent
21144e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+19
-6
No files found.
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
2fbed1f0
...
...
@@ -118,7 +118,8 @@ export default class FixedAssetsMovement extends Component {
item
.
fixed_asset_movement
.
december
,
item
.
fixed_asset_movement
.
total_current_year
,
item
.
fixed_asset_movement
.
total_next_year
,
item
.
fixed_asset_movement
.
total_more_year
item
.
fixed_asset_movement
.
total_more_year
,
item
.
order
])
}
if
(
item
.
children
!==
null
)
{
...
...
@@ -152,7 +153,8 @@ export default class FixedAssetsMovement extends Component {
item
.
fixed_asset_movement
.
december
,
item
.
fixed_asset_movement
.
total_current_year
,
item
.
fixed_asset_movement
.
total_next_year
,
item
.
fixed_asset_movement
.
total_more_year
item
.
fixed_asset_movement
.
total_more_year
,
item
.
order
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
...
...
@@ -329,6 +331,7 @@ export default class FixedAssetsMovement extends Component {
item
.
total_current_year
,
item
.
total_next_year
,
item
.
total_more_year
,
item
.
order
,
item
.
error
]
})
...
...
@@ -346,7 +349,7 @@ export default class FixedAssetsMovement extends Component {
})
}
uploadFAM
()
{
uploadFAM
(
type
)
{
let
data
=
[]
this
.
state
.
dataTable
.
map
(
i
=>
{
data
.
push
({
...
...
@@ -374,7 +377,8 @@ export default class FixedAssetsMovement extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
fixed_asset_movement
:
data
fixed_asset_movement
:
data
,
status
:
type
}
console
.
log
(
data
);
api
.
create
(
'UPLOAD'
).
uploadMasterBudget
(
body
).
then
(
response
=>
{
...
...
@@ -533,7 +537,14 @@ export default class FixedAssetsMovement extends Component {
"formula"
:
rilFormula
}
api
.
create
().
countingFormula
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
// console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
setTimeout
(()
=>
{
return
response
.
data
.
data
.
result
},
2000
);
}
}
})
}
else
{
let
body
=
{
...
...
@@ -548,7 +559,9 @@ export default class FixedAssetsMovement extends Component {
// console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
return
response
.
data
.
data
.
result
setTimeout
(()
=>
{
return
response
.
data
.
data
.
result
},
2000
);
}
}
})
...
...
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