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
fde3083b
Commit
fde3083b
authored
Sep 27, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
Deni dev(pc) See merge request
!375
parents
90c3e505
0db200dd
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
254 additions
and
142 deletions
+254
-142
index.js
src/api/index.js
+3
-1
BudgetTahunan.js
src/container/BudgetTahunan.js
+4
-2
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+15
-6
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+163
-58
ReportItems.js
src/container/MasterData/ReportItems.js
+67
-73
CreateReportItems.js
...container/MasterData/formReportItems/CreateReportItems.js
+2
-2
No files found.
src/api/index.js
View file @
fde3083b
...
@@ -198,6 +198,7 @@ const create = (type = "") => {
...
@@ -198,6 +198,7 @@ const create = (type = "") => {
const
uploadMasterBudget
=
(
body
)
=>
api
.
post
(
'transaction/master_budget/import_master_budget'
,
body
)
const
uploadMasterBudget
=
(
body
)
=>
api
.
post
(
'transaction/master_budget/import_master_budget'
,
body
)
const
validateSubmitReport
=
(
body
)
=>
api
.
post
(
'transaction/master_budget/validate_save'
,
body
)
const
validateSubmitReport
=
(
body
)
=>
api
.
post
(
'transaction/master_budget/validate_save'
,
body
)
const
getMonthTransaction
=
()
=>
api
.
get
(
'transaction/get_default_month'
)
const
getMonthTransaction
=
()
=>
api
.
get
(
'transaction/get_default_month'
)
const
countingFormula
=
(
body
)
=>
api
.
post
(
'transaction/counting_formula'
,
body
)
const
getOpetratingIndID
=
(
body
)
=>
api
.
post
(
'transaction/get_operating_indicator_id'
,
body
)
const
getOpetratingIndID
=
(
body
)
=>
api
.
post
(
'transaction/get_operating_indicator_id'
,
body
)
const
getAllOperatingInd
=
(
body
)
=>
api
.
post
(
'transaction/get_all_operating_indicator_report'
,
body
)
const
getAllOperatingInd
=
(
body
)
=>
api
.
post
(
'transaction/get_all_operating_indicator_report'
,
body
)
...
@@ -350,7 +351,8 @@ const create = (type = "") => {
...
@@ -350,7 +351,8 @@ const create = (type = "") => {
validateSubmitReport
,
validateSubmitReport
,
checkUploadOperatingInd
,
checkUploadOperatingInd
,
uploadOperatingInd
,
uploadOperatingInd
,
getLastestUpdateMB
getLastestUpdateMB
,
countingFormula
}
}
}
}
...
...
src/container/BudgetTahunan.js
View file @
fde3083b
...
@@ -208,11 +208,12 @@ export default class BudgetTahunan extends Component {
...
@@ -208,11 +208,12 @@ export default class BudgetTahunan extends Component {
})
})
}
}
clickDetail
(
item
,
id
,
revision
)
{
clickDetail
(
item
,
id
,
revision
,
status
)
{
console
.
log
(
item
);
console
.
log
(
item
);
this
.
setState
({
this
.
setState
({
report_id
:
id
,
report_id
:
id
,
revisionTable
:
revision
,
revisionTable
:
revision
,
status
:
status
},
()
=>
{
},
()
=>
{
if
(
item
===
'Balance Sheet'
)
{
if
(
item
===
'Balance Sheet'
)
{
this
.
setState
({
this
.
setState
({
...
@@ -415,7 +416,7 @@ export default class BudgetTahunan extends Component {
...
@@ -415,7 +416,7 @@ export default class BudgetTahunan extends Component {
borderColor
:
'transparent'
borderColor
:
'transparent'
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
tableMeta
.
rowData
[
5
]
?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
])
:
null
tableMeta
.
rowData
[
5
]
?
this
.
clickDetail
(
tableMeta
.
rowData
[
1
],
tableMeta
.
rowData
[
4
],
tableMeta
.
rowData
[
2
]
,
tableMeta
.
rowData
[
3
]
)
:
null
}
}
>
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
5
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
<
Typography
style
=
{{
color
:
tableMeta
.
rowData
[
5
]
?
'#5198ea'
:
'GrayText'
,
fontSize
:
12
,
}}
>
Detail
<
/Typography
>
...
@@ -653,6 +654,7 @@ export default class BudgetTahunan extends Component {
...
@@ -653,6 +654,7 @@ export default class BudgetTahunan extends Component {
saveToMasterBudget
=
{
this
.
saveToMasterBudget
.
bind
(
this
)}
saveToMasterBudget
=
{
this
.
saveToMasterBudget
.
bind
(
this
)}
onClickClose
=
{()
=>
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
})}
onClickClose
=
{()
=>
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
})}
getReport
=
{
this
.
getReport
.
bind
(
this
)}
getReport
=
{
this
.
getReport
.
bind
(
this
)}
status
=
{
this
.
state
.
status
}
/
>
/
>
)}
)}
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
fde3083b
...
@@ -115,7 +115,8 @@ export default class BalanceSheet extends Component {
...
@@ -115,7 +115,8 @@ export default class BalanceSheet extends Component {
item
.
balance_sheet
.
december
,
item
.
balance_sheet
.
december
,
item
.
balance_sheet
.
total_current_year
,
item
.
balance_sheet
.
total_current_year
,
item
.
balance_sheet
.
total_next_year
,
item
.
balance_sheet
.
total_next_year
,
item
.
balance_sheet
.
total_more_year
item
.
balance_sheet
.
total_more_year
,
item
.
order
])
])
}
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
!==
null
)
{
...
@@ -149,7 +150,8 @@ export default class BalanceSheet extends Component {
...
@@ -149,7 +150,8 @@ export default class BalanceSheet extends Component {
item
.
balance_sheet
.
december
,
item
.
balance_sheet
.
december
,
item
.
balance_sheet
.
total_current_year
,
item
.
balance_sheet
.
total_current_year
,
item
.
balance_sheet
.
total_next_year
,
item
.
balance_sheet
.
total_next_year
,
item
.
balance_sheet
.
total_more_year
item
.
balance_sheet
.
total_more_year
,
item
.
order
])
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
if
(
item
.
children
.
length
>
0
)
{
...
@@ -323,12 +325,13 @@ export default class BalanceSheet extends Component {
...
@@ -323,12 +325,13 @@ export default class BalanceSheet extends Component {
item
.
total_current_year
,
item
.
total_current_year
,
item
.
total_next_year
,
item
.
total_next_year
,
item
.
total_more_year
,
item
.
total_more_year
,
item
.
order
,
item
.
error
item
.
error
]
]
})
})
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
},
()
=>
{
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
2
2
].
length
>
0
)
{
if
(
item
[
2
3
].
length
>
0
)
{
console
.
log
(
'masuk'
)
console
.
log
(
'masuk'
)
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
})
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
})
}
}
...
@@ -491,7 +494,7 @@ export default class BalanceSheet extends Component {
...
@@ -491,7 +494,7 @@ export default class BalanceSheet extends Component {
let
arrayFormula
=
tableMeta
.
rowData
[
3
].
match
(
/
[
a-zA-Z
]
+|
[
0-9
]
+|
[
-!$%^&*()_+|~=`{}
\[\]
:";'<>?,.
\/]
+
(?:\.[
0-9
]
+@|
)
/g
)
let
arrayFormula
=
tableMeta
.
rowData
[
3
].
match
(
/
[
a-zA-Z
]
+|
[
0-9
]
+|
[
-!$%^&*()_+|~=`{}
\[\]
:";'<>?,.
\/]
+
(?:\.[
0-9
]
+@|
)
/g
)
let
arrayJumlah
=
[]
let
arrayJumlah
=
[]
arrayFormula
.
map
((
item
,
indexs
)
=>
{
arrayFormula
.
map
((
item
,
indexs
)
=>
{
let
index
=
dataTable2
.
findIndex
((
val
)
=>
val
[
1
]
==
item
)
let
index
=
dataTable2
.
findIndex
((
val
)
=>
val
[
22
]
==
item
)
if
(
index
>
0
)
{
if
(
index
>
0
)
{
arrayJumlah
.
push
(
dataTable2
[
index
][
tableMeta
.
columnIndex
])
arrayJumlah
.
push
(
dataTable2
[
index
][
tableMeta
.
columnIndex
])
}
else
{
}
else
{
...
@@ -569,8 +572,8 @@ export default class BalanceSheet extends Component {
...
@@ -569,8 +572,8 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
width
:
300
}}
>
<
div
style
=
{{
width
:
300
}}
>
{
tableMeta
.
rowData
[
2
2
]
?
{
tableMeta
.
rowData
[
2
3
]
?
tableMeta
.
rowData
[
2
2
].
length
>
0
?
tableMeta
.
rowData
[
2
3
].
length
>
0
?
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
<
LightTooltip
title
=
{
"Report Items Not Registered"
}
arrow
>
<
LightTooltip
title
=
{
"Report Items Not Registered"
}
arrow
>
<
span
style
=
{{
fontSize
:
12
,
color
:
'red'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
color
:
'red'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
...
@@ -1936,6 +1939,12 @@ export default class BalanceSheet extends Component {
...
@@ -1936,6 +1939,12 @@ export default class BalanceSheet extends Component {
}
}
}
}
},
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
{
name
:
""
,
name
:
""
,
options
:
{
options
:
{
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
fde3083b
This diff is collapsed.
Click to expand it.
src/container/MasterData/ReportItems.js
View file @
fde3083b
This diff is collapsed.
Click to expand it.
src/container/MasterData/formReportItems/CreateReportItems.js
View file @
fde3083b
...
@@ -203,8 +203,8 @@ export default class CreateReportItems extends Component {
...
@@ -203,8 +203,8 @@ export default class CreateReportItems extends Component {
"weight"
:
this
.
state
.
weight
,
"weight"
:
this
.
state
.
weight
,
"condition_if_wrong"
:
this
.
state
.
condition
,
"condition_if_wrong"
:
this
.
state
.
condition
,
"condition_it_should_be"
:
this
.
state
.
realVal
,
"condition_it_should_be"
:
this
.
state
.
realVal
,
"type_kpi"
:
this
.
state
.
kpiTypeValue
.
value
,
"type_kpi"
:
this
.
state
.
kpiTypeValue
?
this
.
state
.
kpiTypeValue
.
value
:
null
,
"max_ach"
:
this
.
state
.
maxAchValue
.
value
,
"max_ach"
:
this
.
state
.
maxAchValue
?
this
.
state
.
maxAchValue
.
value
:
null
,
"formula_ytd"
:
this
.
state
.
formulaYTDValue
,
"formula_ytd"
:
this
.
state
.
formulaYTDValue
,
"start_date"
:
this
.
state
.
startDate
,
"start_date"
:
this
.
state
.
startDate
,
"end_date"
:
this
.
state
.
endDate
"end_date"
:
this
.
state
.
endDate
...
...
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