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
17b8b48c
Commit
17b8b48c
authored
Nov 21, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dffs\jffs\gl export number format
parent
b8504a11
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
DFFS.java
.../taxtech/atms/vat/service/impl/report/functions/DFFS.java
+2
-2
JFFS.java
.../taxtech/atms/vat/service/impl/report/functions/JFFS.java
+2
-2
preview-trial-balance.ctrl.js
...trols/preview-trial-balance/preview-trial-balance.ctrl.js
+10
-2
preview-trial-balance.html
...controls/preview-trial-balance/preview-trial-balance.html
+6
-6
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/DFFS.java
View file @
17b8b48c
...
...
@@ -55,7 +55,7 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
year
=
year
+
yearOffset
;
List
<
ReportCellDataSourceDto
>
dataSource
=
Lists
.
newArrayList
();
if
(
type
==
0
){
if
(
type
==
1
){
EnterpriseAccountSetOrgExample
example
=
new
EnterpriseAccountSetOrgExample
();
example
.
createCriteria
().
andEffectiveDateLessThanOrEqualTo
(
DateUtils
.
getNow
()).
andExpiredDateGreaterThanOrEqualTo
(
DateUtils
.
getNow
()).
andOrganizationIdEqualTo
(
orgId
);
List
<
EnterpriseAccountSetOrg
>
enterpriseAccountSetOrgs
=
SpringContextUtil
.
enterpriseAccountSetOrgMapper
.
selectByExample
(
example
);
...
...
@@ -76,7 +76,7 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
saveFormulaBlock
(
period
,
ec
,
formulaExpression
,
new
BigDecimal
(
result
),
dataSoureId
,
formulaContext
.
getProjectId
());
return
new
NumberEval
(
result
);
}
else
if
(
type
==
1
){
}
else
if
(
type
==
0
){
double
result
=
count
(
code
,
dataSource
,
period
,
year
);
Long
dataSoureId
=
saveDataSource
(
ec
,
Collections
.
singletonList
(
dataSource
),
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JFFS.java
View file @
17b8b48c
...
...
@@ -51,7 +51,7 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
year
=
year
+
yearOffset
;
List
<
ReportCellDataSourceDto
>
dataSource
=
Lists
.
newArrayList
();
if
(
type
==
0
){
if
(
type
==
1
){
EnterpriseAccountSetOrgExample
example
=
new
EnterpriseAccountSetOrgExample
();
example
.
createCriteria
().
andEffectiveDateLessThanOrEqualTo
(
DateUtils
.
getNow
()).
andExpiredDateGreaterThanOrEqualTo
(
DateUtils
.
getNow
()).
andOrganizationIdEqualTo
(
orgId
);
List
<
EnterpriseAccountSetOrg
>
enterpriseAccountSetOrgs
=
SpringContextUtil
.
enterpriseAccountSetOrgMapper
.
selectByExample
(
example
);
...
...
@@ -72,7 +72,7 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
saveFormulaBlock
(
period
,
ec
,
formulaExpression
,
new
BigDecimal
(
result
),
dataSoureId
,
formulaContext
.
getProjectId
());
return
new
NumberEval
(
result
);
}
else
if
(
type
==
1
){
}
else
if
(
type
==
0
){
double
result
=
count
(
code
,
dataSource
,
period
,
year
);
Long
dataSoureId
=
saveDataSource
(
ec
,
Collections
.
singletonList
(
dataSource
),
...
...
atms-web/src/main/webapp/app/common/controls/preview-trial-balance/preview-trial-balance.ctrl.js
View file @
17b8b48c
...
...
@@ -157,8 +157,10 @@
if
(
isExportOnly
!==
null
&&
isExportOnly
)
{
$scope
.
exportDataList
=
newTree
;
_
.
each
(
$scope
.
exportDataList
,
function
(
exportData
){
if
(
exportData
.
begDebitBal
&&
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
if
(
exportData
.
begDebitBal
&&
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
{
$scope
.
totalBegDebitBal
+=
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
));
exportData
.
begDebitBal
}
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"
)
...
...
@@ -169,7 +171,13 @@
$scope
.
totalEndDebitBal
+=
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
endCreditBal
&&
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
$scope
.
totalEndCreditBal
+=
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
));
})
});
$scope
.
totalEndCreditBal
=
$scope
.
totalEndCreditBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalEndDebitBal
=
$scope
.
totalEndDebitBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalCreditBal
=
$scope
.
totalCreditBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalDebitBal
=
$scope
.
totalDebitBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalBegCreditBal
=
$scope
.
totalBegCreditBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalBegDebitBal
=
$scope
.
totalBegDebitBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
else
{
$scope
.
gridOptions
.
data
=
newTree
;
...
...
atms-web/src/main/webapp/app/common/controls/preview-trial-balance/preview-trial-balance.html
View file @
17b8b48c
...
...
@@ -101,12 +101,12 @@
<tr
ng-repeat=
"exportData in exportDataList"
on-finish-render=
"ngRepeatFinished"
>
<td>
{{exportData.acctCode}}
</td>
<td>
{{exportData.accountName}}
</td>
<td>
{{exportData.begDebitBal}}
</td>
<td>
{{exportData.begCreditBal}}
</td>
<td>
{{exportData.debitBal}}
</td>
<td>
{{exportData.creditBal}}
</td>
<td>
{{exportData.endDebitBal}}
</td>
<td>
{{exportData.endCreditBal}}
</td>
<td
style=
"text-align:right;"
>
{{exportData.begDebitBal}}
</td>
<td
style=
"text-align:right;"
>
{{exportData.begCreditBal}}
</td>
<td
style=
"text-align:right;"
>
{{exportData.debitBal}}
</td>
<td
style=
"text-align:right;"
>
{{exportData.creditBal}}
</td>
<td
style=
"text-align:right;"
>
{{exportData.endDebitBal}}
</td>
<td
style=
"text-align:right;"
>
{{exportData.endCreditBal}}
</td>
</tr>
<tr>
<td></td>
...
...
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