	Invoice rate by user	

Period from startdate	Period to enddate	Currency
[[ formatLang(data['form']['date_from'],date=True) ]]	[[ formatLang (data['form']['date_to'] ,date=True)]]	[[ company.currency_id.name ]]

Employee or Journal Name	Units	Theorical	Income	Cost	Profit	Eff.

Totals:	[[ reduce(lambda x, y: x+y['unit_amount'], line(data['form'], data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0) ]]		[[ reduce(lambda x, y: x+y['amount'], line(data['form'],data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0) ]]	[[ reduce(lambda x, y: x+y['cost'], line(data['form'],data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0) ]]	[[ reduce(lambda x, y: x+y['profit'], line(data['form'],data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0) ]]	[[ reduce(lambda x, y: x+y['cost'], line(data['form'],data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0) and round(reduce(lambda x, y: x+y['amount'], line(data['form'],data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0)/reduce(lambda x, y: x+y['cost'], line(data['form'],data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0)* -100, 2)]] %

[[ repeatIn(user_ids(lines(data['form'])), 'e') ]]

[[ e.name ]]	[[ repeatIn(journal_ids(data['form'], e.id), 'j') ]]	[[ reduce(lambda x, y: x+y['unit_amount'], line(data['form'], [j.id], [e.id]), 0) ]]	[[ reduce(lambda x, y: x+y['amount_th'], line(data['form'], [j.id], [e.id]), 0) ]]	[[ reduce(lambda x, y: x+y['amount'], line(data['form'], [j.id], [e.id]), 0) ]]	[[ reduce(lambda x, y: x+y['cost'], line(data['form'], [j.id], [e.id]), 0) ]]	[[ reduce(lambda x, y: x+y['profit'], line(data['form'], [j.id], [e.id]), 0) ]]	[[reduce(lambda x, y: x+y['cost'], line(data['form'], [j.id], [e.id]), 0) and '%d' % (reduce(lambda x, y: x+y['amount'], line(data['form'], [j.id], [e.id]), 0) / reduce(lambda x, y: x+y['cost'], line(data['form'], [j.id], [e.id]), 0) * 100.0, 2)]] %
[[ j.name ]]						

[[ repeatIn(line(data['form'], [j.id],[e.id]), 'l') ]]

[[ l['name'] ]]	[[ l['unit_amount'] ]]	[[ l['amount_th'] ]]	[[ l['amount'] ]]	[[ l['cost'] ]]	[[ l['profit'] ]]	[[ l['eff'] ]] %

rch

2006-11-10T10:42:18