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
26423b4c
Commit
26423b4c
authored
Apr 18, 2023
by
qorri_di
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'BACKUP-DEV'
Env dev See merge request
!1781
parents
83856731
eef9e9c4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
152 additions
and
76 deletions
+152
-76
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+11
-11
CashFlowOLPA.js
src/container/OutlookPA/CashFlowOLPA.js
+12
-12
ProgressReport.js
src/container/ProgressReport/ProgressReport.js
+10
-1
TableProgressReport.js
src/container/ProgressReport/TableProgressReport.js
+116
-50
SubHolding.js
src/container/Reports/SubHolding.js
+1
-1
TableSubHolding.js
src/container/Reports/TableSubHolding.js
+2
-1
No files found.
src/container/MonthlyReport/BalanceSheetMR.js
View file @
26423b4c
...
...
@@ -480,17 +480,17 @@ export default class BalanceSheetMR extends Component {
// this.props.onClickClose()
if
(
type
==
'submitted'
)
{
this
.
props
.
saveToMonthlyReport
(
'BS'
)
let
bodyRatioBs
=
{
"report"
:
'ratio'
,
"monthlyReportId"
:
this
.
props
.
monthlyReportId
,
"periode"
:
this
.
props
.
periode
,
"companyId"
:
this
.
props
.
company
.
company_id
,
"months"
:
this
.
props
.
month
.
month_id
}
api
.
create
().
triggerRatioFromLOCF
(
bodyRatioBs
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
})
})
//
let bodyRatioBs = {
//
"report": 'ratio',
//
"monthlyReportId": this.props.monthlyReportId,
//
"periode": this.props.periode,
//
"companyId": this.props.company.company_id,
//
"months": this.props.month.month_id
//
}
//
api.create().triggerRatioFromLOCF(bodyRatioBs).then((res) => {
//
console.log(res)
//
this.setState({ loading: false })
//
})
}
else
{
this
.
props
.
saveToMonthlyReport
()
}
...
...
src/container/OutlookPA/CashFlowOLPA.js
View file @
26423b4c
...
...
@@ -942,7 +942,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-2"
>
<
div
className
=
"col-2"
style
=
{{
left
:
14
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1017,7 +1017,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-3"
>
<
div
className
=
"col-3"
style
=
{{
left
:
28
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1091,7 +1091,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-4"
>
<
div
className
=
"col-4"
style
=
{{
left
:
43
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1170,7 +1170,7 @@ export default class CashFlow extends Component {
}
<
/div
>
<
/div
>
<
div
className
=
"grid grid-4x content-center"
>
<
div
className
=
"grid grid-4x content-center"
style
=
{{
left
:
58
}}
>
<
div
className
=
"col-1"
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
...
...
@@ -1249,7 +1249,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-2"
>
<
div
className
=
"col-2"
style
=
{{
left
:
15
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1326,7 +1326,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-3"
>
<
div
className
=
"col-3"
style
=
{{
left
:
29
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1403,7 +1403,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-4"
>
<
div
className
=
"col-4"
style
=
{{
left
:
45
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1482,7 +1482,7 @@ export default class CashFlow extends Component {
<
/div
>
<
/div
>
<
div
className
=
"grid grid-5x content-center"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
style
=
{{
left
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1559,7 +1559,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-2"
>
<
div
className
=
"col-2"
style
=
{{
left
:
76
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1637,7 +1637,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-3"
>
<
div
className
=
"col-3"
style
=
{{
left
:
63
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1708,7 +1708,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-4"
>
<
div
className
=
"col-4"
style
=
{{
left
:
46
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
@@ -1781,7 +1781,7 @@ export default class CashFlow extends Component {
null
}
<
/div
>
<
div
className
=
"col-5"
>
<
div
className
=
"col-5"
style
=
{{
left
:
30
}}
>
{
tableMeta
.
rowData
[
0
]
===
3
||
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
?
null
...
...
src/container/ProgressReport/ProgressReport.js
View file @
26423b4c
...
...
@@ -42,6 +42,7 @@ class ReportProgress extends Component {
alert
:
false
,
tipeAlert
:
''
,
messageAlert
:
''
,
company
:
null
}
}
...
...
@@ -187,6 +188,8 @@ class ReportProgress extends Component {
item
.
automatic_reminder_report_date
,
item
.
manual_reminder_report_status
,
item
.
manual_reminder_report_date
,
item
.
submission_status
,
item
.
manual_reminder_report_button
,
item
.
company_id
,
])
})
...
...
@@ -241,6 +244,8 @@ class ReportProgress extends Component {
item
.
automatic_reminder_report_date
,
item
.
manual_reminder_report_status
,
item
.
manual_reminder_report_date
,
item
.
monthly_status
,
item
.
manual_reminder_report_button
,
item
.
company_id
,
])
})
...
...
@@ -277,6 +282,8 @@ class ReportProgress extends Component {
item
.
automatic_reminder_report_date
,
item
.
manual_reminder_report_status
,
item
.
manual_reminder_report_date
,
item
.
rolling_status
,
item
.
manual_reminder_report_button
,
item
.
company_id
,
])
})
...
...
@@ -321,6 +328,8 @@ class ReportProgress extends Component {
item
.
automatic_reminder_report_date
,
item
.
manual_reminder_report_status
,
item
.
manual_reminder_report_date
,
item
.
outlook_status
,
item
.
manual_reminder_report_button
,
item
.
company_id
,
])
})
...
...
@@ -567,7 +576,7 @@ class ReportProgress extends Component {
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
quarter
=
{
this
.
state
.
quarter
.
name
}
month
=
{
this
.
state
.
month
.
month_id
}
company
=
{
this
.
state
.
company
}
company
=
{
this
.
state
.
company
_id
}
typeReport
=
{
String
(
this
.
state
.
reportType
.
name
).
toLocaleUpperCase
()}
year
=
{
this
.
state
.
periodeMB
.
value
}
getMonitoringMB
=
{
this
.
getMonitoringMB
.
bind
(
this
)}
...
...
src/container/ProgressReport/TableProgressReport.js
View file @
26423b4c
This diff is collapsed.
Click to expand it.
src/container/Reports/SubHolding.js
View file @
26423b4c
...
...
@@ -4218,7 +4218,7 @@ export default class SubHolding extends Component {
// console.log(yearNow)
// console.log(periode)
if
(
String
(
this
.
state
.
report
.
label
).
toLocaleLowerCase
().
includes
(
'summary'
))
{
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
.
periode
==
yearNow
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
.
periode
==
yearNow
-
1
)
// console.log(index)
this
.
setState
({
periode
:
data
[
index
]
},
()
=>
{
this
.
getReportType
()
...
...
src/container/Reports/TableSubHolding.js
View file @
26423b4c
...
...
@@ -19053,7 +19053,8 @@ export default class TableSubHolding extends Component {
else {
persenOl = ol / fy
}
value = String(type).includes('MTD') ? persenMtd : String(type).includes('YTD') ? persenYtd : String(type).includes('Quarter') ? persenQuarter : persenFy
// console.log(type);
value = String(type).includes('MTD') ? persenMtd : String(type).includes('YTD') ? persenYtd : String(type).includes('Quarter') ? persenQuarter : String(type).includes('OL') ? persenOl : persenFy
value = (value == null || value == Infinity || value == -Infinity || isNaN(value) ? 0 : Number(value * 100).toFixed(1))
// value = isNaN(value) || value == 'Infinity' || value == '-Infinity' ? (value == '' || value == 0 ? -0 : 0) : (value== '' || value == 0 ? persenFy * -100 : persenFy * 100)
} else {
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