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
953bb3e8
Commit
953bb3e8
authored
Oct 20, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-STAGING' of
http://103.44.149.204/d.arizona/tia-dev
into ENV-STAGING
parents
cb9491df
66c49bdc
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
672 additions
and
382 deletions
+672
-382
index.js
src/api/index.js
+2
-0
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+3
-2
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+379
-113
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+270
-254
ListOfCreditFacilitiesMR.js
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
+3
-3
MonthlyReport.js
src/container/MonthlyReport/MonthlyReport.js
+3
-2
OperatingIndicator.js
src/container/OperatingIndicator/OperatingIndicator.js
+3
-2
OutlookPA.js
src/container/OutlookPA/OutlookPA.js
+3
-2
BalanceSheetRO.js
src/container/RollingOutlook/BalanceSheetRO.js
+3
-2
RollingOutlook.js
src/container/RollingOutlook/RollingOutlook.js
+3
-2
No files found.
src/api/index.js
View file @
953bb3e8
...
...
@@ -190,6 +190,7 @@ const create = (type = "") => {
const
deleteParameter
=
(
id
)
=>
api
.
post
(
`setting/delete_setting/
${
id
}
`
)
const
getDataReport
=
()
=>
api
.
get
(
'setting_type/get_all_setting_type_by_report_submit_period_group'
)
const
getFormatValue
=
()
=>
api
.
get
(
'setting_type/get_all_setting_type_by_money_format_group'
)
const
getThreshold
=
()
=>
api
.
get
(
'/setting_type/get_all_setting_type_by_threshold_control'
)
// MASTER DATA - CAT
const
getAllMasterDataCat
=
()
=>
api
.
get
(
'item_report_company/get_all_item_report_company'
)
...
...
@@ -651,6 +652,7 @@ const create = (type = "") => {
deleteParameter
,
getDataReport
,
getFormatValue
,
getThreshold
,
deletePerusahaan
,
getDataCurrency
,
deleteReportItems
,
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
953bb3e8
...
...
@@ -2513,14 +2513,15 @@ export default class BudgetTahunan extends Component {
}
handleDownloadReport
(
tableMeta
)
{
let
{
selectReport
,
company
,
periode
,
month
}
=
this
.
state
let
{
selectReport
,
company
,
periode
,
month
,
defaultCurrency
}
=
this
.
state
let
payload
=
{
"company_id"
:
company
.
company_id
,
"year"
:
periode
.
periode
,
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Master Budget"
"type_report_name"
:
"Master Budget"
,
"currency_id"
:
defaultCurrency
.
id
}
// console.log(payload);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/MasterData/Parameter/CreateParameter.js
View file @
953bb3e8
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/BalanceSheetMR.js
View file @
953bb3e8
...
...
@@ -665,14 +665,14 @@ export default class BalanceSheetMR extends Component {
// // console.log(i);
// err = true
// } else
if
(
i
[
18
]
===
""
&&
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
14
]),
1
)
:
Number
(
i
[
14
])
<
this
.
state
.
minValue
||
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
14
]),
1
)
:
Number
(
i
[
14
]
)
>
this
.
state
.
maxValue
))
{
if
(
i
[
18
]
===
""
&&
(
fixNumber
(
Number
(
i
[
14
]),
1
)
<
this
.
state
.
minValue
||
fixNumber
(
Number
(
i
[
14
]),
1
)
>
this
.
state
.
maxValue
))
{
console
.
log
(
'msk 2'
);
err
=
true
}
}
if
(
String
(
i
[
5
])
==
"Control (should be nil)"
)
{
if
(
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
9
]),
1
)
:
Number
(
i
[
9
])
<
this
.
state
.
minValue
||
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
i
[
9
]),
1
)
:
Number
(
i
[
9
]
)
>
this
.
state
.
maxValue
)
{
if
(
fixNumber
(
Number
(
i
[
9
]),
1
)
<
this
.
state
.
minValue
||
fixNumber
(
Number
(
i
[
9
]),
1
)
>
this
.
state
.
maxValue
)
{
errorContrl
=
true
editAble
=
true
}
...
...
@@ -1307,7 +1307,15 @@ export default class BalanceSheetMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
7
?
null
:
// this.state.get_for == 'view'?
this
.
state
.
get_for
==
'view'
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
tableMeta
.
rowData
[
7
]),
1
)
:
Number
(
tableMeta
.
rowData
[
7
])
==
0
?
"0.0"
:
fixNumber
(
Number
(
tableMeta
.
rowData
[
7
]))}
/>
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
@@ -1404,7 +1412,15 @@ export default class BalanceSheetMR extends Component {
<
div
style
=
{{
textAlign
:
'right'
,
width
:
90
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
||
tableMeta
.
rowData
[
0
]
===
1
||
tableMeta
.
rowData
[
0
]
===
7
?
null
:
// this.state.get_for == 'view'?
this
.
state
.
get_for
==
'view'
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
tableMeta
.
rowData
[
8
]),
1
)
:
Number
(
tableMeta
.
rowData
[
8
])
==
0
?
"0.0"
:
fixNumber
(
Number
(
tableMeta
.
rowData
[
8
]))}
/>
:
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
...
...
src/container/MonthlyReport/ListOfCreditFacilitiesMR.js
View file @
953bb3e8
...
...
@@ -1536,14 +1536,14 @@ export default class ListOfCreditFacilities extends Component {
if
(
this
.
props
.
defaultCurrency
.
id
==
1
)
{
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
this
.
state
.
diff
==
null
?
"0.0"
:
fixNumber
(
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
),
1
),
perBS
:
this
.
state
.
totalOutStand
==
null
?
"0.0"
:
this
.
state
.
totalOutStand
})
}
else
{
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
this
.
state
.
diff
==
null
?
"0.0"
:
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
),
perBS
:
this
.
state
.
totalOutStand
==
null
?
"0.0"
:
this
.
state
.
totalOutStand
})
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
this
.
state
.
diff
==
null
?
"0.0"
:
fixNumber
(
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
),
1
),
perBS
:
this
.
state
.
totalOutStand
==
null
?
"0.0"
:
this
.
state
.
totalOutStand
})
}
}
else
{
if
(
this
.
props
.
defaultCurrency
.
id
==
1
)
{
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
fixNumber
(
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
),
1
),
saveDraft
:
false
,
saveComp
:
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
)
==
0
||
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
)
==
"-0.0"
?
false
:
true
})
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
fixNumber
(
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
),
1
),
saveDraft
:
false
,
saveComp
:
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
)
==
0
||
fixNumber
(
Number
(
fixNumber
(
Number
(
totalLoan
),
1
)
-
this
.
state
.
perBS
),
1
)
==
"-0.0"
?
false
:
true
})
}
else
{
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
),
saveDraft
:
false
,
saveComp
:
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
)
==
0
||
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
)
==
"-0.0"
?
false
:
true
})
this
.
setState
({
loading
:
false
,
dataTable
:
newData
,
diff
:
fixNumber
(
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
),
1
),
saveDraft
:
false
,
saveComp
:
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
)
==
0
||
fixNumber
(
Number
(
Number
(
totalLoan
)
-
this
.
state
.
perBS
),
1
)
==
"-0.0"
?
false
:
true
})
}
}
...
...
src/container/MonthlyReport/MonthlyReport.js
View file @
953bb3e8
...
...
@@ -2304,14 +2304,15 @@ export default class MonthlyReport extends Component {
}
handleDownloadReport
(
tableMeta
)
{
let
{
selectReport
,
company
,
periode
,
month
}
=
this
.
state
let
{
selectReport
,
company
,
periode
,
month
,
defaultCurrency
}
=
this
.
state
let
payload
=
{
"company_id"
:
company
.
company_id
,
"year"
:
periode
.
periode
,
"report_id"
:
selectReport
,
"month"
:
month
?
String
(
month
.
month_id
).
toString
()
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Monthly Report"
"type_report_name"
:
"Monthly Report"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/OperatingIndicator/OperatingIndicator.js
View file @
953bb3e8
...
...
@@ -651,14 +651,15 @@ export default class OperatingIndicator extends Component {
}
handleDownloadReport
(
tableMeta
)
{
let
{
selectReport
,
company
,
periode
,
month
}
=
this
.
state
let
{
selectReport
,
company
,
periode
,
month
,
defaultCurrency
}
=
this
.
state
let
payload
=
{
"company_id"
:
company
.
company_id
,
"year"
:
periode
.
periode
,
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Operating Indicator"
"type_report_name"
:
"Operating Indicator"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/OutlookPA/OutlookPA.js
View file @
953bb3e8
...
...
@@ -1538,14 +1538,15 @@ export default class OutlookPA extends Component {
}
handleDownloadReport
(
tableMeta
)
{
let
{
selectReport
,
company
,
periode
,
month
}
=
this
.
state
let
{
selectReport
,
company
,
periode
,
month
,
defaultCurrency
}
=
this
.
state
let
payload
=
{
"company_id"
:
company
.
company_id
,
"year"
:
periode
.
periode
,
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
""
,
"type_report_name"
:
"Outlook PA"
"type_report_name"
:
"Outlook PA"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
src/container/RollingOutlook/BalanceSheetRO.js
View file @
953bb3e8
...
...
@@ -1231,7 +1231,8 @@ export default class BalanceSheetRO extends Component {
placeholder
=
""
// disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
disabled
=
{
this
.
props
.
quarter
==
'q1'
?
false
:
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
(
this
.
props
.
quarter
==
'q2'
||
this
.
props
.
quarter
==
'q3'
?
(
val
==
""
?
""
:
fixNumber
(
Number
(
val
),
1
))
:
fixNumber
(
Number
(
val
),
1
))
:
(
this
.
props
.
quarter
==
'q2'
||
this
.
props
.
quarter
==
'q3'
?
(
val
==
""
?
""
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
))
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
))}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
val
),
1
)
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
)}
// value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val == "" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val == "" ? "" : Number(val) == 0 ? "0.0" : Number(val)) : Number(val) == 0 ? "0.0" : Number(val))}
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
}}
...
...
@@ -2720,7 +2721,7 @@ export default class BalanceSheetRO extends Component {
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
val
),
1
)
:
Number
(
val
)
==
0
?
"0.0"
:
Number
(
val
)}
value
=
{
this
.
props
.
defaultCurrency
.
id
==
1
?
fixNumber
(
Number
(
val
),
1
)
:
Number
(
val
)
==
0
?
"0.0"
:
fixNumber
(
Number
(
val
),
1
)}
/
>
:
tableMeta
.
rowData
[
0
]
===
2
?
...
...
src/container/RollingOutlook/RollingOutlook.js
View file @
953bb3e8
...
...
@@ -1553,14 +1553,15 @@ export default class RollingOutlook extends Component {
}
handleDownloadReport
(
tableMeta
)
{
let
{
selectReport
,
company
,
periode
,
quarter
}
=
this
.
state
let
{
selectReport
,
company
,
periode
,
quarter
,
defaultCurrency
}
=
this
.
state
let
payload
=
{
"company_id"
:
company
.
company_id
,
"year"
:
periode
.
periode
,
"report_id"
:
selectReport
,
"month"
:
""
,
"quartal"
:
quarter
?
quarter
.
value
:
""
,
"type_report_name"
:
"Rolling Outlook"
"type_report_name"
:
"Rolling Outlook"
,
"currency_id"
:
defaultCurrency
.
id
}
console
.
log
(
payload
);
api
.
create
().
createDownloadFile
(
payload
).
then
((
response
)
=>
{
...
...
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