|
@@ -166,25 +166,6 @@
|
|
|
},0);
|
|
|
return accounting.formatNumber(total,decimal_places,thousands_separator,decimal_separator);
|
|
|
}
|
|
|
- <!--
|
|
|
- DISCOUNT AMOUNT
|
|
|
- -->
|
|
|
- <!-- function DiscountFooter(rowsTable) {
|
|
|
- var decimal_places = 0;
|
|
|
- var thousands_separator = '.';
|
|
|
- var decimal_separator = ',';
|
|
|
- if(rowsTable.length > 0){
|
|
|
- decimal_places = rowsTable[0].decimal_places;
|
|
|
- thousands_separator = rowsTable[0].thousands_separator;
|
|
|
- decimal_separator = rowsTable[0].decimal_separator;
|
|
|
- }
|
|
|
- var total = _.reduce(_.map(rowsTable,function(item){
|
|
|
- return item.discount_amount_no_format;
|
|
|
- }), function(memo, num){
|
|
|
- return memo + num;
|
|
|
- },0);
|
|
|
- return accounting.formatNumber(total,decimal_places,thousands_separator,decimal_separator);
|
|
|
- } -->
|
|
|
<!--
|
|
|
UNTAXED
|
|
|
-->
|