Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
7e7cd834
Commit
7e7cd834
authored
Nov 12, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] add approval exception deal
parent
01a9a69e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+5
-6
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+1
-1
vatApproveService.js
...c/main/webapp/app/common/vatservices/vatApproveService.js
+2
-1
vat-caculate-data.ctrl.js
...vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
7e7cd834
...
...
@@ -452,12 +452,6 @@ public class ReportServiceImpl {
public
OperationResultDto
generateData
(
String
projectId
,
EnumServiceType
serviceType
,
Boolean
isMergeManualData
,
Integer
periodParam
,
Integer
reportType
,
Optional
<
String
>
generator
)
{
OperationResultDto
operationResultDto
=
new
OperationResultDto
();
try
{
if
(
serviceType
.
equals
(
EnumServiceType
.
VAT
)
&&
(
periodParam
==
null
||
periodParam
<=
0
))
{
operationResultDto
.
setResultMsg
(
"PeriodRequiredForVAT"
);
return
operationResultDto
;
}
MyAsserts
.
assertEq
(
serviceType
,
EnumServiceType
.
VAT
,
new
NotFoundException
());
PeriodJobExample
example
=
new
PeriodJobExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
projectId
).
andPeriodEqualTo
(
periodParam
)
...
...
@@ -466,6 +460,11 @@ public class ReportServiceImpl {
String
status
=
periodApprovalMapper
.
getStatusByProjectIdAndPeriod
(
projectId
,
periodParam
);
MyAsserts
.
assertTrue
(
status
==
null
||
status
.
equals
(
Constant
.
APPROVAL_DISAGREED
),
Exceptions
.
REPORT_IN_PROCESS_OR_AGREED_EXCEPTION
);
try
{
if
(
serviceType
.
equals
(
EnumServiceType
.
VAT
)
&&
(
periodParam
==
null
||
periodParam
<=
0
))
{
operationResultDto
.
setResultMsg
(
"PeriodRequiredForVAT"
);
return
operationResultDto
;
}
List
<
Template
>
templates
=
getTemplatesByProjectId
(
projectId
);
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
7e7cd834
...
...
@@ -2539,7 +2539,7 @@
};
$scope
.
commitApprove
=
function
(){
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
project
.
month
).
success
(
function
(
result
){
vatApproveService
.
approvalStatus
(
vatSessionService
.
project
.
id
,
vatSessionService
.
month
).
success
(
function
(
result
){
if
(
result
&&
result
==
'committed'
){
SweetAlert
.
swal
({
title
:
"warning!"
,
...
...
atms-web/src/main/webapp/app/common/vatservices/vatApproveService.js
View file @
7e7cd834
...
...
@@ -26,7 +26,7 @@
},
approvalStatus
:
function
(
projectId
,
period
){
return
$http
.
get
(
'/approval/'
+
projectId
+
'/'
+
period
,
apiConfig
.
createVat
({
ignoreLoadingBar
:
true
}))
return
$http
.
get
(
'/approval/
status/
'
+
projectId
+
'/'
+
period
,
apiConfig
.
createVat
({
ignoreLoadingBar
:
true
}))
}
};
}]);
\ No newline at end of file
atms-web/src/main/webapp/app/vat/reduction/vat-caculate-data/vat-caculate-data.ctrl.js
View file @
7e7cd834
...
...
@@ -293,7 +293,7 @@
},
1000
);
}
}).
error
(
function
()
{
}).
error
(
function
(
data
)
{
$log
.
debug
(
"generate all report may be some error"
);
// taskError(_this);
});
...
...
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