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
474bea32
Commit
474bea32
authored
Nov 21, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DFFS/JFFS type
parent
17b8b48c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
+26
-12
DFFS.java
.../taxtech/atms/vat/service/impl/report/functions/DFFS.java
+2
-0
JFFS.java
.../taxtech/atms/vat/service/impl/report/functions/JFFS.java
+2
-0
preview-trial-balance.ctrl.js
...trols/preview-trial-balance/preview-trial-balance.ctrl.js
+22
-12
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/DFFS.java
View file @
474bea32
...
@@ -11,6 +11,7 @@ import pwc.taxtech.atms.common.util.MyAsserts;
...
@@ -11,6 +11,7 @@ import pwc.taxtech.atms.common.util.MyAsserts;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceType
;
import
pwc.taxtech.atms.dpo.CellTemplatePerGroupDto
;
import
pwc.taxtech.atms.dpo.CellTemplatePerGroupDto
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.entity.AccountMapping
;
import
pwc.taxtech.atms.entity.AccountMapping
;
...
@@ -113,6 +114,7 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
...
@@ -113,6 +114,7 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
dto
.
setPeriod
(
period
);
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
contain
.
add
(
dto
);
}
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPtdCr
().
doubleValue
()).
sum
();
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPtdCr
().
doubleValue
()).
sum
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JFFS.java
View file @
474bea32
...
@@ -10,6 +10,7 @@ import pwc.taxtech.atms.common.util.DateUtils;
...
@@ -10,6 +10,7 @@ import pwc.taxtech.atms.common.util.DateUtils;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceType
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.entity.AccountMapping
;
import
pwc.taxtech.atms.entity.AccountMapping
;
import
pwc.taxtech.atms.entity.AccountMappingExample
;
import
pwc.taxtech.atms.entity.AccountMappingExample
;
...
@@ -109,6 +110,7 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
...
@@ -109,6 +110,7 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
dto
.
setPeriod
(
period
);
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
contain
.
add
(
dto
);
}
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPtdDr
().
doubleValue
()).
sum
();
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPtdDr
().
doubleValue
()).
sum
();
...
...
atms-web/src/main/webapp/app/common/controls/preview-trial-balance/preview-trial-balance.ctrl.js
View file @
474bea32
...
@@ -159,25 +159,35 @@
...
@@ -159,25 +159,35 @@
_
.
each
(
$scope
.
exportDataList
,
function
(
exportData
){
_
.
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
,
""
));
$scope
.
totalBegDebitBal
+=
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
));
exportData
.
begDebitBal
exportData
.
begDebitBal
=
parseFloat
(
exportData
.
begDebitBal
.
replace
(
/,/g
,
""
)).
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
}
if
(
exportData
.
begCreditBal
&&
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
if
(
exportData
.
begCreditBal
&&
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
{
$scope
.
totalBegCreditBal
+=
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
));
$scope
.
totalBegCreditBal
+=
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
debitBal
&&
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
exportData
.
begCreditBal
=
parseFloat
(
exportData
.
begCreditBal
.
replace
(
/,/g
,
""
)).
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
if
(
exportData
.
debitBal
&&
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
){
$scope
.
totalDebitBal
+=
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
));
$scope
.
totalDebitBal
+=
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
creditBal
&&
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
exportData
.
debitBal
=
parseFloat
(
exportData
.
debitBal
.
replace
(
/,/g
,
""
)).
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
if
(
exportData
.
creditBal
&&
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
{
$scope
.
totalCreditBal
+=
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
));
$scope
.
totalCreditBal
+=
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
endDebitBal
&&
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
exportData
.
creditBal
=
parseFloat
(
exportData
.
creditBal
.
replace
(
/,/g
,
""
)).
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
if
(
exportData
.
endDebitBal
&&
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
{
$scope
.
totalEndDebitBal
+=
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
));
$scope
.
totalEndDebitBal
+=
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
));
if
(
exportData
.
endCreditBal
&&
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
exportData
.
endDebitBal
=
parseFloat
(
exportData
.
endDebitBal
.
replace
(
/,/g
,
""
)).
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
if
(
exportData
.
endCreditBal
&&
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
)).
toString
()
!=
"NaN"
)
{
$scope
.
totalEndCreditBal
+=
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
));
$scope
.
totalEndCreditBal
+=
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
));
exportData
.
endCreditBal
=
parseFloat
(
exportData
.
endCreditBal
.
replace
(
/,/g
,
""
)).
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
});
});
$scope
.
totalEndCreditBal
=
$scope
.
totalEndCreditBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$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
.
totalEndDebitBal
=
$scope
.
totalEndDebitBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalCreditBal
=
$scope
.
totalCreditBal
.
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
.
totalDebitBal
=
$scope
.
totalDebitBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
$scope
.
totalBegCreditBal
=
$scope
.
totalBegCreditBal
.
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,'
);
$scope
.
totalBegDebitBal
=
$scope
.
totalBegDebitBal
.
toFixed
(
2
).
replace
(
/
(\d)(?=(\d{3})
+
\.)
/g
,
'$1,'
);
}
}
else
{
else
{
$scope
.
gridOptions
.
data
=
newTree
;
$scope
.
gridOptions
.
data
=
newTree
;
...
...
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