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
cab2c395
Commit
cab2c395
authored
May 22, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
Currency - View MB See merge request
!1797
parents
d9163c6c
3e43fc8f
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
140 additions
and
91 deletions
+140
-91
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+6
-3
BudgetTahunan.js
src/container/BudgetTahunan/BudgetTahunan.js
+69
-62
CashFlow.js
src/container/BudgetTahunan/CashFlow.js
+2
-1
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+4
-2
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+4
-2
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+51
-19
TaxPlanning.js
src/container/BudgetTahunan/TaxPlanning.js
+4
-2
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
cab2c395
...
...
@@ -63,6 +63,7 @@ export default class BalanceSheet extends Component {
}
componentDidMount
()
{
console
.
log
(
this
.
props
);
this
.
getLatestUpdate
()
this
.
getSettingControl
()
}
...
...
@@ -75,7 +76,7 @@ export default class BalanceSheet extends Component {
}
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
//
console.log(response);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
...
...
@@ -106,7 +107,8 @@ export default class BalanceSheet extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
if
(
response
.
data
)
{
...
...
@@ -137,7 +139,8 @@ export default class BalanceSheet extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
let
response
=
await
api
.
create
().
getDetailReportMB
(
payload
)
console
.
log
(
response
);
...
...
src/container/BudgetTahunan/BudgetTahunan.js
View file @
cab2c395
This diff is collapsed.
Click to expand it.
src/container/BudgetTahunan/CashFlow.js
View file @
cab2c395
...
...
@@ -77,7 +77,8 @@ export default class CashFlow extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
// console.log(JSON.stringify(payload))
// if (this.props.status === 'CLOSED') {
...
...
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
cab2c395
...
...
@@ -105,7 +105,8 @@ export default class CorporateAnnualTarget extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
console
.
log
(
JSON
.
stringify
(
payload
))
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
...
...
@@ -1006,7 +1007,8 @@ export default class CorporateAnnualTarget extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
if
(
response
.
data
)
{
...
...
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
cab2c395
...
...
@@ -65,7 +65,8 @@ export default class FixedAssetsMovement extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
if
(
response
.
data
)
{
...
...
@@ -96,7 +97,8 @@ export default class FixedAssetsMovement extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
...
...
src/container/BudgetTahunan/ProfitLoss.js
View file @
cab2c395
...
...
@@ -8,7 +8,7 @@ import Images from '../../assets/Images';
import
ReactTooltip
from
'react-tooltip'
;
import
UploadFile
from
"../../library/Upload"
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
{
Alert
}
from
'@material-ui/lab'
;
import
{
Alert
,
Autocomplete
}
from
'@material-ui/lab'
;
import
*
as
R
from
'ramda'
;
import
Constant
from
'../../library/Constant'
;
...
...
@@ -63,7 +63,8 @@ export default class ProfitLoss extends Component {
updateBy
:
[],
buttonDraft
:
true
,
handleDoubleClick
:
0
,
fromUpload
:
false
fromUpload
:
false
,
defaultCurrencyUpload
:
this
.
props
.
defaultCurrency
}
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
...
@@ -349,14 +350,18 @@ export default class ProfitLoss extends Component {
profit_loss
:
payload
,
status
:
'submitted'
}
// console.log(isi
)
console
.
log
(
body
)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
2
]
})
}
});
}
checkUpload
()
{
api
.
create
().
checkUploadMB
(
this
.
state
.
payload
).
then
(
response
=>
{
let
payload
=
{
...
this
.
state
.
payload
,
currency_id
:
this
.
state
.
defaultCurrencyUpload
?.
id
}
api
.
create
().
checkUploadMB
(
payload
).
then
(
response
=>
{
// console.log(JSON.stringify(this.state.payload));
console
.
log
(
response
)
if
(
response
.
data
)
{
...
...
@@ -3193,21 +3198,48 @@ export default class ProfitLoss extends Component {
<
/button
>
<
/div
>
<
/div
>
<
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
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
:
'10px 30px'
}}
>
<
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
>
<
/div
>
<
/div
>
)}
...
...
src/container/BudgetTahunan/TaxPlanning.js
View file @
cab2c395
...
...
@@ -92,7 +92,8 @@ export default class TaxPlanning extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
)
...
...
@@ -124,7 +125,8 @@ export default class TaxPlanning extends Component {
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
,
"currency_id"
:
this
.
props
.
defaultCurrency
.
id
}
api
.
create
().
getDetailReportMB
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
...
...
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