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
33d1a35f
Commit
33d1a35f
authored
Dec 04, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
735f1791
16378b9f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
361 additions
and
4 deletions
+361
-4
MonthlyReport.js
src/container/MonthlyReport.js
+39
-4
CashFlowMR.js
src/container/MonthlyReport/CashFlowMR.js
+322
-0
No files found.
src/container/MonthlyReport.js
View file @
33d1a35f
...
...
@@ -18,6 +18,7 @@ import MuiAlert from '@material-ui/lab/Alert';
import
Constant
from
'../library/Constant'
;
import
OperatingIndicatorMR
from
'./MonthlyReport/OperatingIndicatorMR'
;
import
CorporateAnnualTargetMR
from
'./MonthlyReport/CorporateAnnualTargetMR'
;
import
CashFlowMR
from
'./MonthlyReport/CashFlowMR'
;
var
ct
=
require
(
"../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
...
...
@@ -45,6 +46,7 @@ export default class MonthlyReport extends Component {
visibleFAM
:
false
,
visibleCAT
:
false
,
visibleOI
:
false
,
visibleCF
:
false
,
listAttachment
:
[],
visibleUpload
:
false
,
lastRevision
:
0
,
...
...
@@ -471,7 +473,7 @@ export default class MonthlyReport extends Component {
})
}
saveToMonthlyReport
(){
saveToMonthlyReport
()
{
this
.
setState
({
visibleMonthlyReport
:
true
,
visibleBS
:
false
,
...
...
@@ -481,7 +483,7 @@ export default class MonthlyReport extends Component {
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleOI
:
false
,
},
()
=>
{
},
()
=>
{
this
.
getMonthlyReportID
()
})
}
...
...
@@ -503,6 +505,7 @@ export default class MonthlyReport extends Component {
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleOI
:
false
,
visibleCF
:
false
,
})
}
else
if
(
item
===
'Profit Loss'
)
{
this
.
setState
({
...
...
@@ -514,6 +517,7 @@ export default class MonthlyReport extends Component {
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleOI
:
false
,
visibleCF
:
false
,
})
}
else
if
(
item
===
'Tax Planning'
)
{
this
.
setState
({
...
...
@@ -525,6 +529,7 @@ export default class MonthlyReport extends Component {
visibleTP
:
true
,
visibleLOCF
:
false
,
visibleOI
:
false
,
visibleCF
:
false
,
})
}
else
if
(
item
===
'Fixed Assets Movement'
)
{
this
.
setState
({
...
...
@@ -547,6 +552,7 @@ export default class MonthlyReport extends Component {
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleOI
:
false
,
visibleCF
:
false
,
})
}
else
if
(
item
===
'List of Credit Facilities'
)
{
this
.
setState
({
...
...
@@ -558,6 +564,7 @@ export default class MonthlyReport extends Component {
visibleTP
:
false
,
visibleLOCF
:
true
,
visibleOI
:
false
,
visibleCF
:
false
,
})
}
else
if
(
item
===
'Operating Indicator'
)
{
this
.
setState
({
...
...
@@ -569,6 +576,19 @@ export default class MonthlyReport extends Component {
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleOI
:
true
,
visibleCF
:
false
,
})
}
else
if
(
item
===
'Cash Flow'
)
{
this
.
setState
({
visibleMonthlyReport
:
false
,
visibleBS
:
false
,
visiblePL
:
false
,
visibleCAT
:
false
,
visibleFAM
:
false
,
visibleTP
:
false
,
visibleLOCF
:
false
,
visibleOI
:
false
,
visibleCF
:
true
,
})
}
})
...
...
@@ -645,7 +665,7 @@ export default class MonthlyReport extends Component {
`https://tia.eksad.com/tia-reporting-dev/public/transaction/monthly_report/download_attachment?fileName=
${
fileurl
}
&&fileType=
${
fileType
}
`
)
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
setState
({
loading
:
false
},
()
=>
{
document
.
body
.
style
.
overflow
=
'unset'
;
})
if
(
res
.
size
>
0
)
{
...
...
@@ -1088,7 +1108,7 @@ export default class MonthlyReport extends Component {
month
=
{
this
.
state
.
month
}
saveToMonthlyReport
=
{
this
.
saveToMonthlyReport
.
bind
(
this
)}
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleMonthlyReport
:
true
})}
// getReport={this.getCompanyActive.bind(this)}
// getReport={this.getCompanyActive.bind(this)}
/
>
)}
{
this
.
state
.
visibleFAM
&&
(
...
...
@@ -1151,6 +1171,21 @@ export default class MonthlyReport extends Component {
onClickClose
=
{()
=>
this
.
setState
({
visibleOI
:
false
,
visibleMonthlyReport
:
true
})}
/
>
)}
{
this
.
state
.
visibleCF
&&
(
<
CashFlowMR
open
=
{
this
.
props
.
open
}
report_id
=
{
this
.
state
.
report_id
}
height
=
{
this
.
props
.
height
}
width
=
{
this
.
props
.
width
}
company
=
{
this
.
state
.
company
}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
monthlyReportId
=
{
this
.
state
.
monthlyReportId
}
month
=
{
this
.
state
.
month
}
onClickClose
=
{()
=>
this
.
setState
({
visibleCF
:
false
,
visibleMonthlyReport
:
true
})}
/
>
)}
<
/div
>
);
}
...
...
src/container/MonthlyReport/CashFlowMR.js
0 → 100644
View file @
33d1a35f
This diff is collapsed.
Click to expand it.
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