[REF] pos
bzr revid: mra@mra-laptop-20110111072631-5q8x9quor7qtc4nw
This commit is contained in:
parent
a95ca078da
commit
b35253a168
|
@ -43,8 +43,7 @@ class pos_sales_user(report_sxw.rml_parse):
|
|||
"and po.company_id=rc.id and po.user_id=ru.id and po.user_id IN %s " \
|
||||
,(dt1,dt2,tuple(form['user_id'])))
|
||||
|
||||
data = self.cr.dictfetchall()
|
||||
return data
|
||||
return self.cr.dictfetchall()
|
||||
|
||||
report_sxw.report_sxw('report.pos.sales.user', 'pos.order', 'addons/point_of_sale/report/pos_sales_user.rml', parser=pos_sales_user,header='internal')
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class pos_user_product(report_sxw.rml_parse):
|
|||
|
||||
})
|
||||
|
||||
def _get_data(self,o):
|
||||
def _get_data(self, o):
|
||||
self.total = 0.0
|
||||
data={}
|
||||
sql1=""" SELECT distinct(o.id) from account_bank_statement s, account_bank_statement_line l,pos_order o,pos_order_line i where i.order_id=o.id and o.state='paid' and l.statement_id=s.id and l.pos_statement_id=o.id and s.id=%d"""%(o.id)
|
||||
|
@ -51,7 +51,7 @@ class pos_user_product(report_sxw.rml_parse):
|
|||
self.total += d['amt']
|
||||
return data
|
||||
|
||||
def _get_user(self,object):
|
||||
def _get_user(self, object):
|
||||
for o in object:
|
||||
sql = """select ru.name from account_bank_statement as abs,res_users ru
|
||||
where abs.user_id = ru.id
|
||||
|
|
Loading…
Reference in New Issue