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
855b31ef
Commit
855b31ef
authored
May 29, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update UI Upload MB
parent
4c557448
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
126 deletions
+55
-126
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+3
-25
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+3
-25
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+3
-25
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+42
-26
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+4
-25
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
855b31ef
...
...
@@ -3797,31 +3797,7 @@ export default class BalanceSheet extends Component {
<
/button
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x grid-mobile-none gap-15px"
style
=
{{
padding
:
'20px 30px'
}}
>
<
div
className
=
"column-1"
>
<
Autocomplete
id
=
"tipe"
disableClearable
options
=
{
this
.
props
.
currency
}
getOptionLabel
=
{(
option
)
=>
option
.
value
}
value
=
{
this
.
state
.
defaultCurrencyUpload
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
defaultCurrencyUpload
:
newInputValue
})}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
variant
=
"standard"
label
=
"Default Currency"
margin
=
"normal"
style
=
{{
marginBottom
:
10
}}
// InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
// InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
/
>
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
'15px 30px 55px'
}}
>
<
div
style
=
{{
padding
:
'25px 30px'
}}
>
<
UploadFile
type
=
{
this
.
state
.
uploadStatus
}
percentage
=
{
this
.
state
.
percentage
}
...
...
@@ -3838,6 +3814,8 @@ export default class BalanceSheet extends Component {
}}
/
>
<
/div
>
<
div
style
=
{{
padding
:
'0px 30px 29px'
,
fontSize
:
17
,
color
:
'red'
}}
><
b
>
Warning
:
<
/b> Valid currency for uploading data is <b>{this.props.defaultCurrency.id == 1
?
"IDR" : "USD"}</
b
><
/div
>
<
/div
>
<
/div
>
)}
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
855b31ef
...
...
@@ -4084,31 +4084,7 @@ export default class CorporateAnnualTarget extends Component {
<
/button
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x grid-mobile-none gap-15px"
style
=
{{
padding
:
'20px 30px'
}}
>
<
div
className
=
"column-1"
>
<
Autocomplete
id
=
"tipe"
disableClearable
options
=
{
this
.
props
.
currency
}
getOptionLabel
=
{(
option
)
=>
option
.
value
}
value
=
{
this
.
state
.
defaultCurrencyUpload
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
defaultCurrencyUpload
:
newInputValue
})}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
variant
=
"standard"
label
=
"Default Currency"
margin
=
"normal"
style
=
{{
marginBottom
:
10
}}
// InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
// InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
/
>
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
'15px 30px 55px'
}}
>
<
div
style
=
{{
padding
:
'25px 30px'
}}
>
<
UploadFile
type
=
{
this
.
state
.
uploadStatus
}
percentage
=
{
this
.
state
.
percentage
}
...
...
@@ -4125,6 +4101,8 @@ export default class CorporateAnnualTarget extends Component {
}}
/
>
<
/div
>
<
div
style
=
{{
padding
:
'0px 30px 29px'
,
fontSize
:
17
,
color
:
'red'
}}
><
b
>
Warning
:
<
/b> Valid currency for uploading data is <b>{this.props.defaultCurrency.id == 1
?
"IDR" : "USD"}</
b
><
/div
>
<
/div
>
<
/div
>
)}
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
855b31ef
...
...
@@ -2985,31 +2985,7 @@ export default class FixedAssetsMovement extends Component {
<
/button
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x grid-mobile-none gap-15px"
style
=
{{
padding
:
'20px 30px'
}}
>
<
div
className
=
"column-1"
>
<
Autocomplete
id
=
"tipe"
disableClearable
options
=
{
this
.
props
.
currency
}
getOptionLabel
=
{(
option
)
=>
option
.
value
}
value
=
{
this
.
state
.
defaultCurrencyUpload
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
defaultCurrencyUpload
:
newInputValue
})}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
variant
=
"standard"
label
=
"Default Currency"
margin
=
"normal"
style
=
{{
marginBottom
:
10
}}
// InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
// InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
/
>
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
'15px 30px 55px'
}}
>
<
div
style
=
{{
padding
:
'25px 30px'
}}
>
<
UploadFile
type
=
{
this
.
state
.
uploadStatus
}
percentage
=
{
this
.
state
.
percentage
}
...
...
@@ -3026,6 +3002,8 @@ export default class FixedAssetsMovement extends Component {
}}
/
>
<
/div
>
<
div
style
=
{{
padding
:
'0px 30px 29px'
,
fontSize
:
17
,
color
:
'red'
}}
><
b
>
Warning
:
<
/b> Valid currency for uploading data is <b>{this.props.defaultCurrency.id == 1
?
"IDR" : "USD"}</
b
><
/div
>
<
/div
>
<
/div
>
)}
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
855b31ef
...
...
@@ -3032,7 +3032,7 @@ export default class ProfitLoss extends Component {
this
.
backToMasterBudget
(
'draft'
)
})
}
>
<
div
style
=
{{
backgroundColor
:
'#354960'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
as
Draft
<
/Typography
>
...
...
@@ -3185,7 +3185,7 @@ export default class ProfitLoss extends Component {
<
/Paper>
}
<
/div
>
{
this
.
state
.
visibleUpload
&&
(
{
/* {
this.state.visibleUpload && (
<div className="test app-popup-show">
<div className="popup-content background-white border-radius" style={{ borderRadius: 8 }}>
<div className="popup-panel grid grid-2x main-color" style={{ height: 64, borderTopRightRadius: 8, borderTopLeftRadius: 8 }}>
...
...
@@ -3204,31 +3204,46 @@ export default class ProfitLoss extends Component {
</button>
</div>
</div>
<
div
className
=
"grid grid-2x grid-mobile-none gap-15px"
style
=
{{
padding
:
'20px 30px'
}}
>
<
div
className
=
"column-1"
>
<
Autocomplete
id
=
"tipe"
disableClearable
options
=
{
this
.
props
.
currency
}
getOptionLabel
=
{(
option
)
=>
option
.
value
}
value
=
{
this
.
state
.
defaultCurrencyUpload
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
defaultCurrencyUpload
:
newInputValue
})}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
variant
=
"standard"
label
=
"Default Currency"
margin
=
"normal"
style
=
{{
marginBottom
:
10
}}
// InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
// InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
/
>
}
<UploadFile
type={this.state.uploadStatus}
percentage={this.state.percentage}
result={this.state.result}
acceptedFiles={["xlsx"]}
onHandle={(dt) => {
this.fileHandler(dt)
this.setState({ uploadStatus: 'idle', percentage: '0' })
}}
onUpload={() => {
String(this.state.judul).includes("MASTER") && String(this.state.judul).includes("BUDGET") && String(this.state.judul).includes("PROFIT") && String(this.state.judul).includes("LOSS") ?
this.checkUpload() :
this.setState({ alert: true, messageAlert: "Invalid Template", tipeAlert: 'warning' })
}}
/>
<div style={{ padding: '10px 30px', fontSize: 13}}>Notes: Valid currency for uploading data is <b style={{ color: '#1D2995'}}>{this.props.defaultCurrency.id == 1 ? "IDR" : "USD"}</b></div>
</div>
</div>
)} */
}
/
>
{
this
.
state
.
visibleUpload
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x main-color"
style
=
{{
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"popup-title"
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Upload
File
<
/span
>
<
/div
>
<
/div
>
<
div
className
=
"col-2 content-right"
style
=
{{
maxWidth
:
"inherit"
,
alignSelf
:
'center'
}}
>
<
button
type
=
"button"
className
=
"btn btn-circle btn-white"
onClick
=
{()
=>
this
.
setState
({
visibleUpload
:
false
})}
>
<
img
src
=
{
Images
.
close
}
/
>
<
/button
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
'
10
px 30px'
}}
>
<
div
style
=
{{
padding
:
'
25
px 30px'
}}
>
<
UploadFile
type
=
{
this
.
state
.
uploadStatus
}
percentage
=
{
this
.
state
.
percentage
}
...
...
@@ -3245,6 +3260,7 @@ export default class ProfitLoss extends Component {
}}
/
>
<
/div
>
<
div
style
=
{{
padding
:
'0px 30px 29px'
,
fontSize
:
17
,
color
:
'red'
}}
><
b
>
Warning
:
<
/b> Valid currency for uploading data is <b>{this.props.defaultCurrency.id == 1
?
"IDR" : "USD"}</
b
><
/div
>
<
/div
>
<
/div
>
...
...
@@ -3253,8 +3269,8 @@ export default class ProfitLoss extends Component {
{
this
.
state
.
visibleAlertSave
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content border-radius"
style
=
{{
background
:
'#FFF27D'
,
borderRadius
:
10
,
width
:
715
,
height
:
238
}}
>
<
div
style
=
{{
margin
:
30
}}
>
<
div
style
=
{{
display
:
'flex'
,
marginTop
:
76
,
marginBottom
:
43
}}
>
<
div
style
=
{{
margin
:
30
}}
>
<
div
style
=
{{
display
:
'flex'
,
marginTop
:
76
,
marginBottom
:
43
}}
>
<
div
style
=
{{
alignSelf
:
'center'
,
marginRight
:
25
}}
>
<
img
src
=
{
Images
.
warning
}
/
>
<
/div
>
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
855b31ef
...
...
@@ -9280,6 +9280,7 @@ export default class TaxPlanning extends Component {
<
/Paper
>
}
<
/div
>
{
this
.
state
.
visibleUpload
&&
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
...
...
@@ -9299,31 +9300,7 @@ export default class TaxPlanning extends Component {
<
/button
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x grid-mobile-none gap-15px"
style
=
{{
padding
:
'20px 30px'
}}
>
<
div
className
=
"column-1"
>
<
Autocomplete
id
=
"tipe"
disableClearable
options
=
{
this
.
props
.
currency
}
getOptionLabel
=
{(
option
)
=>
option
.
value
}
value
=
{
this
.
state
.
defaultCurrencyUpload
}
onChange
=
{(
event
,
newInputValue
)
=>
this
.
setState
({
defaultCurrencyUpload
:
newInputValue
})}
renderInput
=
{(
params
)
=>
<
TextField
{...
params
}
variant
=
"standard"
label
=
"Default Currency"
margin
=
"normal"
style
=
{{
marginBottom
:
10
}}
// InputProps={{ ...params.InputProps, style: { fontSize: 11 } }}
// InputLabelProps={{ style: { fontSize: 11, color: '#7e8085' } }}
/
>
}
/
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
'15px 30px 55px'
}}
>
<
div
style
=
{{
padding
:
'25px 30px'
}}
>
<
UploadFile
type
=
{
this
.
state
.
uploadStatus
}
percentage
=
{
this
.
state
.
percentage
}
...
...
@@ -9340,6 +9317,8 @@ export default class TaxPlanning extends Component {
}}
/
>
<
/div
>
<
div
style
=
{{
padding
:
'0px 30px 29px'
,
fontSize
:
17
,
color
:
'red'
}}
><
b
>
Warning
:
<
/b> Valid currency for uploading data is <b>{this.props.defaultCurrency.id == 1
?
"IDR" : "USD"}</
b
><
/div
>
<
/div
>
<
/div
>
)}
...
...
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