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
a0cb8794
Commit
a0cb8794
authored
Sep 17, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet pl
parent
694f3a5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
335 additions
and
301 deletions
+335
-301
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+335
-301
No files found.
src/container/BudgetTahunan/ProfitLoss.js
View file @
a0cb8794
...
@@ -193,7 +193,7 @@ export default class ProfitLoss extends Component {
...
@@ -193,7 +193,7 @@ export default class ProfitLoss extends Component {
"status"
:
type
,
"status"
:
type
,
"profit_loss"
:
data
"profit_loss"
:
data
}
}
console
.
log
(
data
);
console
.
log
(
payload
);
this
.
props
.
saveToMasterBudget
(
payload
)
this
.
props
.
saveToMasterBudget
(
payload
)
this
.
props
.
onClickClose
()
this
.
props
.
onClickClose
()
}
}
...
@@ -245,7 +245,7 @@ export default class ProfitLoss extends Component {
...
@@ -245,7 +245,7 @@ export default class ProfitLoss extends Component {
december
:
i
[
15
]
===
undefined
?
""
:
String
(
i
[
15
]).
trim
(),
december
:
i
[
15
]
===
undefined
?
""
:
String
(
i
[
15
]).
trim
(),
total_current_year
:
i
[
16
]
===
undefined
?
""
:
String
(
i
[
16
]).
trim
(),
total_current_year
:
i
[
16
]
===
undefined
?
""
:
String
(
i
[
16
]).
trim
(),
total_next_year
:
i
[
17
]
===
undefined
?
""
:
String
(
i
[
17
]).
trim
(),
total_next_year
:
i
[
17
]
===
undefined
?
""
:
String
(
i
[
17
]).
trim
(),
total_more_year
:
i
[
1
7
]
===
undefined
?
""
:
String
(
i
[
18
]).
trim
()
total_more_year
:
i
[
1
8
]
===
undefined
?
""
:
String
(
i
[
18
]).
trim
()
})
})
}
}
})
})
...
@@ -404,50 +404,50 @@ export default class ProfitLoss extends Component {
...
@@ -404,50 +404,50 @@ export default class ProfitLoss extends Component {
// console.log(indexParent);
// console.log(indexParent);
return
a
return
a
}
}
const
handleFormula
=
(
data
,
tableMeta
)
=>
{
// const handleFormula = (data, tableMeta) => {
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[1] == item)
if
(
index
>
0
)
{
// if (index > 0) {
arrayJumlah
.
push
(
dataTable2
[
index
][
tableMeta
.
columnIndex
])
// arrayJumlah.push(dataTable2[index][tableMeta.columnIndex])
}
else
{
// } else {
arrayJumlah
.
push
(
item
)
// arrayJumlah.push(item)
}
// if (indexs % 2 !== 0) {
// operator.push(item)
// }
// }
})
// // if (indexs % 2 !== 0) {
let
array
=
arrayJumlah
// // operator.push(item)
let
total
=
0
// // }
let
opt
=
""
// })
array
.
map
((
item
,
index
)
=>
{
// let array = arrayJumlah
if
(
item
==
"+"
)
{
// let total = 0
opt
=
"tambah"
// let opt = ""
}
else
if
(
item
==
"-"
)
{
// array.map((item, index) => {
opt
=
"kurang"
// if (item == "+") {
}
else
if
(
item
==
"*"
)
{
// opt = "tambah"
opt
=
"kali"
// } else if (item == "-") {
}
else
if
(
item
==
"/"
)
{
// opt = "kurang"
opt
=
"bagi"
// } else if (item == "*") {
}
else
{
// opt = "kali"
if
(
opt
==
"tambah"
)
{
// } else if (item == "/") {
total
=
Number
(
total
)
+
Number
(
item
)
// opt = "bagi"
}
else
if
(
opt
==
"kurang"
)
{
// } else {
total
=
Number
(
total
)
-
Number
(
item
)
// if (opt == "tambah") {
}
else
if
(
opt
==
"kali"
)
{
// total = Number(total) + Number(item)
total
=
Number
(
total
)
*
Number
(
item
)
// } else if (opt == "kurang") {
}
else
if
(
opt
==
"bagi"
)
{
// total = Number(total) - Number(item)
total
=
Number
(
total
)
/
Number
(
item
)
// } else if (opt == "kali") {
}
else
{
// total = Number(total) * Number(item)
total
+=
item
// } else if (opt == "bagi") {
}
// total = Number(total) / Number(item)
}
// } else {
})
// total += item
let
a
=
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
total
)
// }
return
a
// }
// })
// let a = dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = Number(total)
// return a
}
//
}
const
columns
=
[{
const
columns
=
[{
name
:
""
,
name
:
""
,
...
@@ -614,24 +614,26 @@ export default class ProfitLoss extends Component {
...
@@ -614,24 +614,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -700,24 +702,26 @@ export default class ProfitLoss extends Component {
...
@@ -700,24 +702,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -786,24 +790,26 @@ export default class ProfitLoss extends Component {
...
@@ -786,24 +790,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -872,24 +878,26 @@ export default class ProfitLoss extends Component {
...
@@ -872,24 +878,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -958,24 +966,26 @@ export default class ProfitLoss extends Component {
...
@@ -958,24 +966,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1044,24 +1054,26 @@ export default class ProfitLoss extends Component {
...
@@ -1044,24 +1054,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1130,24 +1142,26 @@ export default class ProfitLoss extends Component {
...
@@ -1130,24 +1142,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1216,24 +1230,26 @@ export default class ProfitLoss extends Component {
...
@@ -1216,24 +1230,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1302,24 +1318,26 @@ export default class ProfitLoss extends Component {
...
@@ -1302,24 +1318,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1388,24 +1406,26 @@ export default class ProfitLoss extends Component {
...
@@ -1388,24 +1406,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1474,24 +1494,28 @@ export default class ProfitLoss extends Component {
...
@@ -1474,24 +1494,28 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1560,24 +1584,26 @@ export default class ProfitLoss extends Component {
...
@@ -1560,24 +1584,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1646,24 +1672,26 @@ export default class ProfitLoss extends Component {
...
@@ -1646,24 +1672,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1732,24 +1760,26 @@ export default class ProfitLoss extends Component {
...
@@ -1732,24 +1760,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1818,24 +1848,26 @@ export default class ProfitLoss extends Component {
...
@@ -1818,24 +1848,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
@@ -1904,24 +1936,26 @@ export default class ProfitLoss extends Component {
...
@@ -1904,24 +1936,26 @@ export default class ProfitLoss extends Component {
null
null
:
:
tableMeta
.
rowData
[
0
]
===
6
?
tableMeta
.
rowData
[
0
]
===
6
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
5
?
tableMeta
.
rowData
[
0
]
===
5
?
<
NumberFormat
// <NumberFormat
thousandSeparator
=
{
true
}
// thousandSeparator={true}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type
=
"text"
// type="text"
placeholder
=
""
// placeholder=""
disabled
=
{
true
}
// disabled={true}
value
=
{
handleFormula
(
value
,
tableMeta
)}
// value={handleFormula(value, tableMeta)}
/
>
// />
null
:
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
value
===
""
?
value
===
""
?
...
...
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