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
5fd8cf97
Commit
5fd8cf97
authored
Nov 29, 2020
by
Faisal Hamdi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
upload plmr ++ See merge request
!717
parents
8aed1c07
10c98a66
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
10 deletions
+136
-10
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+7
-0
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+129
-10
No files found.
src/container/BudgetTahunan/ProfitLoss.js
View file @
5fd8cf97
...
...
@@ -520,6 +520,7 @@ export default class ProfitLoss extends Component {
render
()
{
let
dataTable2
=
this
.
state
.
dataTable
const
handleChange
=
(
value
,
tableMeta
,
type
)
=>
{
console
.
log
(
dataTable2
);
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
)
}
...
...
@@ -540,6 +541,12 @@ export default class ProfitLoss extends Component {
let
value
=
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
2
][
20
])
/
Number
(
dataTable2
[
tableMeta
.
rowIndex
-
1
][
20
])
dataTable2
[
tableMeta
.
rowIndex
][
20
]
=
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
value
return
R
.
equals
(
value
,
NaN
)
?
"0.0"
:
value
}
else
if
(
String
(
tableMeta
.
rowData
[
5
]).
toLocaleLowerCase
()
==
"total man power"
)
{
console
.
log
(
"masuk"
);
console
.
log
(
dataTable2
[
tableMeta
.
rowIndex
][
20
]);
console
.
log
(
dataTable2
[
tableMeta
.
rowIndex
][
19
]);
let
totalTMP
=
dataTable2
[
tableMeta
.
rowIndex
][
20
]
=
dataTable2
[
tableMeta
.
rowIndex
][
19
]
return
totalTMP
}
else
if
(
indexParent
!==
-
1
&&
String
(
dataTable2
[
indexParent
][
5
]).
toLocaleUpperCase
()
==
"GROSS PROFIT MARGIN (% OF REVENUE)"
)
{
return
handleFormula
(
0
,
tableMeta
,
0
)
}
...
...
src/container/MonthlyReport/ProfitLossMR.js
View file @
5fd8cf97
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