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
710a0259
Commit
710a0259
authored
Dec 18, 2020
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
template
parent
6c13b3c9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+4
-3
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+4
-3
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+2
-2
No files found.
src/container/MonthlyReport/BalanceSheetMR.js
View file @
710a0259
...
@@ -51,7 +51,8 @@ export default class BalanceSheetMR extends Component {
...
@@ -51,7 +51,8 @@ export default class BalanceSheetMR extends Component {
minValue
:
0
,
minValue
:
0
,
maxValue
:
0
,
maxValue
:
0
,
updateBy
:
'-'
,
updateBy
:
'-'
,
notes
:
""
notes
:
""
,
judulColumn
:
null
,
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
...
@@ -281,7 +282,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -281,7 +282,7 @@ export default class BalanceSheetMR extends Component {
months
:
this
.
props
.
month
.
month_id
months
:
this
.
props
.
month
.
month_id
}
}
console
.
log
(
body
)
console
.
log
(
body
)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
}
}
});
});
}
}
...
@@ -2059,7 +2060,7 @@ export default class BalanceSheetMR extends Component {
...
@@ -2059,7 +2060,7 @@ export default class BalanceSheetMR extends Component {
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
}}
onUpload
=
{()
=>
{
onUpload
=
{()
=>
{
String
(
this
.
state
.
judul
).
includes
(
"MONTHLY"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"REPORT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"BALANCE"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"SHEET"
)
?
String
(
this
.
state
.
judul
Column
).
includes
(
"TEMPLATE"
)
&&
String
(
this
.
state
.
judulColumn
).
includes
(
"UPLOAD"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"MONTHLY"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"REPORT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"BALANCE"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"SHEET"
)
?
this
.
checkUpload
()
:
this
.
checkUpload
()
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
}}
...
...
src/container/MonthlyReport/ProfitLossMR.js
View file @
710a0259
...
@@ -87,7 +87,8 @@ export default class ProfitLossMR extends Component {
...
@@ -87,7 +87,8 @@ export default class ProfitLossMR extends Component {
maxValue
:
0
,
maxValue
:
0
,
updateBy
:
'-'
,
updateBy
:
'-'
,
notesUpdate
:
'-'
,
notesUpdate
:
'-'
,
bebas
:
false
bebas
:
false
,
judulColumn
:
null
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
...
@@ -376,7 +377,7 @@ export default class ProfitLossMR extends Component {
...
@@ -376,7 +377,7 @@ export default class ProfitLossMR extends Component {
profit_loss
:
payload
profit_loss
:
payload
}
}
console
.
log
(
body
)
console
.
log
(
body
)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
}
}
});
});
}
}
...
@@ -2145,7 +2146,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2145,7 +2146,7 @@ export default class ProfitLossMR extends Component {
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
this
.
setState
({
uploadStatus
:
'idle'
,
percentage
:
'0'
})
}}
}}
onUpload
=
{()
=>
{
onUpload
=
{()
=>
{
String
(
this
.
state
.
judul
).
includes
(
"MONTHLY"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"REPORT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"PROFIT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"LOSS"
)
?
String
(
this
.
state
.
judul
Column
).
includes
(
"TEMPLATE"
)
&&
String
(
this
.
state
.
judulColumn
).
includes
(
"UPLOAD"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"MONTHLY"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"REPORT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"PROFIT"
)
&&
String
(
this
.
state
.
judul
).
includes
(
"LOSS"
)
?
this
.
checkUpload
()
:
this
.
checkUpload
()
:
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
this
.
setState
({
alert
:
true
,
messageAlert
:
"Invalid Template"
,
tipeAlert
:
'warning'
})
}}
}}
...
...
src/container/MonthlyReport/TaxPlanningMR.js
View file @
710a0259
...
@@ -308,8 +308,8 @@ export default class TaxPlanningMR extends Component {
...
@@ -308,8 +308,8 @@ export default class TaxPlanningMR extends Component {
tax_planning
:
payload
tax_planning
:
payload
}
}
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
console
.
log
(
this
.
state
.
judulColumn
)
//
console.log(this.state.judulColumn)
console
.
log
(
this
.
state
.
judul
)
//
console.log(this.state.judul)
}
}
});
});
}
}
...
...
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