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
dd1b3cae
Commit
dd1b3cae
authored
Sep 01, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
balance sheet
parent
71f6d7fa
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1256 additions
and
125 deletions
+1256
-125
index.js
src/api/index.js
+3
-1
BudgetTahunan.js
src/container/BudgetTahunan.js
+58
-50
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+1187
-69
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+1
-1
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+4
-1
Upload.js
src/library/Upload.js
+3
-3
No files found.
src/api/index.js
View file @
dd1b3cae
...
...
@@ -161,6 +161,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
const
getRevision
=
(
body
)
=>
api
.
post
(
'transaction/get_revision'
,
body
)
const
getPeriodeTransaction
=
()
=>
api
.
get
(
'transaction/get_periode'
)
const
deleteAttachment
=
(
id
)
=>
api
.
post
(
`transaction/delete_attachment/
${
id
}
`
)
const
getDetailReportMB
=
(
body
)
=>
api
.
post
(
'/transaction/master_budget/get_report_hierarki'
,
body
)
//Template
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
...
...
@@ -264,7 +265,8 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
uploadAttachment
,
getPeriodeTransaction
,
getRevision
,
deleteAttachment
deleteAttachment
,
getDetailReportMB
}
}
...
...
src/container/BudgetTahunan.js
View file @
dd1b3cae
...
...
@@ -32,7 +32,8 @@ export default class BudgetTahunan extends Component {
visibleFAM
:
false
,
visibleCAT
:
false
,
listAttachment
:
[],
visibleUpload
:
false
visibleUpload
:
false
,
revisionTable
:
null
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
...
...
@@ -161,8 +162,12 @@ export default class BudgetTahunan extends Component {
})
}
clickDetail
(
item
,
id
)
{
this
.
setState
({
report_id
:
id
})
clickDetail
(
item
,
id
,
revision
)
{
console
.
log
(
item
);
this
.
setState
({
report_id
:
id
,
revisionTable
:
revision
,
},
()
=>
{
if
(
item
===
'Balance Sheet'
)
{
this
.
setState
({
visibleBudgetTahunan
:
false
,
...
...
@@ -172,7 +177,7 @@ export default class BudgetTahunan extends Component {
visibleFAM
:
false
,
visibleTP
:
false
,
})
}
else
if
(
item
===
'Profit &
Loss'
)
{
}
else
if
(
item
===
'Profit
Loss'
)
{
this
.
setState
({
visibleBudgetTahunan
:
false
,
visibleBS
:
false
,
...
...
@@ -209,6 +214,7 @@ export default class BudgetTahunan extends Component {
visibleTP
:
false
})
}
})
}
handleChange
(
value
,
tableMeta
)
{
...
...
@@ -323,7 +329,7 @@ export default class BudgetTahunan extends Component {
borderColor
:
'transparent'
}}
onClick
=
{()
=>
tableMeta
.
rowData
[
5
]
?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
])
:
null
tableMeta
.
rowData
[
5
]
?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
]
,
tableMeta
.
rowData
[
2
]
)
:
null
}
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
5
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
...
...
@@ -554,6 +560,8 @@ export default class BudgetTahunan extends Component {
<
BalanceSheet
report_id
=
{
this
.
state
.
report_id
}
company
=
{
this
.
state
.
company
}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
onClickClose
=
{()
=>
this
.
setState
({
visibleBS
:
false
,
visibleBudgetTahunan
:
true
})}
/
>
)}
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
dd1b3cae
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/MasterData/Parameter/CreateParameter.js
View file @
dd1b3cae
...
...
@@ -364,7 +364,7 @@ export default class CreateParameter extends Component {
}
else
if
(
R
.
isNil
(
this
.
state
.
getParameter
))
{
this
.
setState
({
errorParameter
:
true
,
msgErrorParameter
:
'Parameter Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
getPerusahaan
))
{
this
.
setState
({
errorPerusahaan
:
true
,
msgErrorPerusahaan
:
'
Perusahaan
Cannot be Empty.'
})
this
.
setState
({
errorPerusahaan
:
true
,
msgErrorPerusahaan
:
'
Company
Cannot be Empty.'
})
// } else if (R.isEmpty(this.state.description)) {
// this.setState({ errorDeskripsi: true, msgErrorDeskripsi: 'Deskripsi tidak boleh kosong' })
// } else if (R.isNil(this.state.value)) {
...
...
src/container/MasterData/UnitBisnis.js
View file @
dd1b3cae
...
...
@@ -74,9 +74,11 @@ export default class UnitBisnis extends Component {
}
this
.
setState
({
payload
:
body
,
buttonError
:
false
})
api
.
create
().
checkUploadUnitBisnis
(
body
).
then
(
response
=>
{
console
.
log
(
response
)
let
dataRow
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
let
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
dataRow
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
return
[
index
+
1
,
item
.
business_unit_name
,
...
...
@@ -180,6 +182,7 @@ export default class UnitBisnis extends Component {
}
else
{
this
.
setState
({
dataLoaded
:
false
,
rows
:
[]
});
}
})
...
...
src/library/Upload.js
View file @
dd1b3cae
...
...
@@ -70,7 +70,7 @@ class Upload extends Component {
uploadProgress
:
false
,
percentage
:
'0'
})
this
.
setState
({
alertMessage
:
"
Unsupported File
"
,
alert
:
true
})
this
.
setState
({
alertMessage
:
"
File extension not allowed.
"
,
alert
:
true
})
// alert("Unsupported Media Type")
}
}
...
...
@@ -95,11 +95,11 @@ class Upload extends Component {
if
(
this
.
state
.
sizeFile
<
1000
)
{
this
.
props
.
onUpload
()
}
else
{
this
.
setState
({
alertMessage
:
'
File cannot be more than
1MB'
,
alert
:
true
})
this
.
setState
({
alertMessage
:
'
The file is too large. Allowed maximum size is
1MB'
,
alert
:
true
})
// alert('File Tidak Boleh Lebih Dari 1MB')
}
}
else
{
this
.
setState
({
alertMessage
:
'
Unsupported File
'
,
alert
:
true
})
this
.
setState
({
alertMessage
:
'
File extension not allowed.
'
,
alert
:
true
})
// alert('File Tidak Mendukung')
}
}
...
...
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