Skip to content

Commit

Permalink
Merge pull request #733 from Som-Energia/NEW_flux_solar_modifications…
Browse files Browse the repository at this point in the history
…_to_pdf

Modificació de la posició d'elements informatius del flux solar a la factura en pdf
  • Loading branch information
pauboixsom authored Oct 15, 2024
2 parents 88bb0e7 + a247f6e commit ba70e13
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
border-bottom: 1.8px solid black;
}

.head_row {
border-top: 1.8px solid black;
}

.td_first {
background-color: #7a7a7a;
color: white;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<%include file="/giscedata_facturacio_comer_som/report/components/invoice_details_td_generation/invoice_details_td_generation.mako" args="id=id.generation" />
<%include file="/giscedata_facturacio_comer_som/report/components/invoice_details_td_inductive/invoice_details_td_inductive.mako" args="id=id.inductive" />
<%include file="/giscedata_facturacio_comer_som/report/components/invoice_details_td_capacitive/invoice_details_td_capacitive.mako" args="id=id.capacitive" />
<%include file="/giscedata_facturacio_comer_som/report/components/invoice_details_td_flux_solar/invoice_details_td_flux_solar.mako" args="fs=id.flux_solar" />
<%include file="/giscedata_facturacio_comer_som/report/components/invoice_details_td_other_concepts/invoice_details_td_other_concepts.mako" args="id=id.other_concepts" />
<%include file="/giscedata_facturacio_comer_som/report/components/invoice_details_td_flux_solar/invoice_details_td_flux_solar.mako" args="fs=id.flux_solar" />
<tr class="total_factura_row">
<td class="total_factura_text" colspan="${len(id.showing_periods)+2}">${_(u"TOTAL FACTURA")}</td>
<td class="subtotal">${_(u"%s") % formatLang(id.amount_total)}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%
import locale
%>
<tr class="tr_bold last_row">
<tr class="tr_bold head_row">
<td class="td_first concepte_td">${_(u"Flux Solar")}</td>
<td class="detall_td" colspan="${fs.number_of_columns}">${_(u"Descompte per Flux Solar")}</td>
<td class="subtotal">${_(u"%s") % formatLang(fs.subtotal)}</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
% if invs.total_boe17_2021 != 0:
<tr><td>${_(u"Descompte sobre els càrrecs (RDL 17/2021)")}</td><td class="e">${"%s &euro;" % formatLang(invs.total_boe17_2021)}</td></tr>
% endif
% if invs.has_flux_solar_discount:
<tr><td>${_(u"Descompte per Flux Solar")}</td><td class="e">${"%s &euro;" % formatLang(invs.flux_solar_discount)}</td></tr>
% endif
% if (invs.total_altres + invs.total_bosocial) != 0:
<tr><td>${_(u"Altres conceptes")}</td><td class="e">${"%s &euro;" % formatLang(invs.total_altres + invs.total_bosocial)}</td></tr>
% endif
% for n, v in invs.impostos.items():
<tr><td>${n}</td><td class="e">${"%s &euro;" % formatLang(v)}</td></tr>
% endfor
% if invs.has_flux_solar_discount:
<tr><td>${_(u"Descompte per Flux Solar")}</td><td class="e">${"%s &euro;" % formatLang(invs.flux_solar_discount)}</td></tr>
% endif
% if invs.donatiu > 0:
<tr><td>${_(u"Donatiu voluntari (0,01 &euro;/kWh) (exempt d'IVA)")}</td><td class="e">${"%s &euro;" % formatLang(invs.donatiu)}</td></tr>
% endif
Expand Down

0 comments on commit ba70e13

Please sign in to comment.