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
6f84ba7c
Commit
6f84ba7c
authored
May 07, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'opbal' of
http://103.44.149.204/d.arizona/tia-dev
into GGMAC
parents
0c0ef394
2444df6a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
626 additions
and
515 deletions
+626
-515
BudgetTahunan.js
src/container/BudgetTahunan.js
+36
-9
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+573
-496
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+3
-3
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+14
-7
No files found.
src/container/BudgetTahunan.js
View file @
6f84ba7c
...
...
@@ -342,7 +342,7 @@ export default class BudgetTahunan extends Component {
// // // console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
isSubmit
:
response
.
data
.
data
.
is_can_submit
},
()
=>
{
this
.
setState
({
isSubmit
:
true
},
()
=>
{
this
.
getReport
()
this
.
getReportAttachment
()
})
...
...
@@ -1060,7 +1060,7 @@ export default class BudgetTahunan extends Component {
listCF
.
push
(
item
)
})
this
.
setState
({
dbCF
:
listCF
},
()
=>
{
this
.
setState
({
dbCF
:
listCF
},
()
=>
{
this
.
olahDataCashFlowOneMore
(
listCF
,
type
)
})
}
...
...
@@ -1170,8 +1170,8 @@ export default class BudgetTahunan extends Component {
// }
// if (type != undefined) {
// if (type == 'BS' || type == 'FAM' || type == 'PL') {
console
.
log
(
'tarik sis'
)
// this.createCashFlow()
console
.
log
(
'tarik sis'
)
// this.createCashFlow()
// }
// }
})
...
...
@@ -1519,7 +1519,7 @@ export default class BudgetTahunan extends Component {
}
})
if
(
String
(
tableMeta
[
5
])
==
"Cost of Goods Sold (COGS)"
&&
column
==
20
)
{
if
(
String
(
tableMeta
[
5
])
==
"Cost of Goods Sold (COGS)"
&&
column
==
20
)
{
console
.
log
(
splitFormula
)
console
.
log
(
baru
)
console
.
log
(
anjay
)
...
...
@@ -2224,7 +2224,7 @@ export default class BudgetTahunan extends Component {
this
.
state
.
dataTable
.
map
(
item
=>
{
// if (item[1] !== 'Cash Flow') {
if
(
item
[
3
]
!==
"submitted"
&&
item
[
3
]
!==
'approved'
)
{
canSubmit
=
false
//
canSubmit = false
array
.
push
(
item
[
3
])
}
// }
...
...
@@ -2357,9 +2357,9 @@ export default class BudgetTahunan extends Component {
borderColor
:
'transparent'
}}
onClick
=
{()
=>
tableMeta
.
rowData
[
5
]
==
true
?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
3
])
:
null
//
tableMeta.rowData[5] == true ?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
],
tableMeta
.
rowData
[
3
])
//
: null
}
>
{
/* {this.state.isApprover == true ?
...
...
@@ -2569,6 +2569,32 @@ export default class BudgetTahunan extends Component {
<
div
style
=
{{
borderBottom
:
'solid 1px #c4c4c4'
}}
>
<
Typography
style
=
{{
fontSize
:
'12px'
,
color
:
'#4b4b4b'
,
margin
:
10
}}
>
Master
Budget
<
/Typography
>
<
/div
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
}}
onClick
=
{()
=>
this
.
validate
()}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Submit
<
/Typography
>
<
/div
>
<
/button
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
}}
onClick
=
{()
=>
this
.
approvalSubmission
(
'approve'
)}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Approve
<
/Typography
>
<
/div
>
<
/button
>
<
div
style
=
{{
padding
:
20
}}
>
<
div
>
<
Autocomplete
...
...
@@ -3036,6 +3062,7 @@ export default class BudgetTahunan extends Component {
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
prevRevision
=
{
this
.
state
.
isSubmit
?
this
.
state
.
prevRevision
:
true
}
// PLBSFAMSubmitted={false}
PLBSFAMSubmitted
=
{
this
.
state
.
lastStatus
==
'APPROVED'
?
true
:
false
}
createCashFlow
=
{
this
.
createCashFlow
.
bind
(
this
)}
/
>
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
6f84ba7c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/BudgetTahunan/CashFlow.js
View file @
6f84ba7c
...
...
@@ -3195,8 +3195,8 @@ export default class CashFlow extends Component {
<
/div
>
<
/button
>
<
/div
>
{
this
.
props
.
isApprover
===
true
||
dataTable2
.
length
==
0
?
null
:
(
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
{
/* {
this.props.isApprover === true || dataTable2.length == 0 ? null :
(this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ?
*/
}
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
<
button
type
=
"button"
...
...
@@ -3221,7 +3221,7 @@ export default class CashFlow extends Component {
<
/div
>
<
/button
>
<
/div
>
:
null
}
{
/* : null} */
}
<
/div
>
<
/div
>
<
/Paper
>
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
6f84ba7c
...
...
@@ -595,7 +595,8 @@ export default class ProfitLoss extends Component {
}
})
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
dataTable2
[
data
.
rowIndex
][
2
])
let
a
=
dataTable2
[
data
.
rowIndex
][
data
.
columnIndex
]
=
Number
(
total
)
// let a = dataTable2[data.rowIndex][data.columnIndex] = Number(total)
let
a
=
dataTable2
[
data
.
rowIndex
][
data
.
columnIndex
]
=
Number
(
value
)
// console.log(indexParent);
return
a
}
...
...
@@ -672,9 +673,12 @@ export default class ProfitLoss extends Component {
// console.log(arrayJumlah);
// }
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === "" || dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === undefined || dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === null) {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
total
)
// dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = Number(total)
// // }
// return Number(total)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
data
)
// }
return
Number
(
total
)
return
Number
(
data
)
}
...
...
@@ -2519,7 +2523,8 @@ export default class ProfitLoss extends Component {
placeholder
=
""
disabled
=
{
true
}
decimalScale
=
{
1
}
value
=
{
Number
(
handleTotal
(
tableMeta
)).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
// value={Number(handleTotal(tableMeta)).toFixed(1)}
/
>
<
/span>
}
<
/div
>
...
...
@@ -2869,7 +2874,7 @@ export default class ProfitLoss extends Component {
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div>
:
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
{
((
this
.
props
.
lastStatus
==
'SUBMIT'
||
this
.
props
.
lastStatus
==
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
))
&&
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
{
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
...
...
@@ -2883,7 +2888,8 @@ export default class ProfitLoss extends Component {
<
/button
>
<
/a>
}
<
ReactTooltip
border
=
{
true
}
id
=
"template"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
{((
this
.
props
.
lastStatus
==
'SUBMIT'
||
this
.
props
.
lastStatus
==
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
))
&&
<
a
data
-
tip
=
{
'Upload'
}
data
-
for
=
"upload"
>
{
/* {((this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted')) && */
}
<
a
data
-
tip
=
{
'Upload'
}
data
-
for
=
"upload"
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
...
...
@@ -2895,7 +2901,8 @@ export default class ProfitLoss extends Component {
>
<
img
src
=
{
Images
.
upload
}
/
>
<
/button
>
<
/a>
}
<
/a
>
{
/* // } */
}
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
...
...
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