|
@@ -112,13 +112,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
- function AmountFooter(rowsTable) {
|
|
|
- var quantity = _.reduce(_.map(rowsTable,function(item){
|
|
|
- return (item.amount_float);
|
|
|
- }), function(memo, num){
|
|
|
- return memo + num; },0)
|
|
|
- return accounting.formatNumber(quantity,0,'.',',');
|
|
|
- }
|
|
|
|
|
|
function TotalFormatter(rowsTable) {
|
|
|
var amount = _.reduce(_.map(rowsTable,function(item){
|
|
@@ -136,6 +129,22 @@
|
|
|
return accounting.formatNumber(amount,0,'.',',');
|
|
|
}
|
|
|
|
|
|
+ function CapitalReceiveFormatter(rowsTable) {
|
|
|
+ var amount = _.reduce(_.map(rowsTable,function(item){
|
|
|
+ return (item.capital_receive_value);
|
|
|
+ }), function(memo, num){
|
|
|
+ return memo + num; },0)
|
|
|
+ return accounting.formatNumber(amount,0,'.',',');
|
|
|
+ }
|
|
|
+
|
|
|
+ function InterestReceiveFormatter(rowsTable) {
|
|
|
+ var amount = _.reduce(_.map(rowsTable,function(item){
|
|
|
+ return (item.interest_receive_value);
|
|
|
+ }), function(memo, num){
|
|
|
+ return memo + num; },0)
|
|
|
+ return accounting.formatNumber(amount,0,'.',',');
|
|
|
+ }
|
|
|
+
|
|
|
function footerStyle(row, index) {
|
|
|
return {
|
|
|
css: {
|