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
29fbe4f4
Commit
29fbe4f4
authored
Nov 28, 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
21304aaf
8aed1c07
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
409 additions
and
69 deletions
+409
-69
index.js
src/api/index.js
+2
-1
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+10
-3
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+12
-12
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+242
-11
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+143
-42
No files found.
src/api/index.js
View file @
29fbe4f4
...
@@ -278,7 +278,7 @@ const create = (type = "") => {
...
@@ -278,7 +278,7 @@ const create = (type = "") => {
const
getHierarkiMontlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/get_report_hierarki'
,
body
)
const
getHierarkiMontlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/get_report_hierarki'
,
body
)
const
createMonthlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/create_monthly_report'
,
body
)
const
createMonthlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/create_monthly_report'
,
body
)
const
checkUploadMonthlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/check_import'
,
body
)
const
checkUploadMonthlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/check_import'
,
body
)
const
uploadMonthlyReportPL
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report_pl/import_monthly_report'
,
body
)
//Template
//Template
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
...
@@ -486,6 +486,7 @@ const create = (type = "") => {
...
@@ -486,6 +486,7 @@ const create = (type = "") => {
getHierarkiMontlyReportFAM
,
getHierarkiMontlyReportFAM
,
checkUploadMonthlyReportTP
,
checkUploadMonthlyReportTP
,
checkUploadMonthlyReportFAM
,
checkUploadMonthlyReportFAM
,
uploadMonthlyReportPL
,
getMonthlyReport
getMonthlyReport
}
}
}
}
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
29fbe4f4
...
@@ -663,9 +663,16 @@ export default class FixedAssetsMovement extends Component {
...
@@ -663,9 +663,16 @@ export default class FixedAssetsMovement extends Component {
const
handleForecast
=
(
tableMeta
,
periode
)
=>
{
const
handleForecast
=
(
tableMeta
,
periode
)
=>
{
let
total
=
0
let
total
=
0
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'gain/ (loss) on fixed assets'
||
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'ending balance'
||
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'beginning balance'
)
{
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'gain/ (loss) on fixed assets'
||
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'ending balance'
||
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'beginning balance'
)
{
let
indexID
=
dataTable2
[
tableMeta
.
rowIndex
][
23
].
findIndex
((
val
)
=>
val
.
periode
==
periode
)
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
'beginning balance'
)
{
if
(
indexID
!==
-
1
)
{
let
indexID
=
dataTable2
.
findIndex
((
val
,
index
)
=>
String
(
val
[
5
]).
toLocaleLowerCase
()
==
'ending balance'
&&
dataTable2
[
index
-
1
][
2
]
==
tableMeta
.
rowData
[
2
])
total
=
dataTable2
[
tableMeta
.
rowIndex
][
23
][
indexID
].
value
if
(
indexID
!==
-
1
)
{
total
=
dataTable2
[
indexID
][
18
].
value
}
}
else
{
let
indexID
=
dataTable2
[
tableMeta
.
rowIndex
][
23
].
findIndex
((
val
)
=>
val
.
periode
==
periode
)
if
(
indexID
!==
-
1
)
{
total
=
dataTable2
[
tableMeta
.
rowIndex
][
23
][
indexID
].
value
}
}
}
}
else
{
}
else
{
total
=
handleValueFormula
(
tableMeta
.
columnIndex
,
tableMeta
)
total
=
handleValueFormula
(
tableMeta
.
columnIndex
,
tableMeta
)
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
29fbe4f4
...
@@ -104,7 +104,7 @@ export default class ProfitLoss extends Component {
...
@@ -104,7 +104,7 @@ export default class ProfitLoss extends Component {
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
}
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
let
dataTable
=
[]
let
dataTable
=
[]
this
.
setState
({
visibleProfitLoss
:
true
})
this
.
setState
({
visibleProfitLoss
:
true
})
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -141,10 +141,10 @@ export default class ProfitLoss extends Component {
...
@@ -141,10 +141,10 @@ export default class ProfitLoss extends Component {
item
.
order
item
.
order
])
])
}
}
if
(
item
.
id
===
20092
)
{
//
if (item.id === 20092) {
console
.
log
(
item
);
//
console.log(item);
console
.
log
(
dataTable
);
//
console.log(dataTable);
}
//
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
...
@@ -188,7 +188,7 @@ export default class ProfitLoss extends Component {
...
@@ -188,7 +188,7 @@ export default class ProfitLoss extends Component {
}
}
}
}
})
})
console
.
log
(
dataTable
)
//
console.log(dataTable)
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
},
()
=>
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
},
()
=>
{
})
})
}
else
{
}
else
{
...
@@ -422,8 +422,8 @@ export default class ProfitLoss extends Component {
...
@@ -422,8 +422,8 @@ export default class ProfitLoss extends Component {
profit_loss
:
data
,
profit_loss
:
data
,
status
:
type
status
:
type
}
}
console
.
log
(
this
.
state
.
dataTable
);
//
console.log(this.state.dataTable);
console
.
log
(
JSON
.
stringify
(
body
));
//
console.log(JSON.stringify(body));
api
.
create
(
'UPLOAD'
).
uploadMasterBudget
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadMasterBudget
(
body
).
then
(
response
=>
{
// console.log(response);
// console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -635,10 +635,10 @@ export default class ProfitLoss extends Component {
...
@@ -635,10 +635,10 @@ export default class ProfitLoss extends Component {
}
}
})
})
if
(
tableMeta
.
rowData
[
1
]
===
20092
)
{
//
if (tableMeta.rowData[1] === 20092) {
console
.
log
(
total
);
//
console.log(total);
console
.
log
(
arrayJumlah
);
//
console.log(arrayJumlah);
}
//
}
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === "" || dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === undefined || dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === null) {
// if (dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === "" || dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === undefined || dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] === null) {
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
total
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
total
)
// }
// }
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
29fbe4f4
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/ProfitLossMR.js
View file @
29fbe4f4
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