diff --git a/sale.py b/sale.py index 13de43f..ca3be9c 100644 --- a/sale.py +++ b/sale.py @@ -171,7 +171,7 @@ class SaleForChannel(Wizard): print_ = StateReport('sale_web_channel.sale_for_channel_report') def do_print_(self, action): - + report_context = { 'company': self.start.company.id, 'company_name': self.start.company.rec_name, @@ -181,7 +181,7 @@ class SaleForChannel(Wizard): 'start_date': self.start.start_date, 'end_date': self.start.end_date, 'include_canceled': self.start.include_canceled, - + } report_context['channels'] = [{'id': c.id, 'name': c.rec_name} for c in self.start.channels] return action, report_context @@ -227,15 +227,7 @@ class SaleForChannelReport(Report): tax_amount_ = [] total_amount_ = [] total_amount_ = [] - sequence = 0 - for sale in sales: - sequence += 1 - setattr(sale, 'sequence', sequence) - - if not hasattr(sale, 'sale_device'): - setattr(sale, 'sale_device', None) - untaxed_amount_.append(sale.untaxed_amount) tax_amount_.append(sale.tax_amount) total_amount_.append(sale.total_amount) diff --git a/sale_channels.ods b/sale_channels.ods index da6abc9..9cc13a2 100644 Binary files a/sale_channels.ods and b/sale_channels.ods differ