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
6579f396
Commit
6579f396
authored
Mar 09, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
baru get hierarki aja gan
parent
8b1a3de9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
218 additions
and
451 deletions
+218
-451
index.js
src/api/index.js
+2
-1
RollingOutlook.js
src/container/RollingOutlook.js
+2
-1
TaxPlanningRO.js
src/container/RollingOutlook/TaxPlanningRO.js
+214
-449
No files found.
src/api/index.js
View file @
6579f396
...
...
@@ -245,7 +245,7 @@ const create = (type = "") => {
const
getRollingOutlookBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/rolling_outlook/get_report_hierarki'
,
body
)
const
createRollingOutlookBS
=
(
body
)
=>
api
.
post
(
'transaction/balance_sheet/rolling_outlook/create_rolling_outlook'
,
body
)
const
getRollingOutlookPL
=
(
body
)
=>
api
.
post
(
'transaction/profit_loss/rolling_outlook/get_report_hierarki'
,
body
)
const
getRollingOutlookTP
=
(
body
)
=>
api
.
post
(
'transaction/rolling_outlook/tax_planning/get_report_hierarki'
,
body
)
//REPORT NEW
const
getAllReportBS
=
(
body
)
=>
api
.
post
(
'/transaction/db_balance_sheet/get_report_hierarki'
,
body
)
...
...
@@ -699,6 +699,7 @@ const create = (type = "") => {
getRollingOutlookID
,
getRollingOutlookBS
,
createRollingOutlookBS
,
getRollingOutlookTP
,
getAllMasterDataCat
,
getParentItemReport
,
saveMasterDataCat
,
...
...
src/container/RollingOutlook.js
View file @
6579f396
...
...
@@ -327,7 +327,7 @@ export default class RollingOutlook extends Component {
options
:
periodeData
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
};
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
this
.
state
.
la
stPeriod
))
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
this
.
state
.
la
testPeriode
))
// console.log(data)
console
.
log
(
this
.
state
.
lastPeriod
)
// console.log(periodeData)
...
...
@@ -1241,6 +1241,7 @@ export default class RollingOutlook extends Component {
onClickClose
=
{()
=>
this
.
setState
({
visibleTP
:
false
,
visibleRollingOutlook
:
true
})}
status
=
{
this
.
state
.
status
}
lastStatus
=
{
this
.
state
.
lastStatus
}
isApprover
=
{
'false'
}
/
>
)}
...
...
src/container/RollingOutlook/TaxPlanningRO.js
View file @
6579f396
...
...
@@ -36,8 +36,7 @@ const style = {
const
style2
=
{
position
:
"sticky"
,
background
:
"white"
,
zIndex
:
100
,
top
:
0
zIndex
:
100
};
export
default
class
TaxPlanning
extends
Component
{
...
...
@@ -54,16 +53,18 @@ export default class TaxPlanning extends Component {
buttonDraft
:
true
,
handleTekTekTek
:
0
,
saveDraft
:
true
,
minValue
:
"0"
,
maxValue
:
"0"
minValue
:
0
,
maxValue
:
0
,
alert
:
false
,
get_for
:
"view"
,
viewOnly
:
true
,
}
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
componentDidMount
()
{
this
.
getLatestUpdate
()
//
this.getLatestUpdate()
this
.
getSettingControl
()
}
...
...
@@ -75,7 +76,7 @@ export default class TaxPlanning extends Component {
}
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
//
console.log(response);
console
.
log
(
response
);
this
.
setState
({
minValue
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
min_value
:
null
,
maxValue
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
max_value
:
null
,
...
...
@@ -118,104 +119,107 @@ export default class TaxPlanning extends Component {
getItemHierarki
()
{
this
.
setState
({
loading
:
true
,
judulColumn
:
null
})
let
payload
=
{
"company_id"
:
this
.
props
.
company
.
company_id
,
"get_for"
:
this
.
state
.
get_for
,
"months"
:
0
,
"periode"
:
this
.
props
.
periode
,
"report_id"
:
5
,
"revision"
:
0
,
"periode"
:
2021
,
"company_id"
:
2193390
,
"submission_id"
:
3611597
"revision"
:
Number
(
this
.
props
.
revision
),
"rolling_outlook_id"
:
this
.
props
.
rollingOutlookID
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
// console.log(response);
api
.
create
().
getRollingOutlookTP
(
payload
).
then
(
response
=>
{
console
.
log
(
payload
);
console
.
log
(
response
);
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
.
status
==
'success'
)
{
let
res
=
response
.
data
.
data
const
handlePushChild
=
(
item
)
=>
{
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
1
]
===
item
.
id
)
let
indexIDzz
=
dataTable
.
findIndex
((
val
)
=>
val
[
4
]
===
item
.
item_report_
id
)
if
(
indexIDzz
===
-
1
)
{
let
taxPlan
=
item
.
tax_planning
const
indexGetMonth
=
(
monthName
)
=>
{
let
indexMonth
=
taxPlan
.
findIndex
((
val
)
=>
String
(
val
.
xmonth
).
toLocaleLowerCase
()
===
monthName
)
return
indexMonth
}
dataTable
.
push
([
item
.
type_report_id
,
item
.
type_report_tax
.
value_tbc
.
type_report_id
,
item
.
type_report_tax
.
value_fc
.
type_report_id
,
item
.
type_report_tax
.
value_tbf
.
type_report_id
,
item
.
id
,
item
.
i
tem_report_i
d
,
item
.
parent
,
{
tbc
:
item
.
formula_tax
.
value_tbc
,
fcp
:
item
.
formula_tax
.
value_fc
,
tbf
:
item
.
formula_tax
.
value_tbf
},
item
.
level
,
item
.
description
,
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbc
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
fcp
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbf
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbc
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
fcp
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbf
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbc
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
fcp
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbf
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbc
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
fcp
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbf
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbc
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
fcp
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbf
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbc
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
fcp
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbf
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbc
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
fcp
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbf
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbc
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
fcp
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbf
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbc
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
fcp
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbf
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbc
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
fcp
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbf
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbc
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
fcp
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbf
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbc
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
fcp
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbf
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbf
},
Number
(
item
.
tax_planning
.
total_current_year
).
toFixed
(
1
),
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"january"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"january"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"january"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"february"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"february"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"february"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"march"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"march"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"march"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"april"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"april"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"april"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"may"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"may"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"may"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"june"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"june"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"june"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"july"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"july"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"july"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"august"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"august"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"august"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"september"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"september"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"september"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"october"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"october"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"october"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"november"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"november"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"november"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"december"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"december"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"december"
)].
tbf
},
0
,
item
.
order
,
{
tbc
:
item
.
condition_it_should_be_tax
.
value_tbc
,
fcp
:
item
.
condition_it_should_be_tax
.
value_fc
,
tbf
:
item
.
condition_it_should_be_tax
.
value_tbf
},
{
tbc
:
item
.
condition_if_wrong_tax
.
value_tbc
,
fcp
:
item
.
condition_if_wrong_tax
.
value_fc
,
tbf
:
item
.
condition_if_wrong_tax
.
value_tbf
},
item
.
tax_planning
.
forecast_tbc_formula
,
item
.
tax_planning
.
forecast_fcp_formula
,
item
.
tax_planning
.
forecast_tbf_formula
,
])
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
if
(
item
.
children
s
!==
null
)
{
if
(
item
.
children
s
.
length
>
0
)
{
item
.
children
s
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
}
res
.
map
((
item
,
index
)
=>
{
let
taxPlan
=
item
.
tax_planning
const
indexGetMonth
=
(
monthName
)
=>
{
let
indexMonth
=
taxPlan
.
findIndex
((
val
)
=>
String
(
val
.
xmonth
).
toLocaleLowerCase
()
===
monthName
)
return
indexMonth
}
dataTable
.
push
([
item
.
type_report_id
,
item
.
type_report_tax
.
value_tbc
.
type_report_id
,
item
.
type_report_tax
.
value_fc
.
type_report_id
,
item
.
type_report_tax
.
value_tbf
.
type_report_id
,
item
.
id
,
item
.
i
tem_report_i
d
,
item
.
parent
,
{
tbc
:
item
.
formula_tax
.
value_tbc
,
fcp
:
item
.
formula_tax
.
value_fc
,
tbf
:
item
.
formula_tax
.
value_tbf
},
item
.
level
,
item
.
description
,
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbc
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
fcp
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
january
.
tbf
,
formula
:
item
.
tax_planning
.
january_formula
}
:
item
.
tax_planning
.
january
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbc
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
fcp
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
february
.
tbf
,
formula
:
item
.
tax_planning
.
february_formula
}
:
item
.
tax_planning
.
february
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbc
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
fcp
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
march
.
tbf
,
formula
:
item
.
tax_planning
.
march_formula
}
:
item
.
tax_planning
.
march
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbc
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
fcp
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
april
.
tbf
,
formula
:
item
.
tax_planning
.
april_formula
}
:
item
.
tax_planning
.
april
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbc
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
fcp
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
may
.
tbf
,
formula
:
item
.
tax_planning
.
may_formula
}
:
item
.
tax_planning
.
may
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbc
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
fcp
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
june
.
tbf
,
formula
:
item
.
tax_planning
.
june_formula
}
:
item
.
tax_planning
.
june
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbc
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
fcp
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
july
.
tbf
,
formula
:
item
.
tax_planning
.
july_formula
}
:
item
.
tax_planning
.
july
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbc
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
fcp
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
august
.
tbf
,
formula
:
item
.
tax_planning
.
august_formula
}
:
item
.
tax_planning
.
august
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbc
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
fcp
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
september
.
tbf
,
formula
:
item
.
tax_planning
.
september_formula
}
:
item
.
tax_planning
.
september
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbc
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
fcp
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
october
.
tbf
,
formula
:
item
.
tax_planning
.
october_formula
}
:
item
.
tax_planning
.
october
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbc
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
fcp
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
november
.
tbf
,
formula
:
item
.
tax_planning
.
november_formula
}
:
item
.
tax_planning
.
november
.
tbf
},
{
tbc
:
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbc
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbc
,
fcp
:
item
.
type_report_tax
.
value_fc
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_fc
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
fcp
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
fcp
,
tbf
:
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
5
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
6
||
item
.
type_report_tax
.
value_tbf
.
type_report_id
==
7
?
{
value
:
item
.
tax_planning
.
december
.
tbf
,
formula
:
item
.
tax_planning
.
december_formula
}
:
item
.
tax_planning
.
december
.
tbf
},
Number
(
item
.
tax_planning
.
total_current_year
).
toFixed
(
1
),
{
tbc
:
item
.
tax_planning
.
total_next_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_next_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_next_year
.
tbf
},
{
tbc
:
item
.
tax_planning
.
total_more_year
.
tbc
,
fcp
:
item
.
tax_planning
.
total_more_year
.
fcp
,
tbf
:
item
.
tax_planning
.
total_more_year
.
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"january"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"january"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"january"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"february"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"february"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"february"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"march"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"march"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"march"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"april"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"april"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"april"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"may"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"may"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"may"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"june"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"june"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"june"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"july"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"july"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"july"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"august"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"august"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"august"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"september"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"september"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"september"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"october"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"october"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"october"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"november"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"november"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"november"
)].
tbf
},
{
tbc
:
item
.
tax_planning
[
indexGetMonth
(
"december"
)].
tbc
,
fcp
:
item
.
tax_planning
[
indexGetMonth
(
"december"
)].
fc
,
tbf
:
item
.
tax_planning
[
indexGetMonth
(
"december"
)].
tbf
},
0
,
item
.
order
,
{
tbc
:
item
.
condition_it_should_be_tax
.
value_tbc
,
fcp
:
item
.
condition_it_should_be_tax
.
value_fc
,
tbf
:
item
.
condition_it_should_be_tax
.
value_tbf
},
{
tbc
:
item
.
condition_if_wrong_tax
.
value_tbc
,
fcp
:
item
.
condition_if_wrong_tax
.
value_fc
,
tbf
:
item
.
condition_if_wrong_tax
.
value_tbf
},
item
.
tax_planning
.
forecast_tbc_formula
,
item
.
tax_planning
.
forecast_fcp_formula
,
item
.
tax_planning
.
forecast_tbf_formula
,
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
item
.
children
.
map
((
items
,
indexs
)
=>
{
if
(
item
.
children
s
!==
null
)
{
if
(
item
.
children
s
.
length
>
0
)
{
item
.
children
s
.
map
((
items
,
indexs
)
=>
{
handlePushChild
(
items
)
})
}
}
})
//
console.log(dataTable)
console
.
log
(
dataTable
)
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
}
else
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
...
...
@@ -265,7 +269,7 @@ export default class TaxPlanning extends Component {
// }, () => console.log(this.state.dataTable))
}
backTo
MasterBudget
(
type
)
{
backTo
RollingOutlook
(
type
)
{
let
data
=
[]
this
.
state
.
dataTable
.
map
(
i
=>
{
data
.
push
({
...
...
@@ -779,6 +783,7 @@ export default class TaxPlanning extends Component {
let
dataFormula
=
[]
let
id
=
0
let
double
=
false
const
handleNewFormula
=
(
tableMeta
,
dex
,
newFormula
)
=>
{
let
splitFormula
=
String
(
newFormula
).
split
(
'@'
)
let
baru
=
[]
...
...
@@ -1166,47 +1171,6 @@ export default class TaxPlanning extends Component {
return
Number
(
total
).
toFixed
(
1
)
}
const
handleForecast
=
(
tableMeta
,
periode
,
dex
)
=>
{
let
total
=
0
let
data
=
dex
==
1
?
dataTable2
[
tableMeta
.
rowIndex
][
6
].
tbc
:
dex
==
2
?
dataTable2
[
tableMeta
.
rowIndex
][
6
].
fcp
:
dataTable2
[
tableMeta
.
rowIndex
][
6
].
tbf
let
forecast
=
dex
==
1
?
dataTable2
[
tableMeta
.
rowIndex
][
27
]
:
dex
==
2
?
dataTable2
[
tableMeta
.
rowIndex
][
28
]
:
dataTable2
[
tableMeta
.
rowIndex
][
29
]
if
(
data
.
includes
(
'#PL'
))
{
if
(
tableMeta
.
rowData
[
8
]
==
"Control (should be nil)"
)
{
total
=
handleValueFormula
(
5
,
tableMeta
,
dex
,
data
,
forecast
,
periode
)
}
else
{
forecast
.
map
((
item
,
index
)
=>
{
if
(
periode
==
item
.
periode
)
{
total
+=
Number
(
item
.
value
)
}
})
}
}
else
{
total
=
handleValueFormula
(
5
,
tableMeta
,
dex
,
data
)
}
if
(
dex
==
1
)
{
if
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbc
.
value
==
undefined
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbc
=
total
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbc
.
value
=
total
}
}
else
if
(
dex
==
2
)
{
if
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
fcp
.
value
==
undefined
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
fcp
=
total
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
fcp
.
value
=
total
}
}
else
{
if
(
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
==
undefined
)
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
=
total
}
else
{
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
].
tbf
.
value
=
total
}
}
return
total
}
const
handleChange
=
(
value
,
tableMeta
,
indexChilds
)
=>
{
let
val
=
String
(
value
).
split
(
","
).
join
(
""
)
// let data = this.state.dataTable2
...
...
@@ -1232,6 +1196,7 @@ export default class TaxPlanning extends Component {
}
}
}
const
handleTotalControl
=
(
tableMeta
,
dex
,
periode
)
=>
{
let
total
=
0
dataTable2
[
tableMeta
.
rowIndex
].
map
((
item
,
index
)
=>
{
...
...
@@ -1279,121 +1244,6 @@ export default class TaxPlanning extends Component {
dataTable2
[
tableMeta
.
rowIndex
][
21
]
=
Number
(
total
).
toFixed
(
1
)
return
total
}
const
handleValue
=
(
data
)
=>
{
let
total
=
0
dataTable2
.
map
((
item
,
index
)
=>
{
if
(
data
.
rowData
[
4
]
===
item
[
5
])
{
total
=
item
[
data
.
columnIndex
]
===
undefined
?
(
Number
(
total
)
+
0
)
:
(
Number
(
total
)
+
Number
(
item
[
data
.
columnIndex
].
fcp
))
}
})
let
indexParent
=
dataTable2
.
findIndex
((
val
)
=>
val
[
4
]
===
dataTable2
[
data
.
rowIndex
][
5
])
let
a
=
dataTable2
[
data
.
rowIndex
][
data
.
columnIndex
].
fcp
=
Number
(
total
)
return
a
}
const
handleFormula
=
(
data
,
tableMeta
,
month
,
rowColumn
)
=>
{
let
rilFormula
=
String
(
rowColumn
==
0
?
tableMeta
.
rowData
[
6
].
tbc
:
tableMeta
.
rowData
[
6
].
tbf
)
if
(
rilFormula
.
includes
(
'#'
))
{
if
(
this
.
props
.
status
===
"not-yet"
)
{
let
splitOrder
=
String
(
rowColumn
==
0
?
tableMeta
.
rowData
[
6
].
tbc
:
tableMeta
.
rowData
[
6
].
tbf
).
split
(
'@'
)
for
(
let
index
=
0
;
index
<
splitOrder
.
length
;
index
++
)
{
if
(
splitOrder
[
index
]
===
""
)
{
}
else
{
if
(
splitOrder
[
index
].
includes
(
'#'
))
{
}
else
{
let
splitOperator
=
splitOrder
[
index
].
match
(
/
[
a-zA-Z
]
+|
[
0-9
]
+|
[
-!$%^&*()_+|~=`{}
\[\]
:";'<>?,.
\/]
+
(?:\.[
0-9
]
+@|
)
/g
)
let
reg
=
/^
\d
+$/
splitOperator
.
map
((
item
)
=>
{
if
(
reg
.
test
(
item
)
===
true
)
{
let
i
=
dataTable2
.
findIndex
((
val
)
=>
val
[
24
]
==
item
)
if
(
i
>
0
)
{
rilFormula
=
rilFormula
.
replace
(
item
,
dataTable2
[
i
][
tableMeta
.
columnIndex
]
===
""
?
"0"
:
dataTable2
[
i
][
tableMeta
.
columnIndex
])
}
}
})
}
}
}
let
body
=
{
"submission_id"
:
null
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"report_id"
:
this
.
props
.
report_id
,
"year"
:
this
.
props
.
periode
,
"month"
:
month
,
"formula"
:
rilFormula
}
api
.
create
().
countingFormula
(
body
).
then
(
response
=>
{
// console.log(response);
})
}
else
{
let
body
=
{
"submission_id"
:
this
.
props
.
submissionID
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"report_id"
:
this
.
props
.
report_id
,
"year"
:
this
.
props
.
periode
,
"month"
:
month
,
"formula"
:
rilFormula
}
api
.
create
().
countingFormula
(
body
).
then
(
response
=>
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
return
response
.
data
.
data
.
result
}
}
})
}
}
else
{
let
kondisi
=
rowColumn
==
0
?
tableMeta
.
rowData
[
6
].
tbc
:
tableMeta
.
rowData
[
6
].
tbf
let
arrayFormula
=
kondisi
.
match
(
/
[
a-zA-Z
]
+|
[
0-9
]
+|
[
-!$%^&*()_+|~=`{}
\[\]
:";'<>?,.
\/]
+
(?:\.[
0-9
]
+@|
)
/g
)
let
arrayJumlah
=
[]
arrayFormula
.
map
((
item
,
indexs
)
=>
{
let
index
=
dataTable2
.
findIndex
((
val
)
=>
val
[
24
]
==
item
)
if
(
index
>
0
)
{
arrayJumlah
.
push
(
dataTable2
[
index
][
tableMeta
.
columnIndex
])
}
else
{
arrayJumlah
.
push
(
item
)
}
// if (indexs % 2 !== 0) {
// operator.push(item)
// }
})
let
array
=
arrayJumlah
let
total
=
0
let
opt
=
""
array
.
map
((
item
,
index
)
=>
{
if
(
item
==
"+"
)
{
opt
=
"tambah"
}
else
if
(
item
==
"-"
)
{
opt
=
"kurang"
}
else
if
(
item
==
"*"
)
{
opt
=
"kali"
}
else
if
(
item
==
"/"
)
{
opt
=
"bagi"
}
else
{
if
(
opt
==
"tambah"
)
{
total
=
Number
(
total
)
+
Number
(
item
)
}
else
if
(
opt
==
"kurang"
)
{
total
=
Number
(
total
)
-
Number
(
item
)
}
else
if
(
opt
==
"kali"
)
{
total
=
Number
(
total
)
*
Number
(
item
)
}
else
if
(
opt
==
"bagi"
)
{
total
=
Number
(
total
)
/
Number
(
item
)
}
else
{
total
+=
item
}
}
})
if
(
R
.
equals
(
Number
(
total
),
NaN
))
{
total
=
{
tbc
:
""
,
fcp
:
""
,
tbf
:
""
}
}
else
{
total
=
Number
(
total
)
}
let
a
=
dataTable2
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
total
return
a
}
}
const
handleParent
=
(
tableMeta
,
type
)
=>
{
let
total
=
0
...
...
@@ -1473,20 +1323,16 @@ export default class TaxPlanning extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
width
:
300
}}
>
{
tableMeta
.
rowData
[
30
]
?
tableMeta
.
rowData
[
30
].
length
>
0
?
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
tableMeta
.
rowData
[
0
]
===
null
?
tableMeta
.
rowData
[
7
]
==
0
?
<
LightTooltip
title
=
{
"Report Items Not Registered"
}
arrow
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
,
color
:
'red'
}}
>
{
String
(
val
).
toUpperCase
()}
<
/span
>
<
/LightTooltip>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
7
])
}}
>
<
LightTooltip
title
=
{
"Report Items Not Registered"
}
arrow
>
<
span
style
=
{{
fontSize
:
12
,
color
:
'red'
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/LightTooltip
>
<
/div
>
:
tableMeta
.
rowData
[
7
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
:
<
div
style
=
{{
paddingLeft
:
20
*
Number
(
tableMeta
.
rowData
[
7
])
}}
>
<
span
style
=
{{
fontSize
:
12
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
<
/div
>
:
tableMeta
.
rowData
[
7
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
...
...
@@ -1503,7 +1349,7 @@ export default class TaxPlanning extends Component {
name
:
`Jan
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -1715,11 +1561,12 @@ export default class TaxPlanning extends Component {
)
}
}
},
{
},
{
name
:
`Feb
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -1897,7 +1744,7 @@ export default class TaxPlanning extends Component {
name
:
`Mar
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -2075,7 +1922,7 @@ export default class TaxPlanning extends Component {
name
:
`Apr
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -2563,7 +2410,7 @@ export default class TaxPlanning extends Component {
name
:
`May
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -3053,7 +2900,7 @@ export default class TaxPlanning extends Component {
name
:
`Jun
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -3543,7 +3390,7 @@ export default class TaxPlanning extends Component {
name
:
`Jul
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -4033,7 +3880,7 @@ export default class TaxPlanning extends Component {
name
:
`Aug
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -4523,7 +4370,7 @@ export default class TaxPlanning extends Component {
name
:
`Sep
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -5013,7 +4860,7 @@ export default class TaxPlanning extends Component {
name
:
`Oct
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -5503,7 +5350,7 @@ export default class TaxPlanning extends Component {
name
:
`Nov
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -5993,7 +5840,7 @@ export default class TaxPlanning extends Component {
name
:
`Dec
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
{
/* <TableCell style={{ ...style2, top: 0, zIndex: 99, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> */
}
...
...
@@ -6483,7 +6330,7 @@ export default class TaxPlanning extends Component {
name
:
`
${
this
.
props
.
periode
}
`
,
options
:
{
customHeadRender
:
(
columnMeta
)
=>
(
<
th
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
th
style
=
{{
...
style2
,
top
:
0
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
13
,
fontWeight
:
1
,
width
:
150
,
borderRight
:
"1px solid rgb(255, 255, 255)"
}}
>
<
div
style
=
{{
borderBottom
:
"1px #fff solid"
,
textAlign
:
'center'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
padding
:
5
,
paddingTop
:
8
}}
>
{
columnMeta
.
name
}
<
/div
>
<
div
className
=
""
style
=
{{
...
style2
,
backgroundColor
:
'#1c71b8'
,
color
:
'#fff'
,
fontSize
:
12
,
fontWeight
:
'bold'
,
position
:
"sticky"
,
paddingBottom
:
20
}}
>
<
div
className
=
"column-1"
style
=
{{
placeSelf
:
'center'
,
textAlign
:
'center'
,
padding
:
5
}}
>
...
...
@@ -6497,38 +6344,47 @@ export default class TaxPlanning extends Component {
// console.log(dataTable2);
return
(
<
div
>
<
div
className
=
"grid grid-3x content-center"
>
{
/* <div className="col-1"> */
}
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
tableMeta
.
rowData
[
8
]
==
"Tax Loss Carry Forward"
||
tableMeta
.
rowData
[
8
]
===
"Adjustment"
||
tableMeta
.
rowData
[
8
]
===
"Inc Tax Art 22"
||
tableMeta
.
rowData
[
8
]
===
"Inc Tax Art 23"
||
tableMeta
.
rowData
[
8
]
===
"Inc Tax Art 24"
||
tableMeta
.
rowData
[
8
]
===
"Inc Tax Art 25"
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
3
)
// console.log(dataTable2)
}}
<
div
style
=
{{
textAlign
:
'right'
}}
>
{
this
.
props
.
status
===
'CLOSED'
?
tableMeta
.
rowData
[
1
]
===
4
||
tableMeta
.
rowData
[
1
]
===
1
?
null
:
tableMeta
.
rowData
[
1
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
}
/
>
<
/div>
:
tableMeta
.
rowData
[
24
]
===
77
?
<
/div>
:
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
value
).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
tableMeta
.
rowData
[
1
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
...
...
@@ -6536,205 +6392,114 @@ export default class TaxPlanning extends Component {
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
style
=
{{
color
:
"#5198ea"
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
handleNewFormula
(
tableMeta
,
3
,
"@11-@13-@35+@53+@60"
)).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
// updateValue(event.target.value)
handleChange
(
event
.
target
.
value
,
tableMeta
,
0
)
// console.log(event.target.value)
}}
/
>
}
/
>
<
/div
>
:
tableMeta
.
rowData
[
24
]
===
83
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
/div>
:
tableMeta
.
rowData
[
1
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleParent
(
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
<
/span
>
:
tableMeta
.
rowData
[
1
]
===
4
?
null
:
tableMeta
.
rowData
[
1
]
===
6
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormula
(
value
,
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
1
]
===
5
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
handleNewFormula
(
tableMeta
,
3
,
"@77-@81"
)).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
tableMeta
.
rowData
[
24
]
===
87
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
handleNewFormula
(
tableMeta
,
3
,
"@83*@87#TP2"
)).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
tableMeta
.
rowData
[
24
]
===
89
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
handleNewFormula
(
tableMeta
,
3
,
"@87+@88"
)).
toFixed
(
1
)}
/
>
}
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormula
(
value
,
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
<
/div
>
:
tableMeta
.
rowData
[
24
]
===
96
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
handleNewFormula
(
tableMeta
,
3
,
"@89-(@92+@93+@94+@95)"
)).
toFixed
(
1
)}
/
>
}
/
>
<
/div
>
:
tableMeta
.
rowData
[
8
]
===
"Control (should be nil)"
?
(
Number
(
handleTotalControl
(
tableMeta
,
1
,
this
.
props
.
periode
)).
toFixed
(
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
handleTotalControl
(
tableMeta
,
1
,
this
.
props
.
periode
)).
toFixed
(
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
color
:
'black'
,
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotalControl
(
tableMeta
,
1
,
this
.
props
.
periode
)).
toFixed
(
1
)}
/>
:
<
LightTooltip
title
=
{
this
.
state
.
minValue
===
null
?
`Value Should be 0`
:
`Value Should be (
${
this
.
state
.
minValue
}
) up to (
${
this
.
state
.
maxValue
}
)`
}
arrow
>
tableMeta
.
rowData
[
1
]
===
1
?
// value[0] === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value[0])}
// />
null
:
tableMeta
.
rowData
[
1
]
===
7
?
(
Number
(
handleValueFormula
(
value
,
tableMeta
,
0
)).
toFixed
(
1
)
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
handleValueFormula
(
value
,
tableMeta
,
0
)).
toFixed
(
1
)
<=
Number
(
this
.
state
.
maxValue
))
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
color
:
'red'
}}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
color
:
'black'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotalControl
(
tableMeta
,
1
,
this
.
props
.
periode
)).
toFixed
(
1
)}
/
>
<
/LightTooltip
>
:
String
(
tableMeta
.
rowData
[
8
]).
toLowerCase
()
===
"fiscal correction positive / (negative) year to date"
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
value
=
{
Number
(
handleValueFormula
(
value
,
tableMeta
,
1
)).
toFixed
(
1
)}
/>
:
<
LightTooltip
title
=
{
this
.
state
.
minValue
===
null
?
`Value Should be
${
tableMeta
.
rowData
[
25
].
tbf
}
`
:
`Value Should be (
${
this
.
state
.
minValue
}
) up to (
${
this
.
state
.
maxValue
}
)`
}
arrow
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
color
:
'red'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleValueFormula
(
value
,
tableMeta
,
1
)).
toFixed
(
1
)}
/
>
<
/LightTooltip
>
:
tableMeta
.
rowData
[
3
]
===
3
?
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
style
=
{{
margin
:
0
}}
value
=
{
value
}
control
=
{
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
"input"
disabled
=
{
this
.
props
.
isApprover
==
true
?
true
:
((
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
false
:
true
)}
value
=
{
Number
(
handleTotal
(
tableMeta
,
3
)).
toFixed
(
1
)}
/
>
}
/
>
<
/div>
:
tableMeta
.
rowData
[
3
]
===
2
?
<
span
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
}}
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
2
)).
toFixed
(
1
)}
/
>
<
/span
>
:
tableMeta
.
rowData
[
3
]
===
4
?
null
:
tableMeta
.
rowData
[
3
]
===
6
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
6
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
3
]
===
5
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
5
)).
toFixed
(
1
)}
/
>
:
tableMeta
.
rowData
[
3
]
===
1
?
null
:
tableMeta
.
rowData
[
3
]
===
7
?
(
Number
(
handleTotal
(
tableMeta
,
1
))
>=
Number
(
this
.
state
.
minValue
)
&&
Number
(
handleTotal
(
tableMeta
,
1
))
<=
Number
(
this
.
state
.
maxValue
))
?
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
1
,
this
.
props
.
periode
)).
toFixed
(
1
)}
/>
:
<
LightTooltip
title
=
{
this
.
state
.
minValue
===
null
?
`Value Should be 0`
:
`Value Should be (
${
this
.
state
.
minValue
}
) up to (
${
this
.
state
.
maxValue
}
)`
}
arrow
>
<
NumberFormat
thousandSeparator
=
{
true
}
style
=
{{
fontSize
:
12
,
textAlign
:
'right'
,
borderColor
:
'transparent'
,
margin
:
0
,
width
:
96
,
backgroundColor
:
'transparent'
,
color
:
'red'
}}
type
=
"text"
placeholder
=
""
disabled
=
{
true
}
value
=
{
Number
(
handleTotal
(
tableMeta
,
1
,
this
.
props
.
periode
)).
toFixed
(
1
)}
/
>
<
/LightTooltip
>
:
null
}
<
/div
>
{
/* </div> */
}
null
}
<
/div
>
<
/div
>
)
}
}
},{
},
{
name
:
""
,
options
:
{
display
:
false
...
...
@@ -6959,7 +6724,7 @@ export default class TaxPlanning extends Component {
// this.state.handleTekTekTek == 1 ? null :
// this.setState({ handleTekTekTek: 1, loading: true }, () => {
// setTimeout(() => {
// this.backTo
MasterBudget
('draft')
// this.backTo
RollingOutlook
('draft')
// }, 100);
// })
}
...
...
@@ -6985,7 +6750,7 @@ export default class TaxPlanning extends Component {
// this.state.handleTekTekTek == 1 ? null :
// this.setState({ handleTekTekTek: 1, loading: true }, () => {
// setTimeout(() => {
// this.backTo
MasterBudget
('submitted')
// this.backTo
RollingOutlook
('submitted')
// }, 100);
// })
}
...
...
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