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
de6ed836
Commit
de6ed836
authored
Feb 06, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push banyak bgt pokoknya
parent
f03a9914
Changes
17
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1317 additions
and
658 deletions
+1317
-658
index.js
src/api/index.js
+12
-1
Images.js
src/assets/Images.js
+1
-1
zip.png
src/assets/zip.png
+0
-0
Login.js
src/container/Auth/Login.js
+1
-0
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+180
-12
DownloadReport.js
src/container/DownloadReport/DownloadReport.js
+270
-0
Home.js
src/container/Menu/Home.js
+1
-2
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+25
-23
CashFlowMR.js
src/container/MonthlyReport/CashFlowMR.js
+2
-2
CorporateAnnualTargetMR.js
src/container/MonthlyReport/CorporateAnnualTargetMR.js
+2
-2
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+35
-33
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+2
-2
MonthlyReport.js
src/container/MonthlyReport/MonthlyReport.js
+200
-8
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+25
-23
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+549
-548
Array.js
src/library/Array.js
+7
-1
homeRoutes.js
src/router/homeRoutes.js
+5
-0
No files found.
src/api/index.js
View file @
de6ed836
...
...
@@ -496,6 +496,13 @@ const create = (type = "") => {
// Reminder Manual
const
sendEmail
=
(
body
)
=>
api
.
post
(
'transaction/monitoring/reminder_progress_report'
,
body
)
// Download Report
const
createDownloadFile
=
(
body
)
=>
api
.
post
(
'transaction/create/download-files-report'
,
body
)
const
createZipReport
=
(
id
)
=>
api
.
get
(
`transaction/zip-files?downloadedFileReportId=
${
id
}
`
)
const
getListDownload
=
()
=>
api
.
get
(
'transaction/download-files'
)
const
downloadZipReport
=
(
id
)
=>
api
.
get
(
`transaction/download/zip-files?downloadedFileReportId=
${
id
}
`
)
// const createZipReport = (body) => api.post('transaction/monthly_report/export_selected_report', body)
// Superadmin Approve
const
getListApprover
=
(
report
,
monthlyReportId
)
=>
api
.
get
(
`transaction/
${
report
}
/get_approver/
${
monthlyReportId
}
`
)
const
getIdToken
=
(
userId
)
=>
api
.
get
(
`transaction/get_token/
${
userId
}
`
)
...
...
@@ -855,7 +862,11 @@ const create = (type = "") => {
triggerHistoricalRatio
,
getDetailMaintenanceMode
,
createMaintenanceMode
,
updateMaintenanceMode
updateMaintenanceMode
,
createZipReport
,
createDownloadFile
,
getListDownload
,
downloadZipReport
}
}
...
...
src/assets/Images.js
View file @
de6ed836
...
...
@@ -55,7 +55,7 @@ const Images = {
dotDone
:
require
(
'./dot-done.svg'
),
dotOverdue
:
require
(
'./dot-overdue.svg'
),
dotOpen
:
require
(
'./dot-open.svg'
),
zip
:
require
(
'./zip.png'
),
}
export
default
Images
\ No newline at end of file
src/assets/zip.png
0 → 100644
View file @
de6ed836
749 Bytes
src/container/Auth/Login.js
View file @
de6ed836
...
...
@@ -97,6 +97,7 @@ class Login extends Component {
"password"
:
this
.
state
.
password
}
api
.
create
().
login
(
payload
).
then
((
response
)
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
ok
)
{
if
(
response
.
data
.
status
===
'success'
)
{
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
de6ed836
This diff is collapsed.
Click to expand it.
src/container/DownloadReport/DownloadReport.js
0 → 100644
View file @
de6ed836
This diff is collapsed.
Click to expand it.
src/container/Menu/Home.js
View file @
de6ed836
...
...
@@ -376,7 +376,7 @@ export default function MiniDrawer() {
const
getIsApprover
=
(
superadmin
)
=>
{
api
.
create
().
getAM
().
then
((
response
)
=>
{
console
.
log
(
response
);
//
console.log(response);
let
actAMActive
=
response
.
data
.
data
let
userId
=
localStorage
.
getItem
(
Constant
.
USER
)
let
indexId
=
actAMActive
.
findIndex
((
val
)
=>
val
.
user_id
==
userId
)
...
...
@@ -404,7 +404,6 @@ export default function MiniDrawer() {
})
setApplication
(
app
)
setSetting
(
set
)
console
.
log
(
set
);
}
else
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
window
.
location
.
reload
();
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
de6ed836
...
...
@@ -2611,27 +2611,29 @@ export default class BalanceSheetMR extends Component {
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
get_for
==
'view'
?
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
margin
:
5
}}
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
this
.
downloadAllData
()
},
100
);
})}
>
<
img
src
=
{
Images
.
download
}
/
>
<
/button
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div>
:
null
// <div style={{ justifyContent: 'flex-end', display: 'flex', flexFlow: 'wrap' }}>
// <a data-tip={'Download'} data-for="download">
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// margin: 5
// }}
// onClick={() =>
// this.setState({ loading: true }, () => {
// setTimeout(() => {
// this.downloadAllData()
// }, 100);
// })}
// >
// <img src={Images.download} />
// </button>
// </a>
// <ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
// </div>
:
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
...
...
@@ -2661,7 +2663,7 @@ export default class BalanceSheetMR extends Component {
<
/button
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
{
/*
<a data-tip={'Download'} data-for="download">
<button
style={{
backgroundColor: 'transparent',
...
...
@@ -2679,7 +2681,7 @@ export default class BalanceSheetMR extends Component {
<img src={Images.download} />
</button>
</a>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
*/
}
<
/div
>
}
<
/div
>
...
...
src/container/MonthlyReport/CashFlowMR.js
View file @
de6ed836
...
...
@@ -698,7 +698,7 @@ export default class CashFlowMR extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
Period
:
{
String
(
this
.
props
.
month
.
month_value
).
toLocaleUpperCase
()}
{
this
.
props
.
periode
}
(
rev
.{
this
.
props
.
revision
})
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
}}
>
in
IDR
mn
<
/Typography
>
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
/*
<div style={{ width: '50%' }}>
<div style={{ justifyContent: 'flex-end', display: 'flex', flexFlow: 'wrap' }}>
<a data-tip={'Download'} data-for="download">
<button
...
...
@@ -720,7 +720,7 @@ export default class CashFlowMR extends Component {
</a>
<ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
</div>
<
/div
>
</div>
*/
}
<
/div
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
...
...
src/container/MonthlyReport/CorporateAnnualTargetMR.js
View file @
de6ed836
...
...
@@ -2004,7 +2004,7 @@ export default class CorporateAnnualTargetMR extends Component {
<
/button
>
<
/a>
}
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
{
/*
<a data-tip={'Download'} data-for="download">
<button
style={{
backgroundColor: 'transparent',
...
...
@@ -2022,7 +2022,7 @@ export default class CorporateAnnualTargetMR extends Component {
<img src={Images.download} />
</button>
</a>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
*/
}
<
/div
>
<
/div
>
<
/div
>
...
...
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
de6ed836
...
...
@@ -440,7 +440,7 @@ export default class FixedAssetsMovementMR extends Component {
this
.
props
.
saveToMonthlyReport
()
}
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
document
.
body
.
style
.
overflow
=
'unset'
;
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
setTimeout
(()
=>
{
...
...
@@ -1015,11 +1015,11 @@ export default class FixedAssetsMovementMR extends Component {
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"beginning balance"
&&
this
.
props
.
periode
==
2021
&&
this
.
props
.
month
.
month_id
==
1
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"beginning balance"
&&
this
.
props
.
periode
==
2021
&&
this
.
props
.
month
.
month_id
==
1
?
"#5198ea"
:
"black"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"beginning balance"
&&
this
.
props
.
periode
==
2021
&&
this
.
props
.
month
.
month_id
==
1
?
false
:
true
}
value
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"beginning balance"
&&
this
.
props
.
periode
==
2021
&&
this
.
props
.
month
.
month_id
==
1
?
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)
:
Number
(
handleValueFormula
(
tableMeta
,
8
)).
toFixed
(
1
)}
disabled
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"beginning balance"
&&
this
.
props
.
periode
==
2021
&&
this
.
props
.
month
.
month_id
==
1
?
false
:
true
}
value
=
{
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"beginning balance"
&&
this
.
props
.
periode
==
2021
&&
this
.
props
.
month
.
month_id
==
1
?
Number
(
tableMeta
.
rowData
[
8
]).
toFixed
(
1
)
:
Number
(
handleValueFormula
(
tableMeta
,
8
)).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
,
8
)
}}
...
...
@@ -1347,27 +1347,29 @@ export default class FixedAssetsMovementMR extends Component {
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
get_for
==
'view'
?
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
margin
:
5
}}
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
this
.
downloadAllData
()
},
100
);
})}
>
<
img
src
=
{
Images
.
download
}
/
>
<
/button
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div>
:
null
// <div style={{ justifyContent: 'flex-end', display: 'flex', flexFlow: 'wrap' }}>
// <a data-tip={'Download'} data-for="download">
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// margin: 5
// }}
// onClick={() =>
// this.setState({ loading: true }, () => {
// setTimeout(() => {
// this.downloadAllData()
// }, 100);
// })}
// >
// <img src={Images.download} />
// </button>
// </a>
// <ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
// </div>
:
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
...
...
@@ -1397,7 +1399,7 @@ export default class FixedAssetsMovementMR extends Component {
<
/button
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
{
/*
<a data-tip={'Download'} data-for="download">
<button
style={{
backgroundColor: 'transparent',
...
...
@@ -1415,7 +1417,7 @@ export default class FixedAssetsMovementMR extends Component {
<img src={Images.download} />
</button>
</a>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
*/
}
<
/div
>
}
<
/div
>
...
...
@@ -1432,9 +1434,9 @@ export default class FixedAssetsMovementMR extends Component {
<
/MuiThemeProvider
>
)}
<
/div
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
<
/Typography
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
this
.
state
.
updateBy
.
length
<
2
?
25
:
75
,
marginTop
:
10
}}
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
this
.
state
.
updateBy
.
length
<
2
?
25
:
75
,
marginTop
:
10
}}
>
{
this
.
state
.
updateBy
.
length
>
0
?
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
return
(
...
...
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
de6ed836
...
...
@@ -3856,7 +3856,7 @@ export default class ListOfCreditFacilities extends Component {
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div
>
)}
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
{
/*
<a data-tip={'Download'} data-for="download">
<button
style={{
backgroundColor: 'transparent',
...
...
@@ -3875,7 +3875,7 @@ export default class ListOfCreditFacilities extends Component {
<img src={Images.download} />
</button>
</a>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
*/
}
<
/div
>
{
/* } */
}
<
/div
>
...
...
src/container/MonthlyReport/MonthlyReport.js
View file @
de6ed836
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/ProfitLossMR.js
View file @
de6ed836
...
...
@@ -2032,27 +2032,29 @@ export default class ProfitLossMR extends Component {
<
/div
>
<
div
style
=
{{
width
:
'50%'
}}
>
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
get_for
==
'view'
?
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download'
}
data
-
for
=
"download"
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
margin
:
5
}}
onClick
=
{()
=>
this
.
setState
({
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
this
.
downloadAllData
()
},
100
);
})}
>
<
img
src
=
{
Images
.
download
}
/
>
<
/button
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div>
:
// <div style={{ justifyContent: 'flex-end', display: 'flex', flexFlow: 'wrap' }}>
// <a data-tip={'Download'} data-for="download">
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// margin: 5
// }}
// onClick={() =>
// this.setState({ loading: true }, () => {
// setTimeout(() => {
// this.downloadAllData()
// }, 100);
// })}
// >
// <img src={Images.download} />
// </button>
// </a>
// <ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
// </div>
null
:
<
div
style
=
{{
justifyContent
:
'flex-end'
,
display
:
'flex'
,
flexFlow
:
'wrap'
}}
>
<
a
data
-
tip
=
{
'Download Template'
}
data
-
for
=
"template"
>
<
button
...
...
@@ -2081,7 +2083,7 @@ export default class ProfitLossMR extends Component {
<
img
src
=
{
Images
.
upload
}
/
>
<
/button
>
<
/a
>
<
ReactTooltip
border
=
{
true
}
id
=
"upload"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
{
/*
<ReactTooltip border={true} id="upload" place="bottom" type="light" effect="solid" />
<a data-tip={'Download'} data-for="download">
<button
style={{
...
...
@@ -2100,7 +2102,7 @@ export default class ProfitLossMR extends Component {
<img src={Images.download} />
</button>
</a>
<
ReactTooltip
border
=
{
true
}
id
=
"download"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<ReactTooltip border={true} id="download" place="bottom" type="light" effect="solid" />
*/
}
<
/div
>
}
<
/div
>
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
de6ed836
This diff is collapsed.
Click to expand it.
src/library/Array.js
View file @
de6ed836
...
...
@@ -149,7 +149,13 @@ const arraySide = [
path
:
''
,
},
]
}
},
{
img
:
Images
.
outlookperformance
,
label
:
'Download Files'
,
path
:
'download-files'
,
subItem
:
null
},
]
export
default
arraySide
;
\ No newline at end of file
src/router/homeRoutes.js
View file @
de6ed836
...
...
@@ -24,6 +24,7 @@ import MaintenanceMode from '../container/GeneralSetting/MaintenanceMode';
import
CafrmDocument
from
"../container/CAFRM/CafrmDocument"
;
import
ReportCafrm
from
"../container/ReportCarfm/RepotrCafrm"
;
import
Maintenance
from
"../container/Auth/Maintenance"
;
import
DownloadReport
from
"../container/DownloadReport/DownloadReport"
const
routes
=
[
{
...
...
@@ -134,6 +135,10 @@ const routes = [
path
:
"/home/maintenance-mode"
,
main
:
MaintenanceMode
},
{
path
:
"/home/download-files"
,
main
:
DownloadReport
},
{
path
:
"*"
,
main
:
screen404
...
...
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