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
408e1f6f
Commit
408e1f6f
authored
Oct 15, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ganti arpin
parent
5235ad91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
index.js
src/api/index.js
+5
-1
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+6
-6
No files found.
src/api/index.js
View file @
408e1f6f
...
...
@@ -224,6 +224,9 @@ const create = (type = "") => {
const
getLastestUpdateOI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/get_latest_update'
,
body
)
const
getLastPeriodeOI
=
(
idCompany
)
=>
api
.
post
(
`transaction/master_budget/get_last_periode/
${
idCompany
}
`
)
//CASH FLOW
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/get_report_hierarki'
,
body
)
//OUTLOOK PA
const
getOutlookPAID
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_outlook_pa_id'
,
body
)
const
getLastPeriodOLPA
=
(
idCompany
)
=>
api
.
get
(
`/transaction/outlook_pa/get_last_periode/
${
idCompany
}
`
)
...
...
@@ -425,7 +428,8 @@ const create = (type = "") => {
getLastPeriodeOI
,
getSubmitOI
,
getLastPeriodOI
,
getDashboardUser
getDashboardUser
,
getDetailReportCF
}
}
...
...
src/container/BudgetTahunan/CashFlow.js
View file @
408e1f6f
...
...
@@ -54,7 +54,7 @@ export default class CashFlow extends Component {
"submission_id"
:
this
.
props
.
submissionID
}
// console.log(JSON.stringify(payload))
api
.
create
().
getDetailReport
MB
(
payload
).
then
(
response
=>
{
api
.
create
().
getDetailReport
CF
(
payload
).
then
(
response
=>
{
let
dataTable
=
[]
console
.
log
(
response
)
let
res
=
response
.
data
.
data
...
...
@@ -158,9 +158,9 @@ export default class CashFlow extends Component {
// console.log(splitFormula)
// console.log(baru)
// }
//
console.log(baru)
console
.
log
(
baru
)
baru
.
map
((
item
,
index
)
=>
{
if
(
item
==
'-'
||
item
==
'+'
||
item
==
'/'
||
item
==
'*'
)
{
if
(
item
==
'-'
||
item
==
'+'
||
item
==
'/'
||
item
==
'*'
||
item
==
'('
||
item
==
')'
)
{
anjay
.
push
(
item
)
}
else
{
if
(
String
(
item
).
includes
(
'#'
))
{
...
...
@@ -239,9 +239,9 @@ export default class CashFlow extends Component {
// console.log(dataTable2[tableMeta.rowIndex][22])
// console.log(tableMeta.rowData[5])
// if (tableMeta.rowData[5] == 'Beginning Balance') {
console
.
log
(
baru
)
console
.
log
(
anjay
)
console
.
log
(
total
)
//
console.log(baru)
//
console.log(anjay)
//
console.log(total)
// }
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex].value == undefined) {
...
...
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