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
79c9fae8
Commit
79c9fae8
authored
Jan 12, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
b4daa401
fa223e16
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
216 additions
and
159 deletions
+216
-159
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+2
-1
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+2
-1
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+2
-1
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+2
-1
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+2
-1
MonthlyReport.js
src/container/MonthlyReport.js
+13
-11
FixedAssetsMovementMR.js
src/container/MonthlyReport/FixedAssetsMovementMR.js
+14
-6
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+179
-137
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
79c9fae8
...
@@ -323,7 +323,8 @@ export default class BalanceSheet extends Component {
...
@@ -323,7 +323,8 @@ export default class BalanceSheet extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
balance_sheet
:
payload
balance_sheet
:
payload
,
status
:
'submitted'
}
}
// console.log(body)
// console.log(body)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
79c9fae8
...
@@ -425,7 +425,8 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -425,7 +425,8 @@ export default class CorporateAnnualTarget extends Component {
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
status
:
''
,
status
:
''
,
cat
:
payload
cat
:
payload
,
status
:
'submitted'
}
}
// // // // console.log(body)
// // // // console.log(body)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
]
})
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
79c9fae8
...
@@ -318,7 +318,8 @@ export default class FixedAssetsMovement extends Component {
...
@@ -318,7 +318,8 @@ export default class FixedAssetsMovement extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
fixed_asset_movement
:
payload
fixed_asset_movement
:
payload
,
status
:
'submitted'
}
}
// // console.log(body)
// // console.log(body)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
79c9fae8
...
@@ -332,7 +332,8 @@ export default class ProfitLoss extends Component {
...
@@ -332,7 +332,8 @@ export default class ProfitLoss extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
profit_loss
:
payload
profit_loss
:
payload
,
status
:
'submitted'
}
}
// console.log(isi)
// console.log(isi)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
79c9fae8
...
@@ -454,7 +454,8 @@ export default class TaxPlanning extends Component {
...
@@ -454,7 +454,8 @@ export default class TaxPlanning extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
tax_planning
:
payload
tax_planning
:
payload
,
status
:
'submitted'
}
}
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
}
}
...
...
src/container/MonthlyReport.js
View file @
79c9fae8
...
@@ -801,17 +801,19 @@ export default class MonthlyReport extends Component {
...
@@ -801,17 +801,19 @@ export default class MonthlyReport extends Component {
<
span
>
COMPLETED
<
/span>
:
<
span
>
COMPLETED
<
/span>
:
val
===
"draft"
?
val
===
"draft"
?
<
span
>
DRAFT
<
/span>
:
<
span
>
DRAFT
<
/span>
:
val
===
"revision"
?
val
===
"incomplete"
?
<
span
>
REVISION
<
/span>
:
<
span
>
INCOMPLETE
<
/span>
:
val
===
"approval_proccess"
?
val
===
"revision"
?
<
span
>
APPROVAL
PROCCESS
<
/span>
:
<
span
>
REVISION
<
/span>
:
val
===
"approval_review"
?
val
===
"approval_proccess"
?
<
span
>
APPROVAL
REVIEW
<
/span>
:
<
span
>
APPROVAL
PROCCESS
<
/span>
:
val
===
"not-yet"
?
val
===
"approval_review"
?
<
span
>
OPEN
<
/span>
:
<
span
>
APPROVAL
REVIEW
<
/span>
:
val
===
"CLOSED"
?
val
===
"not-yet"
?
<
span
>
CLOSED
<
/span>
:
<
span
>
OPEN
<
/span>
:
<
img
src
=
{
Images
.
cross
}
style
=
{{
width
:
31
,
height
:
24
}}
/
>
val
===
"CLOSED"
?
<
span
>
CLOSED
<
/span>
:
<
img
src
=
{
Images
.
cross
}
style
=
{{
width
:
31
,
height
:
24
}}
/
>
}
}
<
/div
>
<
/div
>
);
);
...
...
src/container/MonthlyReport/FixedAssetsMovementMR.js
View file @
79c9fae8
...
@@ -281,7 +281,8 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -281,7 +281,8 @@ export default class FixedAssetsMovementMR extends Component {
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
months
:
this
.
props
.
month
.
month_id
,
months
:
this
.
props
.
month
.
month_id
,
fixed_asset_movement
:
payload
fixed_asset_movement
:
payload
,
status
:
'submitted'
}
}
// console.log(body)
// console.log(body)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
...
@@ -293,7 +294,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -293,7 +294,7 @@ export default class FixedAssetsMovementMR extends Component {
api
.
create
().
checkUploadMonthlyReportFAM
(
this
.
state
.
payload
).
then
(
response
=>
{
api
.
create
().
checkUploadMonthlyReportFAM
(
this
.
state
.
payload
).
then
(
response
=>
{
// console.log(JSON.stringify(this.state.payload));
// console.log(JSON.stringify(this.state.payload));
// console.log(this.state.payload)
// console.log(this.state.payload)
//
console.log(response)
console
.
log
(
response
)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
visibleUpload
:
false
,
loading
:
true
,
visibleFAMMR
:
false
})
this
.
setState
({
visibleUpload
:
false
,
loading
:
true
,
visibleFAMMR
:
false
})
...
@@ -323,7 +324,7 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -323,7 +324,7 @@ export default class FixedAssetsMovementMR extends Component {
// console.log(dataTable)
// console.log(dataTable)
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
},
()
=>
{
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
1
8
].
length
>
0
)
{
if
(
item
[
1
5
].
length
>
0
)
{
console
.
log
(
'masuk'
)
console
.
log
(
'masuk'
)
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
})
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
})
}
}
...
@@ -367,7 +368,8 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -367,7 +368,8 @@ export default class FixedAssetsMovementMR extends Component {
// console.log(response);
// console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
// this.props.onClickClose()
this
.
props
.
saveToMonthlyReport
()
// this.props.getReport()
// this.props.getReport()
}
else
{
}
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
},
()
=>
{
...
@@ -701,6 +703,8 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -701,6 +703,8 @@ export default class FixedAssetsMovementMR extends Component {
// console.log(tableMeta.rowData[7]);
// console.log(tableMeta.rowData[7]);
// console.log(total)
// console.log(total)
}
}
// console.log(dex)
// console.log(Number(tableMeta.columnIndex) + Number(type))
return
total
return
total
}
}
...
@@ -728,6 +732,8 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -728,6 +732,8 @@ export default class FixedAssetsMovementMR extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
+
type
]
=
Number
(
total
).
toFixed
(
1
)
// console.log(total);
// console.log(total);
}
}
// console.log(dex)
// console.log(Number(tableMeta.columnIndex) + Number(type))
return
total
*
100
return
total
*
100
}
}
...
@@ -1073,7 +1079,8 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1073,7 +1079,8 @@ export default class FixedAssetsMovementMR extends Component {
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
suffix
=
{
'%'
}
suffix
=
{
'%'
}
value
=
{
Number
(
handleVariancePercent
(
tableMeta
,
2
,
5
)).
toFixed
(
1
)}
// value={0}
value
=
{
Number
(
handleVariancePercent
(
tableMeta
,
2
,
3
)).
toFixed
(
1
)}
/
>
/
>
}
}
/
>
/
>
...
@@ -1157,7 +1164,8 @@ export default class FixedAssetsMovementMR extends Component {
...
@@ -1157,7 +1164,8 @@ export default class FixedAssetsMovementMR extends Component {
placeholder
=
""
placeholder
=
""
disabled
=
{
true
}
disabled
=
{
true
}
suffix
=
{
'%'
}
suffix
=
{
'%'
}
value
=
{
Number
(
handleVariancePercent
(
tableMeta
,
3
,
7
)).
toFixed
(
1
)}
// value={0}
value
=
{
Number
(
handleVariancePercent
(
tableMeta
,
3
,
5
)).
toFixed
(
1
)}
/
>
/
>
}
}
/
>
/
>
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
79c9fae8
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