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
e0f1eb62
Commit
e0f1eb62
authored
Nov 21, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glBalance export
parent
19fc7c4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
5 deletions
+35
-5
InputInvoiceImportController.java
...taxtech/atms/controller/InputInvoiceImportController.java
+1
-1
preview-trial-balance.ctrl.js
...trols/preview-trial-balance/preview-trial-balance.ctrl.js
+24
-4
preview-trial-balance.html
...controls/preview-trial-balance/preview-trial-balance.html
+10
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/InputInvoiceImportController.java
View file @
e0f1eb62
...
...
@@ -156,7 +156,7 @@ public class InputInvoiceImportController {
inputInvoiceDetailExportDto
.
setAmount
(
inputInvoiceDetail
.
getJE
()
!=
null
?
new
BigDecimal
(
inputInvoiceDetail
.
getJE
().
replace
(
","
,
""
))
:
BigDecimal
.
ZERO
);
inputInvoiceDetailExportDto
.
setInvoiceCode
(
inputInvoiceDetail
.
getFPDM
());
inputInvoiceDetailExportDto
.
setInvoiceNumber
(
inputInvoiceDetail
.
getFPHM
());
inputInvoiceDetailExportDto
.
setPeriodId
(
Integer
.
parseInt
(
item
.
getRZS
J
().
substring
(
5
,
7
)));
inputInvoiceDetailExportDto
.
setPeriodId
(
Integer
.
parseInt
(
item
.
getRZS
Q
().
substring
(
4
,
6
)));
inputInvoiceDetailExportDto
.
setProductionName
(
inputInvoiceDetail
.
getSPMC
());
inputInvoiceDetailExportDto
.
setTaxAmount
(
inputInvoiceDetail
.
getSE
()
!=
null
?
new
BigDecimal
(
inputInvoiceDetail
.
getSE
().
replace
(
","
,
""
))
:
BigDecimal
.
ZERO
);
inputInvoiceDetailExportDto
.
setTaxRate
(
inputInvoiceDetail
.
getSLV
());
...
...
atms-web/src/main/webapp/app/common/controls/preview-trial-balance/preview-trial-balance.ctrl.js
View file @
e0f1eb62
...
...
@@ -6,8 +6,15 @@
$scope
.
startDate
=
new
Date
(
$scope
.
project
.
year
,
0
,
1
);
$scope
.
endDate
=
new
Date
(
$scope
.
project
.
year
,
11
,
31
);
$scope
.
dateFormat
=
$translate
.
instant
(
'dateFormat4YearMonthDay'
);
$scope
.
isReadOnly
=
false
;
$scope
.
isReadOnly
=
false
;
$scope
.
totalBegDebitBal
=
0
;
$scope
.
totalBegCreditBal
=
0
;
$scope
.
totalDebitBal
=
0
;
$scope
.
totalCreditBal
=
0
;
$scope
.
totalEndDebitBal
=
0
;
$scope
.
totalEndCreditBal
=
0
;
var
minDate
=
[
1
,
$scope
.
project
.
year
];
var
maxDate
=
[
12
,
$scope
.
project
.
year
];
var
setDate
=
[
...
...
@@ -116,7 +123,7 @@
//************ EXCEL EXPORT FUNCTION ***************/
$scope
.
$on
(
'ngRepeatFinished'
,
function
(
ngRepeatFinishedEvent
)
{
if
(
$scope
.
isToPrint
)
export_table_to_excel
(
'exportTable'
,
'
GL
'
,
'xlsx'
,
''
);
export_table_to_excel
(
'exportTable'
,
'
试算平衡表
'
,
'xlsx'
,
''
);
$scope
.
isToPrint
=
false
;
});
...
...
@@ -149,7 +156,20 @@
if
(
isExportOnly
!==
null
&&
isExportOnly
)
{
$scope
.
exportDataList
=
newTree
;
_
.
each
(
$scope
.
exportDataList
,
function
(
exportData
){
if
(
exportData
.
begDebitBal
&&
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalBegDebitBal
+=
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
begCreditBal
&&
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalBegCreditBal
+=
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
debitBal
&&
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalDebitBal
+=
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
creditBal
&&
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalCreditBal
+=
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
endDebitBal
&&
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalEndDebitBal
+=
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
endCreditBal
&&
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalEndCreditBal
+=
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
));
})
}
else
{
$scope
.
gridOptions
.
data
=
newTree
;
...
...
atms-web/src/main/webapp/app/common/controls/preview-trial-balance/preview-trial-balance.html
View file @
e0f1eb62
...
...
@@ -108,6 +108,16 @@
<td>
{{exportData.endDebitBal}}
</td>
<td>
{{exportData.endCreditBal}}
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
{{totalBegDebitBal}}
</td>
<td>
{{totalBegCreditBal}}
</td>
<td>
{{totalDebitBal}}
</td>
<td>
{{totalCreditBal}}
</td>
<td>
{{totalEndDebitBal}}
</td>
<td>
{{totalEndCreditBal}}
</td>
</tr>
</table>
</div>
<!--For Export ONLY-->
...
...
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