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
63676740
Commit
63676740
authored
Mar 28, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
2339e2cb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
+24
-10
EnumInvoiceType.java
...java/pwc/taxtech/atms/constant/enums/EnumInvoiceType.java
+10
-1
InvoiceRecordEnum.java
...va/pwc/taxtech/atms/constant/enums/InvoiceRecordEnum.java
+2
-2
JXFP.java
.../taxtech/atms/vat/service/impl/report/functions/JXFP.java
+4
-6
vat.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
+1
-0
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+6
-0
vat-report-view.html
.../app/common/controls/vat-report-view/vat-report-view.html
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/EnumInvoiceType.java
View file @
63676740
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
import
java.util.HashMap
;
import
java.util.Map
;
public
enum
EnumInvoiceType
{
VATInvoice
(
1
,
"增值税专票"
),
FreightTransport
(
2
,
"货运发票"
),
...
...
@@ -9,7 +12,7 @@ public enum EnumInvoiceType {
private
int
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
EnumInvoiceType
(
int
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
...
...
@@ -22,4 +25,10 @@ public enum EnumInvoiceType {
public
String
getName
()
{
return
name
;
}
static
{
for
(
EnumInvoiceType
invoiceType
:
EnumInvoiceType
.
values
())
{
MAPPING
.
put
(
invoiceType
.
getCode
(),
invoiceType
.
getName
());
}
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/InvoiceRecordEnum.java
View file @
63676740
...
...
@@ -9,8 +9,8 @@ public class InvoiceRecordEnum {
* 发票类型
*/
public
enum
InvoiceType
{
ORDINARY
(
1
,
"增值税普票"
),
SPECIAL
(
2
,
"增值税专票"
);
ORDINARY
(
1
,
"增值税普
通发
票"
),
SPECIAL
(
2
,
"增值税专
用发
票"
);
private
Integer
code
;
private
String
name
;
public
static
final
Map
<
Integer
,
String
>
MAPPING
=
new
HashMap
<>();
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JXFP.java
View file @
63676740
...
...
@@ -6,6 +6,7 @@ import org.apache.poi.ss.formula.eval.ValueEval;
import
org.apache.poi.ss.formula.functions.FreeRefFunction
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.EnumInvoiceType
;
import
pwc.taxtech.atms.constant.enums.EnumOperationType
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.constant.enums.KeyValueConfigResultType
;
...
...
@@ -199,15 +200,12 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
CertifiedInvoicesListExample
.
Criteria
criteria
=
example
.
createCriteria
();
if
(
period
!=
null
)
{
Calendar
date
=
Calendar
.
getInstance
();
String
year
=
String
.
valueOf
(
date
.
get
(
Calendar
.
YEAR
));
//认证期间
criteria
.
andPeriodEqualTo
(
Integer
.
valueOf
(
year
+
(
period
>
9
?
period
.
toString
()
:
"0"
+
period
.
toString
())));
criteria
.
andPeriodEqualTo
(
Integer
.
valueOf
(
formulaContext
.
getYear
()
+
(
period
>
9
?
period
.
toString
()
:
"0"
+
period
.
toString
())));
}
if
(
invoiceType
!=
null
)
{
//发票类型
criteria
.
andInvoiceTypeEqualTo
(
String
.
valueOf
(
invoiceType
));
criteria
.
andInvoiceTypeEqualTo
(
EnumInvoiceType
.
MAPPING
.
get
(
invoiceType
));
// criteria1.andFPLXEqualTo(String.valueOf(invoiceType));
}
...
...
@@ -223,7 +221,7 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
//// example.or(criteria1);
// }
//发票状态
criteria
.
andInvoiceTypeEqualTo
(
"
1
"
);
// 过滤作废状态
criteria
.
andInvoiceTypeEqualTo
(
"
正常
"
);
// 过滤作废状态
// List<InputInvoice> list = inputInvoiceMapper.selectByExample(example).stream().filter(x -> {
// return x.getRZSQ().endsWith("-" + (period.intValue() > 9 ? period.toString() : "0" + period.toString()));
...
...
atms-web/src/main/webapp/app-resources/i18n/zh-CN/vat.json
View file @
63676740
...
...
@@ -1457,6 +1457,7 @@
"SelectCheck"
:
"请至少选择一项"
,
"SelectColumnError"
:
"列名对应错误"
,
"SelectExportReport"
:
"选择导出报表"
,
"SelectUploadReport"
:
"选择保存版本"
,
"SelectFile"
:
"选择文件..."
,
"SelectFileTitle"
:
"选择文件"
,
"SelectFileToUpload"
:
"上传文件..."
,
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
63676740
...
...
@@ -910,6 +910,12 @@
//打开导出文件弹出框
$scope
.
openExportPop
=
function
(
evenType
)
{
$scope
.
evenType
=
evenType
;
if
(
'export'
==
$scope
.
evenType
)
{
$scope
.
viewTitle
=
$translate
.
instant
(
'SelectExportReport'
);
}
if
(
'upload'
==
$scope
.
evenType
)
{
$scope
.
viewTitle
=
$translate
.
instant
(
'SelectUploadReport'
);
}
var
grp
=
_
.
find
(
$scope
.
$parent
.
$parent
.
groups
,
function
(
g
)
{
return
g
.
name
==
'TaxReturnType'
;
});
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.html
View file @
63676740
...
...
@@ -76,7 +76,7 @@
<div
id=
"exportReportFilesContainer"
>
<script
type=
"text/ng-template"
class=
"content"
id=
"exportReport.html"
>
<
div
class
=
"modal-header"
>
<
h4
class
=
"modal-title"
style
=
"float: left;width: 70%;"
>
{{
'SelectExportReport'
|
translat
e
}}
<
/h4
>
<
h4
class
=
"modal-title"
style
=
"float: left;width: 70%;"
>
{{
viewTitl
e
}}
<
/h4
>
<
span
ng
-
click
=
"$dismiss();"
style
=
"width: 20px; float: right; cursor: pointer;"
>
x
<
/span
>
<
/div
>
<
div
class
=
"modal-body process-bar-container"
>
...
...
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