3
<style type="text/css">
10
<center><h2>Invoice rate by user</h2></center>
13
<table class="basic_table" width="100%" align="center">
16
<b>${_("Period from startdate")} </b>
19
<b>${_("Period to enddate")}</b>
22
<b>${_("Currency")} </b>
27
${formatLang(data['form']['date_from'],date=True) or '' }
30
${formatLang (data['form']['date_to'] ,date=True) or ''}
33
${company.currency_id.name or ''}
38
<table class="list_table" width="100%">
39
<thead><table class="list_table" width="100%">
42
<th style="text-align:left;" width="30%">${_("User or Journal Name")}</th>
43
<th style="text-align:left;" width="5%"></th>
44
<th style="text-align:left;" width="10%">${_("Units")}</th>
45
<th style="text-align:left;" width="15%">${_("Theorical")}</th>
46
<th style="text-align:right;" width="10%">${_("Income")}</th>
47
<th style="text-align:right;" width="10%">${_("Cost")}</th>
48
<th style="text-align:right;" width="10%">${_("Profit")}</th>
49
<th style="text-align:right;" width="10%">${_("Eff.")}</th>
54
%for e in user_ids(lines(data['form'])):
55
<table class="list_table" width="100%">
57
%for line in line(data['form'], data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]):
59
<th style="text-align:left;" width="30%">${_("Totals:")}</th>
60
<th style="text-align:left;" width="5%"></th>
61
<th style="text-align:left;" width="10%">${line['unit_amount']}</th>
62
<th style="text-align:left;" width="15%"></th>
63
<th style="text-align:right;" width="10%">
64
%if line['amount'] != 0:
68
<th style="text-align:right;" width="10%">${line['cost']}</th>
69
<th style="text-align:right;" width="10%">${line['profit']}</th>
70
<th style="text-align:right;" width="10%">
71
%if line['amount'] != 0:
72
${line['cost'] and (line['amount']/line['cost'])* (-100) }
81
<td class="td_line" style="text-align:left;">
82
<b>${e.name or '' }</b>
84
%for j in journal_ids(data['form'], [e.id]):
85
%for li in line(data['form'], [j.id], [e.id]):
86
<td style="text-align:left;">
88
<td style="text-align:left;">
91
<td style="text-align:left;">
92
%if li['amount_th'] != 0:
96
<td style="text-align:right;">
97
%if li['amount'] != 0:
101
<td style="text-align:right;">
104
<td style="text-align:right;">
107
<td style="text-align:right;">
108
%if li['amount'] != 0:
109
${li['cost'] and (li['amount'] / li['cost'])* (100.0)}
123
<table class="list_table" width="100%">
124
%for l in line(data['form'], [j.id],[e.id]):
127
<td style="text-align:left; border-style:none;" width="30%">
130
<td style="text-align:left; border-style:none;" width="5%">
132
<td style="text-align:left; border-style:none;" width="10%">
133
${ l['unit_amount'] or '' }
135
<td style="text-align:left; border-style:none;" width="15%">
136
${ l['amount_th'] or '' }
138
<td style="text-align:right; border-style:none;" width="10%">
139
${ l['amount'] or '' }
141
<td style="text-align:right; border-style:none;" width="10%">
144
<td style="text-align:right; border-style:none;" width="10%">
145
${ l['profit'] or '' }
147
<td style="text-align:right; border-style:none;" width="10%">
148
${ l['eff'] or '' } %
156
<p style="page-break-after:always;"> </p>