Merge lp:~carlos-realsystems/openerp-vauxoo-gbw/6.0 into lp:openerp-vauxoo-gbw/6.0

Proposed by Carlos Contreras
Status: Merged
Merged at revision: 4
Proposed branch: lp:~carlos-realsystems/openerp-vauxoo-gbw/6.0
Merge into: lp:openerp-vauxoo-gbw/6.0
Diff against target: 31 lines (+14/-1)
1 file modified
gbwinvoice_report_webkit/report/templates/gbwcategorydetail_report_webkit.mako (+14/-1)
To merge this branch: bzr merge lp:~carlos-realsystems/openerp-vauxoo-gbw/6.0
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Pending
Review via email: mp+167617@code.launchpad.net

Description of the change

[IMP] Se agrega totales por categoría en Reporte Detallado por producto

To post a comment you must log in.
9. By Carlos Contreras

[IMP] Adds Principal Menu for GBW Reports
Adds 2 Reports with extra columns for Aportacion
Gives sorted records for All Category Reports

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gbwinvoice_report_webkit/report/templates/gbwcategorydetail_report_webkit.mako'
2--- gbwinvoice_report_webkit/report/templates/gbwcategorydetail_report_webkit.mako 2013-06-04 21:28:44 +0000
3+++ gbwinvoice_report_webkit/report/templates/gbwcategorydetail_report_webkit.mako 2013-06-05 18:54:27 +0000
4@@ -103,13 +103,26 @@
5 <tr>
6 <td colspan=4 style="border-bottom:1px solid;border-top:1px solid;" >${k}</td>
7 </tr>
8+ <%
9+ suma_categoria_cantidad=0
10+ suma_categoria_subtotal=0
11+ %>
12 %for kp, vp in v.items():
13 <tr>
14 <td colspan=2 style="border-bottom:1px solid;font-size:small;" >&nbsp;&nbsp;[${vp['referencia']}] ${kp[0:15]}</td>
15 <td style="border-bottom:1px solid;float: right; text-align: right;font-size:small;" >${formatLang(vp['cantidad']) or 0.0}</td>
16 <td style="border-bottom:1px solid;float: right; text-align: right;font-size:small;" >${company.currency_id.symbol} ${formatLang(vp['subtotal'],monetary=True) or 0.0}</td>
17- </tr>
18+ </tr>
19+ <%
20+ suma_categoria_cantidad=suma_categoria_cantidad+vp['cantidad']
21+ suma_categoria_subtotal=suma_categoria_subtotal+vp['subtotal']
22+ %>
23 %endfor
24+ <tr>
25+ <td colspan=2 style="border-bottom:2px solid;border-top:2px solid;font-size:small;" >Total (${k}):</td>
26+ <td style="border-bottom:2px solid;border-top:2px solid;float: right; text-align: right;font-size:small;" >${company.currency_id.symbol} ${formatLang(suma_categoria_cantidad) or 0.0}</td>
27+ <td style="border-bottom:2px solid;border-top:2px solid;float: right; text-align: right;font-size:small;" >${company.currency_id.symbol} ${formatLang(suma_categoria_subtotal,monetary=True) or 0.0}</td>
28+ </tr>
29 %endfor
30 <tr>
31 <td colspan=2 style="border-bottom:2px solid;border-top:2px solid;" >Total:</td>

Subscribers

People subscribed via source and target branches