Browse Source

[FIX] ajustes varios

Rodney Elpidio Enciso Arias 6 years ago
parent
commit
7dedd4b1f9

+ 0 - 1
static/src/js/reports/report_customer_ranking.js

@@ -523,7 +523,6 @@ function report_customer_ranking(reporting){
 
         BuildTable: function(){
             var self = this;
-            console.log(self);
             var data = [];
             var CurrencyBase = self.ResCompany[0].currency_id;
             self.AccountInvoiceLine = self.getAccountInvoiceLine();

+ 0 - 1
static/src/js/reports/report_product_list.js

@@ -518,7 +518,6 @@ function report_product_list(reporting){
 
         BuildTable: function(){
             var self = this;
-            console.log(self);
             var data = [];
             var pricelist = $('#current-sale-price').val();
             var purchasePrice = self.$el.find('#current-purchase-price').val();

+ 0 - 2
static/src/js/reports/report_sale.js

@@ -474,7 +474,6 @@ function report_sale(reporting){
 
         BuildTable: function(){
             var self = this;
-            console.log(self);
             var data = [];
             var residual = 0;
             var CurrencyBase = self.ResCompany[0].currency_id;
@@ -555,7 +554,6 @@ function report_sale(reporting){
                     */
                     date_no_format: moment(item.date).format('YYYY-MM-DD'),
                     residual_no_format:residual,
-                    discount_amount_no_format:item.discount_rate,
                     untaxed_no_format:item.amount - item.amount_tax,
                     tax_no_format:item.amount_tax,
                     total_no_format:item.amount,

+ 0 - 1
static/src/js/reports/report_sale_analytic.js

@@ -571,7 +571,6 @@ function report_sale_analytic(reporting){
 
         BuildTable: function(){
             var self = this;
-            console.log(self);
             var data = [];
             var CurrencyBase = self.ResCompany[0].currency_id;
             var PosOrderLine = self.getPosOrderLine();

+ 0 - 1
static/src/js/reports/report_sale_ranking_product.js

@@ -638,7 +638,6 @@ function report_sale_ranking_product(reporting) {
                     });
                 }
             });
-            // console.log(InvoiceLineAmount + PosOrderAmount);
             data.sort(function(a, b) {
                 return b.amount_no_format - a.amount_no_format;
             });

+ 0 - 19
static/src/reports/report_sale.xml

@@ -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
                 -->