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
c9bab51f
Commit
c9bab51f
authored
Mar 23, 2021
by
r.kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into rifka
parents
00221fd1
1615c9fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
index.js
src/api/index.js
+4
-2
OutlookPA.js
src/container/OutlookPA.js
+6
-6
BalanceSheetOLPA.js
src/container/OutlookPA/BalanceSheetOLPA.js
+1
-0
ProfitLossOLPA.js
src/container/OutlookPA/ProfitLossOLPA.js
+1
-0
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+1
-0
No files found.
src/api/index.js
View file @
c9bab51f
...
...
@@ -349,8 +349,9 @@ const create = (type = "") => {
const
uploadAttOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/upload_attachment'
,
body
)
const
deleteAttOLPA
=
(
id
)
=>
api
.
post
(
`transaction/outlook_pa/delete_attachment/
${
id
}
`
)
const
getReportOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/get_all_report'
,
body
)
const
approvalSubmissionOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/approval_
submission
'
,
body
)
const
approvalSubmissionOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/approval_
outlook
'
,
body
)
const
checkApproverOLPA
=
()
=>
api
.
get
(
'transaction/outlook_pa/is_approver'
)
const
createPeriodeRevisionOLPA
=
(
body
)
=>
api
.
post
(
'transaction/outlook_pa/create_periode_revision'
,
body
)
// Monthly
const
getMonthlyReport
=
(
body
)
=>
api
.
post
(
'transaction/monthly_report/get_all_report'
,
body
)
...
...
@@ -768,7 +769,8 @@ const create = (type = "") => {
checkUploadRollingOutlookOI
,
uploadRollingOutlookOI
,
submitRollingOutlook
,
getRollingOutlookCompanySubmitted
getRollingOutlookCompanySubmitted
,
createPeriodeRevisionOLPA
}
}
...
...
src/container/OutlookPA.js
View file @
c9bab51f
...
...
@@ -311,7 +311,7 @@ export default class OutlookPA extends Component {
let
data
=
[]
response
.
data
.
data
.
map
((
item
)
=>
{
if
(
this
.
state
.
isApprover
)
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)))
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
))
{
data
.
push
(
item
)
}
}
else
{
...
...
@@ -329,7 +329,7 @@ export default class OutlookPA extends Component {
options
:
periodeData
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
};
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
))
:
Number
(
this
.
state
.
lastPeriod
))
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
Number
(
this
.
state
.
lastPeriod
))
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
==
periode
)
// console.log(data)
// console.log(this.state.lastPeriod)
...
...
@@ -450,13 +450,13 @@ export default class OutlookPA extends Component {
"max_periode"
:
moment
(
this
.
state
.
maxDateRevision
).
format
(
'YYYY-MM-DD'
)
}
// console.log(payload)
api
.
create
().
approvalSubmission
(
body
).
then
((
res
)
=>
{
//
console.log(res)
api
.
create
().
approvalSubmission
OLPA
(
body
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
setState
({
loading
:
false
},
()
=>
{
this
.
get
Submission
()
this
.
get
OutlookPAID
()
})
if
(
type
==
'revision'
)
{
api
.
create
().
createPeriodeRevision
(
payload
).
then
((
res
)
=>
console
.
log
(
res
))
api
.
create
().
createPeriodeRevision
OLPA
(
payload
).
then
((
res
)
=>
console
.
log
(
res
))
}
})
}
...
...
src/container/OutlookPA/BalanceSheetOLPA.js
View file @
c9bab51f
...
...
@@ -144,6 +144,7 @@ export default class BalanceSheetOLPA extends Component {
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
this
.
props
.
revision
,
"get_for"
:
this
.
state
.
get_for
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
}
...
...
src/container/OutlookPA/ProfitLossOLPA.js
View file @
c9bab51f
...
...
@@ -122,6 +122,7 @@ export default class ProfitLossOLPA extends Component {
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
Number
(
this
.
props
.
revision
),
"get_for"
:
this
.
state
.
get_for
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
...
...
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
c9bab51f
...
...
@@ -146,6 +146,7 @@ export default class TaxPlanningOLPA extends Component {
let
payload
=
{
"outlook_pa_id"
:
this
.
props
.
outlook_pa_id
,
"report_id"
:
this
.
props
.
report_id
,
"get_for"
:
this
.
state
.
get_for
,
"revision"
:
this
.
props
.
revision
,
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
...
...
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