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
effb3601
Commit
effb3601
authored
Aug 24, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solve issue report item, nambah profit loss
parent
725586f9
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
164 additions
and
97 deletions
+164
-97
BudgetTahunan.js
src/container/BudgetTahunan.js
+15
-1
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+30
-13
ReportItems.js
src/container/MasterData/ReportItems.js
+26
-26
CreateReportItems.js
...container/MasterData/formReportItems/CreateReportItems.js
+27
-23
EditReportItems.js
src/container/MasterData/formReportItems/EditReportItems.js
+65
-33
VisualReportItems.js
...container/MasterData/formReportItems/VisualReportItems.js
+1
-1
No files found.
src/container/BudgetTahunan.js
View file @
effb3601
...
@@ -3,6 +3,7 @@ import { Typography, Paper, TextField, MenuItem } from '@material-ui/core';
...
@@ -3,6 +3,7 @@ import { Typography, Paper, TextField, MenuItem } from '@material-ui/core';
import
MUIDataTable
from
'mui-datatables'
;
import
MUIDataTable
from
'mui-datatables'
;
import
Images
from
'../assets/Images'
;
import
Images
from
'../assets/Images'
;
import
BalanceSheet
from
'./BudgetTahunan/BalanceSheet'
;
import
BalanceSheet
from
'./BudgetTahunan/BalanceSheet'
;
import
ProfitLoss
from
'./BudgetTahunan/ProfitLoss'
;
export
default
class
BudgetTahunan
extends
Component
{
export
default
class
BudgetTahunan
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -12,7 +13,8 @@ export default class BudgetTahunan extends Component {
...
@@ -12,7 +13,8 @@ export default class BudgetTahunan extends Component {
perusahaan
:
'TAP Group'
,
perusahaan
:
'TAP Group'
,
revisi
:
'0'
,
revisi
:
'0'
,
visibleBudgetTahunan
:
true
,
visibleBudgetTahunan
:
true
,
visibleBS
:
false
visibleBS
:
false
,
visiblePL
:
false
}
}
}
}
...
@@ -26,6 +28,15 @@ export default class BudgetTahunan extends Component {
...
@@ -26,6 +28,15 @@ export default class BudgetTahunan extends Component {
visibleFAM
:
false
,
visibleFAM
:
false
,
visibleTP
:
false
visibleTP
:
false
})
})
}
else
if
(
item
===
'Profit & Loss'
)
{
this
.
setState
({
visibleBudgetTahunan
:
false
,
visibleBS
:
false
,
visiblePL
:
true
,
visibleCAT
:
false
,
visibleFAM
:
false
,
visibleTP
:
false
})
}
}
}
}
...
@@ -217,6 +228,9 @@ export default class BudgetTahunan extends Component {
...
@@ -217,6 +228,9 @@ export default class BudgetTahunan extends Component {
{
this
.
state
.
visibleBS
&&
(
{
this
.
state
.
visibleBS
&&
(
<
BalanceSheet
/>
<
BalanceSheet
/>
)}
)}
{
this
.
state
.
visiblePL
&&
(
<
ProfitLoss
/>
)}
<
/div
>
<
/div
>
);
);
}
}
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
effb3601
...
@@ -34,10 +34,10 @@ export default class ProfitLoss extends Component {
...
@@ -34,10 +34,10 @@ export default class ProfitLoss extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
width
:
388
}}
>
<
div
style
=
{{
width
:
388
}}
>
{
tableMeta
.
rowIndex
==
0
||
tableMeta
.
rowIndex
==
1
?
{
tableMeta
.
rowIndex
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
val
}
<
/span
>
:
:
tableMeta
.
rowIndex
==
2
||
tableMeta
.
rowIndex
==
6
||
tableMeta
.
rowIndex
==
7
||
tableMeta
.
rowIndex
==
8
?
tableMeta
.
rowIndex
==
1
||
tableMeta
.
rowIndex
==
4
||
tableMeta
.
rowIndex
==
7
?
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
10
}}
>
{
val
}
<
/span>
:
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
10
}}
>
{
val
}
<
/span>
:
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
}}
>
{
val
}
<
/span
>
}
}
...
@@ -46,6 +46,23 @@ export default class ProfitLoss extends Component {
...
@@ -46,6 +46,23 @@ export default class ProfitLoss extends Component {
}
}
}
}
},
{
},
{
name
:
"Keterangan"
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
TableCell
key
=
{
columnMeta
.
index
}
style
=
{{
...
style2
,
top
:
0
,
zIndex
:
102
,
backgroundColor
:
'#354960'
,
width
:
96
}}
>
<
Typography
style
=
{{
color
:
'white'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
textAlign
:
'center'
}}
>
{
columnMeta
.
name
}
<
/Typography
>
<
/TableCell
>
),
setCellProps
:
()
=>
({
style
:
{
position
:
"sticky"
,
left
:
420
,
background
:
"white"
,
zIndex
:
101
}
})
}
},{
name
:
"31 Dec 2020 Actual"
,
name
:
"31 Dec 2020 Actual"
,
options
:
{
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
customHeadRender
:
(
columnMeta
)
=>
(
...
@@ -74,7 +91,7 @@ export default class ProfitLoss extends Component {
...
@@ -74,7 +91,7 @@ export default class ProfitLoss extends Component {
return
(
return
(
<
div
style
=
{{
textAlign
:
'right'
}}
>
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowIndex
===
3
||
tableMeta
.
rowIndex
===
4
||
tableMeta
.
rowIndex
===
9
?
{
tableMeta
.
rowIndex
===
2
||
tableMeta
.
rowIndex
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
...
@@ -241,16 +258,16 @@ export default class ProfitLoss extends Component {
...
@@ -241,16 +258,16 @@ export default class ProfitLoss extends Component {
}
}
]
]
const
dataTable
=
[
const
dataTable
=
[
[
"
TOTAL ASSETS
"
,
"11,247,249"
,
"10,702,196"
],
[
"
Ravenue"
,
"
"
,
"11,247,249"
,
"10,702,196"
],
[
"
TOTAL CURRENT ASSETS
"
,
"2,647,647"
,
"2,058,898"
],
[
"
Unit Bisnis/ Brand/ SubCo 1"
,
"
"
,
"2,647,647"
,
"2,058,898"
],
[
"
Cash & Cash Equivalent
"
,
"1,464,571"
,
"729,743"
],
[
"
Sales Volume"
,
"Subco1
"
,
"1,464,571"
,
"729,743"
],
[
"
Cash & Bank Balance"
,
"938,707"
,
"265584
"
],
[
"
Sales Price"
,
"Subco1"
,
"1"
,
"6
"
],
[
"
Time & Call Deposit"
,
"525,864"
,
"464,159
"
],
[
"
Unit Bisnis/ Brand/ SubCo 2"
,
""
,
"-"
,
"-
"
],
[
"
BI Deposit"
,
""
,
"
"
],
[
"
Sales Volume"
,
"Subco2"
,
"-"
,
"-
"
],
[
"
Marketable Securities"
,
"150,250"
,
"154,500
"
],
[
"
Sales Price"
,
"Subco2"
,
"-"
,
"-
"
],
[
"
Notes Receivable"
,
""
,
"
"
],
[
"
Unit Bisnis/ Brand/ SubCo 3"
,
""
,
"-"
,
"-
"
],
[
"
Accounts Receivable"
,
"172,031"
,
"97,112
"
],
[
"
Sales Volume"
,
"Subco3"
,
"-"
,
"-
"
],
[
"
Trade Receivables - Third Party"
,
"142,668"
,
"77,480
"
],
[
"
Sales Price"
,
"Subco3"
,
"-"
,
"-
"
],
]
]
return
(
return
(
<
div
style
=
{{
height
:
this
.
props
.
height
,
backgroundColor
:
'#f8f8f8'
,
marginBottom
:
100
,
minHeight
:
1000
}}
>
<
div
style
=
{{
height
:
this
.
props
.
height
,
backgroundColor
:
'#f8f8f8'
,
marginBottom
:
100
,
minHeight
:
1000
}}
>
...
...
src/container/MasterData/ReportItems.js
View file @
effb3601
This diff is collapsed.
Click to expand it.
src/container/MasterData/formReportItems/CreateReportItems.js
View file @
effb3601
This diff is collapsed.
Click to expand it.
src/container/MasterData/formReportItems/EditReportItems.js
View file @
effb3601
This diff is collapsed.
Click to expand it.
src/container/MasterData/formReportItems/VisualReportItems.js
View file @
effb3601
...
@@ -198,7 +198,7 @@ export default class VisualReportItems extends Component {
...
@@ -198,7 +198,7 @@ export default class VisualReportItems extends Component {
return
(
return
(
<
div
>
<
div
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
collapse
(
item
.
id
)}
>
{
collapseIcon
?
(
this
.
state
.
arrayCollapse
.
includes
(
item
.
id
)
?
<
AddIcon
/>
:
<
RemoveIcon
/>
)
:
null
}
<
/button
>
<
button
type
=
"button"
onClick
=
{()
=>
this
.
collapse
(
item
.
id
)}
>
{
collapseIcon
?
(
this
.
state
.
arrayCollapse
.
includes
(
item
.
id
)
?
<
AddIcon
/>
:
<
RemoveIcon
/>
)
:
null
}
<
/button
>
<
label
style
=
{{
marginLeft
:
collapseIcon
?
10
:
0
}}
>
{
item
.
report_name
}
<
/label
>
<
label
style
=
{{
marginLeft
:
collapseIcon
?
10
:
0
}}
>
{
item
.
description
}
<
/label
>
<
/div
>
<
/div
>
)
)
};
};
...
...
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