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
5cda3348
Commit
5cda3348
authored
Feb 10, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into GGMAC
parents
c0917de0
b7ae1996
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
53 deletions
+53
-53
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+52
-52
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+1
-1
No files found.
src/container/Laporan/TableSubHolding.js
View file @
5cda3348
...
...
@@ -1170,7 +1170,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[7]).toFixed(
2
)}
value={Number(tableMeta.rowData[7]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1193,7 +1193,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[8]).toFixed(
2
)}
value={Number(tableMeta.rowData[8]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1216,7 +1216,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[9]).toFixed(
2
)}
value={Number(tableMeta.rowData[9]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1239,7 +1239,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[10]).toFixed(
2
)}
value={Number(tableMeta.rowData[10]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1264,7 +1264,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[11]).toFixed(
2
)}
value={Number(tableMeta.rowData[11]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1287,7 +1287,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[12]).toFixed(
2
)}
value={Number(tableMeta.rowData[12]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1310,7 +1310,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[13]).toFixed(
2
)}
value={Number(tableMeta.rowData[13]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1333,7 +1333,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[14]).toFixed(
2
)}
value={Number(tableMeta.rowData[14]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1358,7 +1358,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[15]).toFixed(
2
)}
value={Number(tableMeta.rowData[15]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1381,7 +1381,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[16]).toFixed(
2
)}
value={Number(tableMeta.rowData[16]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1404,7 +1404,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[17]).toFixed(
2
)}
value={Number(tableMeta.rowData[17]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1427,7 +1427,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[18]).toFixed(
2
)}
value={Number(tableMeta.rowData[18]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1525,7 +1525,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[20]).toFixed(
2
)}
value={Number(tableMeta.rowData[20]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1570,7 +1570,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[21]).toFixed(
2
)}
value={Number(tableMeta.rowData[21]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1679,7 +1679,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[25]) === "" ? "" : Number(tableMeta.rowData[25]).toFixed(
2
)}
value={String(tableMeta.rowData[25]) === "" ? "" : Number(tableMeta.rowData[25]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1702,7 +1702,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[26]) === "" ? "" : Number(tableMeta.rowData[26]).toFixed(
2
)}
value={String(tableMeta.rowData[26]) === "" ? "" : Number(tableMeta.rowData[26]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1725,7 +1725,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[27]) === "" ? "" : Number(tableMeta.rowData[27]).toFixed(
2
)}
value={String(tableMeta.rowData[27]) === "" ? "" : Number(tableMeta.rowData[27]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1748,7 +1748,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[28]) === "" ? "" : Number(tableMeta.rowData[28]).toFixed(
2
)}
value={String(tableMeta.rowData[28]) === "" ? "" : Number(tableMeta.rowData[28]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1773,7 +1773,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[29]) === "" ? "" : Number(tableMeta.rowData[29]).toFixed(
2
)}
value={String(tableMeta.rowData[29]) === "" ? "" : Number(tableMeta.rowData[29]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1796,7 +1796,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[30]) === "" ? "" : Number(tableMeta.rowData[30]).toFixed(
2
)}
value={String(tableMeta.rowData[30]) === "" ? "" : Number(tableMeta.rowData[30]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1819,7 +1819,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[31]) === "" ? "" : Number(tableMeta.rowData[31]).toFixed(
2
)}
value={String(tableMeta.rowData[31]) === "" ? "" : Number(tableMeta.rowData[31]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1842,7 +1842,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[32]) === "" ? "" : Number(tableMeta.rowData[32]).toFixed(
2
)}
value={String(tableMeta.rowData[32]) === "" ? "" : Number(tableMeta.rowData[32]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1867,7 +1867,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[33]) === "" ? "" : Number(tableMeta.rowData[33]).toFixed(
2
)}
value={String(tableMeta.rowData[33]) === "" ? "" : Number(tableMeta.rowData[33]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1890,7 +1890,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[34]) === "" ? "" : Number(tableMeta.rowData[34]).toFixed(
2
)}
value={String(tableMeta.rowData[34]) === "" ? "" : Number(tableMeta.rowData[34]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1913,7 +1913,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[35]) === "" ? "" : Number(tableMeta.rowData[35]).toFixed(
2
)}
value={String(tableMeta.rowData[35]) === "" ? "" : Number(tableMeta.rowData[35]).toFixed(
1
)}
/>
}
/>
...
...
@@ -1936,7 +1936,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[36]) === "" ? "" : Number(tableMeta.rowData[36]).toFixed(
2
)}
value={String(tableMeta.rowData[36]) === "" ? "" : Number(tableMeta.rowData[36]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2603,7 +2603,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[7]).toFixed(
2
)}
value={Number(tableMeta.rowData[7]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2626,7 +2626,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[8]).toFixed(
2
)}
value={Number(tableMeta.rowData[8]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2649,7 +2649,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[9]).toFixed(
2
)}
value={Number(tableMeta.rowData[9]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2672,7 +2672,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[10]).toFixed(
2
)}
value={Number(tableMeta.rowData[10]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2697,7 +2697,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[11]).toFixed(
2
)}
value={Number(tableMeta.rowData[11]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2720,7 +2720,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[12]).toFixed(
2
)}
value={Number(tableMeta.rowData[12]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2743,7 +2743,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[13]).toFixed(
2
)}
value={Number(tableMeta.rowData[13]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2766,7 +2766,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[14]).toFixed(
2
)}
value={Number(tableMeta.rowData[14]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2791,7 +2791,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[15]).toFixed(
2
)}
value={Number(tableMeta.rowData[15]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2814,7 +2814,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[16]).toFixed(
2
)}
value={Number(tableMeta.rowData[16]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2837,7 +2837,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[17]).toFixed(
2
)}
value={Number(tableMeta.rowData[17]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2860,7 +2860,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[18]).toFixed(
2
)}
value={Number(tableMeta.rowData[18]).toFixed(
1
)}
/>
}
/>
...
...
@@ -2958,7 +2958,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[20]).toFixed(
2
)}
value={Number(tableMeta.rowData[20]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3003,7 +3003,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[21]).toFixed(
2
)}
value={Number(tableMeta.rowData[21]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3112,7 +3112,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[23]) === "" ? "" : Number(tableMeta.rowData[23]).toFixed(
2
)}
value={String(tableMeta.rowData[23]) === "" ? "" : Number(tableMeta.rowData[23]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3135,7 +3135,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[24]) === "" ? "" : Number(tableMeta.rowData[24]).toFixed(
2
)}
value={String(tableMeta.rowData[24]) === "" ? "" : Number(tableMeta.rowData[24]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3158,7 +3158,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[25]) === "" ? "" : Number(tableMeta.rowData[25]).toFixed(
2
)}
value={String(tableMeta.rowData[25]) === "" ? "" : Number(tableMeta.rowData[25]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3181,7 +3181,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[26]) === "" ? "" : Number(tableMeta.rowData[26]).toFixed(
2
)}
value={String(tableMeta.rowData[26]) === "" ? "" : Number(tableMeta.rowData[26]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3206,7 +3206,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[27]) === "" ? "" : Number(tableMeta.rowData[27]).toFixed(
2
)}
value={String(tableMeta.rowData[27]) === "" ? "" : Number(tableMeta.rowData[27]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3229,7 +3229,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[28]) === "" ? "" : Number(tableMeta.rowData[28]).toFixed(
2
)}
value={String(tableMeta.rowData[28]) === "" ? "" : Number(tableMeta.rowData[28]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3252,7 +3252,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[29]) === "" ? "" : Number(tableMeta.rowData[29]).toFixed(
2
)}
value={String(tableMeta.rowData[29]) === "" ? "" : Number(tableMeta.rowData[29]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3275,7 +3275,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[30]) === "" ? "" : Number(tableMeta.rowData[30]).toFixed(
2
)}
value={String(tableMeta.rowData[30]) === "" ? "" : Number(tableMeta.rowData[30]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3300,7 +3300,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[31]) === "" ? "" : Number(tableMeta.rowData[31]).toFixed(
2
)}
value={String(tableMeta.rowData[31]) === "" ? "" : Number(tableMeta.rowData[31]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3323,7 +3323,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[32]) === "" ? "" : Number(tableMeta.rowData[32]).toFixed(
2
)}
value={String(tableMeta.rowData[32]) === "" ? "" : Number(tableMeta.rowData[32]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3346,7 +3346,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[33]) === "" ? "" : Number(tableMeta.rowData[33]).toFixed(
2
)}
value={String(tableMeta.rowData[33]) === "" ? "" : Number(tableMeta.rowData[33]).toFixed(
1
)}
/>
}
/>
...
...
@@ -3369,7 +3369,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[34]) === "" ? "" : Number(tableMeta.rowData[34]).toFixed(
2
)}
value={String(tableMeta.rowData[34]) === "" ? "" : Number(tableMeta.rowData[34]).toFixed(
1
)}
/>
}
/>
src/container/MonthlyReport/ProfitLossMR.js
View file @
5cda3348
...
...
@@ -706,7 +706,7 @@ export default class ProfitLossMR extends Component {
const
handleValue
=
(
value
,
data
)
=>
{
let
total
=
0
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
data
.
rowData
[
1
]
==
item
[
2
])
{
if
(
data
.
rowData
[
1
]
==
item
[
2
]
&&
item
[
0
]
!=
4
)
{
total
=
item
[
10
]
==
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
String
(
item
[
10
]).
includes
(
'-'
)
?
Number
(
String
(
item
[
10
]).
substr
(
1
,
String
(
item
[
10
]).
length
))
*
-
1
:
Number
(
item
[
10
])))
}
})
...
...
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