minor fix

This commit is contained in:
wilson gomez 2022-02-04 11:00:12 -05:00
parent a3deb9969a
commit 26397a4007
2 changed files with 2 additions and 10 deletions

12
sale.py
View File

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

Binary file not shown.